bm 17 core/live_view.c lv_framebuffer_desc bm; bm 69 core/live_view.c lv.bm.fb_type = LV_FB_YUV8B; bm 71 core/live_view.c lv.bm.fb_type = LV_FB_PAL8; bm 73 core/live_view.c lv.bm.buffer_width = camera_screen.buffer_width; bm 75 core/live_view.c lv.bm.visible_width = camera_screen.physical_width; bm 76 core/live_view.c lv.bm.visible_height = camera_screen.height; bm 78 core/live_view.c lv.bm.margin_left = lv.bm.margin_right = lv.bm.margin_top = lv.bm.margin_bot = 0; bm 83 core/live_view.c lv.bmo.buffer_width = lv.bm.buffer_width; bm 85 core/live_view.c lv.bmo.visible_width = lv.bm.visible_width; bm 86 core/live_view.c lv.bmo.visible_height = lv.bm.visible_height; bm 152 core/live_view.c lv.bm.data_start = total_size; bm 154 core/live_view.c bm_size = lv.bm.buffer_width*lv.bm.visible_height; bm 156 core/live_view.c bm_size = (lv.bm.buffer_width*lv.bm.visible_height*4)/2; bm 162 core/live_view.c lv.bm.data_start = 0; bm 7 modules/bitvector.c bit_vector_t* bm = (bit_vector_t*)malloc(sizeof(bit_vector_t)); bm 8 modules/bitvector.c if (bm == NULL) bm 11 modules/bitvector.c bm->ptrLen = len * nbits / 8 + 1; bm 12 modules/bitvector.c bm->nElem = len; bm 13 modules/bitvector.c bm->nBits = nbits; bm 14 modules/bitvector.c bm->ptr = malloc(bm->ptrLen); bm 15 modules/bitvector.c if (bm->ptr == NULL) bm 17 modules/bitvector.c free(bm); bm 21 modules/bitvector.c return bm; bm 25 modules/bitvector.c static inline void bv_setbit(const bit_vector_t* bm, int pos, int val) bm 29 modules/bitvector.c bm->ptr[pos >> 3] &= ~(1 << bp); bm 31 modules/bitvector.c bm->ptr[pos >> 3] |= (1 << bp); bm 35 modules/bitvector.c static inline int bv_getbit(const bit_vector_t* bm, int pos) bm 43 modules/bitvector.c return (bm->ptr[pos >> 3] & (1 << bp)) >> bp; bm 46 modules/bitvector.c void bv_set(const bit_vector_t* bm, int pos, int val) bm 48 modules/bitvector.c int i = bm->nBits - 1; bm 49 modules/bitvector.c int bitpos = pos * bm->nBits; bm 52 modules/bitvector.c bv_setbit(bm, bitpos + i, val & (1<<i)); bm 58 modules/bitvector.c void bv_set2(const bit_vector_t* bm, int pos, int val) bm 61 modules/bitvector.c int bitpos = pos * bm->nBits; bm 62 modules/bitvector.c for (i = 0; i < bm->nBits; ++i) bm 65 modules/bitvector.c bv_setbit(bm, bitpos + i, t); bm 66 modules/bitvector.c bv_setbit(bm, bitpos + i + bm->nBits, t); bm 72 modules/bitvector.c void bv_set4(const bit_vector_t* bm, int pos, int val) bm 75 modules/bitvector.c int bitpos = pos * bm->nBits; bm 76 modules/bitvector.c for (i = 0; i < bm->nBits; ++i) bm 79 modules/bitvector.c bv_setbit(bm, bitpos + i, t); bm 80 modules/bitvector.c bv_setbit(bm, bitpos + i + bm->nBits, t); bm 81 modules/bitvector.c bv_setbit(bm, bitpos + i + bm->nBits * 2, t); bm 82 modules/bitvector.c bv_setbit(bm, bitpos + i + bm->nBits * 3, t); bm 86 modules/bitvector.c int bv_get(const bit_vector_t* bm, int pos) bm 89 modules/bitvector.c int i = bm->nBits - 1; bm 90 modules/bitvector.c int bitpos = pos * bm->nBits; bm 93 modules/bitvector.c ret |= (bv_getbit(bm, bitpos + i) << i); bm 100 modules/bitvector.c void bv_free(bit_vector_t* bm) bm 102 modules/bitvector.c if (bm) bm 104 modules/bitvector.c if (bm->ptr) bm 106 modules/bitvector.c free(bm->ptr); bm 107 modules/bitvector.c bm->ptr = NULL; bm 110 modules/bitvector.c free(bm); bm 13 modules/bitvector.h void bv_set(const bit_vector_t* bm, int pos, int val); bm 14 modules/bitvector.h void bv_set2(const bit_vector_t* bm, int pos, int val); bm 15 modules/bitvector.h void bv_set4(const bit_vector_t* bm, int pos, int val); bm 16 modules/bitvector.h int bv_get(const bit_vector_t* bm, int pos) __attribute__((pure)); bm 17 modules/bitvector.h void bv_free(bit_vector_t* bm);