camera_sensor 8 core/camera_info.c _cam_sensor camera_sensor = camera_sensor 243 core/lib_thumb.c unsigned raw_kb = camera_sensor.raw_size/1024; camera_sensor 312 core/main.c camera_sensor.black_level = CAM_BLACK_LEVEL; camera_sensor 451 core/modules.c if (camera_sensor.bits_per_pixel == 10) camera_sensor 42 core/raw.c if ((stat(filename,&st) != 0) || (st.st_size < camera_sensor.raw_size)) camera_sensor 46 core/raw.c if (st.st_size == camera_sensor.raw_size) camera_sensor 172 core/raw.c write(fd, ADR_TO_UNCACHED(rawadr), camera_sensor.raw_size); camera_sensor 203 core/raw.c camera_sensor.black_level = raw_calc_black_level; camera_sensor 205 core/raw.c camera_sensor.black_level = CAM_BLACK_LEVEL; camera_sensor 236 core/raw.c read(fd, rawadr, camera_sensor.raw_size); camera_sensor 289 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*10; camera_sensor 301 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/4)*6; camera_sensor 309 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*14; camera_sensor 328 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*10; camera_sensor 340 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/4)*6; camera_sensor 348 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*14; camera_sensor 371 core/raw.c if ((x>=2) && (x<camera_sensor.raw_rowpix-2) && (y>=2) && (y<camera_sensor.raw_rows-2)) { camera_sensor 91 include/camera_info.h extern _cam_sensor camera_sensor; camera_sensor 158 modules/curves.c for (i=camera_sensor.raw_rows; i;i-=2){ camera_sensor 160 modules/curves.c for (j=camera_sensor.raw_rowpix; j; j-=8, src+=10){ camera_sensor 191 modules/curves.c for (j=camera_sensor.raw_rowpix;j; j-=8, src+=10){ camera_sensor 254 modules/curves.c for (i=camera_sensor.raw_rows; i;i-=2){ camera_sensor 256 modules/curves.c for (j=camera_sensor.raw_rowpix; j; j-=8, src+=10){ camera_sensor 319 modules/curves.c for (j=camera_sensor.raw_rowpix; j; j-=8, src+=10){ camera_sensor 168 modules/dng.c {0xC621, T_SRATIONAL, 9, (int)&camera_sensor.color_matrix1}, camera_sensor 169 modules/dng.c {0xC622, T_SRATIONAL, 9, (int)&camera_sensor.color_matrix2}, camera_sensor 170 modules/dng.c {0xC623, T_SRATIONAL, 9, (int)&camera_sensor.camera_calibration1}, camera_sensor 171 modules/dng.c {0xC624, T_SRATIONAL, 9, (int)&camera_sensor.camera_calibration2}, camera_sensor 174 modules/dng.c {0xC62A, T_SRATIONAL, 1, (int)&camera_sensor.exposure_bias}, camera_sensor 178 modules/dng.c {0xC630, T_RATIONAL, 4, (int)&camera_sensor.lens_info}, camera_sensor 179 modules/dng.c {0xC65A, T_SHORT|T_PTR,1, (int)&camera_sensor.calibration_illuminant1}, camera_sensor 180 modules/dng.c {0xC65B, T_SHORT|T_PTR,1, (int)&camera_sensor.calibration_illuminant2}, camera_sensor 181 modules/dng.c {0xC714, T_SRATIONAL, 9, (int)&camera_sensor.forward_matrix1}, camera_sensor 182 modules/dng.c {0xC715, T_SRATIONAL, 9, (int)&camera_sensor.forward_matrix2}, camera_sensor 197 modules/dng.c {0x100, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_rowpix}, // ImageWidth camera_sensor 198 modules/dng.c {0x101, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_rows}, // ImageLength camera_sensor 199 modules/dng.c {0x102, T_SHORT|T_PTR,1, (int)&camera_sensor.bits_per_pixel},// BitsPerSample camera_sensor 204 modules/dng.c {0x116, T_SHORT|T_PTR,1, (int)&camera_sensor.raw_rows}, // RowsPerStrip camera_sensor 205 modules/dng.c {0x117, T_LONG|T_PTR, 1, (int)&camera_sensor.raw_size}, // StripByteCounts = CHDK RAW size camera_sensor 211 modules/dng.c {0x828E, T_BYTE|T_PTR, 4, (int)&camera_sensor.cfa_pattern}, camera_sensor 212 modules/dng.c {0xC61A, T_LONG|T_PTR, 1, (int)&camera_sensor.black_level}, // BlackLevel camera_sensor 213 modules/dng.c {0xC61D, T_LONG|T_PTR, 1, (int)&camera_sensor.white_level}, // WhiteLevel camera_sensor 499 modules/dng.c switch (camera_sensor.cfa_pattern) camera_sensor 522 modules/dng.c crop_origin[0] = camera_sensor.jpeg.x; camera_sensor 523 modules/dng.c crop_origin[1] = camera_sensor.jpeg.y; camera_sensor 524 modules/dng.c crop_size[0] = camera_sensor.jpeg.width; camera_sensor 525 modules/dng.c crop_size[1] = camera_sensor.jpeg.height; camera_sensor 527 modules/dng.c memcpy(active_area, camera_sensor.dng_active_area, sizeof(active_area)); camera_sensor 533 modules/dng.c crop_size[0] = camera_sensor.active_area.x2 - camera_sensor.active_area.x1; camera_sensor 534 modules/dng.c crop_size[1] = camera_sensor.active_area.y2 - camera_sensor.active_area.y1; camera_sensor 536 modules/dng.c memcpy(active_area, camera_sensor.dng_active_area, sizeof(active_area)); camera_sensor 542 modules/dng.c crop_size[0] = camera_sensor.raw_rowpix; camera_sensor 543 modules/dng.c crop_size[1] = camera_sensor.raw_rows; camera_sensor 545 modules/dng.c active_area[0] = (camera_sensor.active_area.y1 & 1); // In case active area top is an odd value, otherwise CFA pattern will be wrong camera_sensor 547 modules/dng.c active_area[2] = camera_sensor.raw_rows; camera_sensor 548 modules/dng.c active_area[3] = camera_sensor.raw_rowpix; camera_sensor 581 modules/dng.c if (camera_sensor.calibration_illuminant2 == 0) camera_sensor 586 modules/dng.c if (camera_sensor.has_calibration1 == 0) get_tag(IFD_0, CALIBRATION1_TAG)->type |= T_SKIP; camera_sensor 587 modules/dng.c if (camera_sensor.has_calibration2 == 0) get_tag(IFD_0, CALIBRATION2_TAG)->type |= T_SKIP; camera_sensor 588 modules/dng.c if (camera_sensor.has_forwardmatrix1 == 0) get_tag(IFD_0, FORWARD_MATRIX1_TAG)->type |= T_SKIP; camera_sensor 589 modules/dng.c if (camera_sensor.has_forwardmatrix2 == 0) get_tag(IFD_0, FORWARD_MATRIX2_TAG)->type |= T_SKIP; camera_sensor 798 modules/dng.c if (stat(fn, &st) != 0 || st.st_size<=camera_sensor.raw_size) camera_sensor 817 modules/dng.c fseek(dng, st.st_size-camera_sensor.raw_size, SEEK_SET); // SEEK_END is not working? camera_sensor 818 modules/dng.c for (i=0; i<camera_sensor.raw_size/BUF_SIZE; i++) camera_sensor 824 modules/dng.c fread(buf, 1, camera_sensor.raw_size%BUF_SIZE, dng); camera_sensor 825 modules/dng.c reverse_bytes_order2((char*)buf, (char*)buf, camera_sensor.raw_size%BUF_SIZE); camera_sensor 826 modules/dng.c fwrite(buf, 1, camera_sensor.raw_size%BUF_SIZE, raw); camera_sensor 848 modules/dng.c if ((stat(fn,&st) == 0) && (st.st_size >= camera_sensor.raw_size)) camera_sensor 853 modules/dng.c lseek(fd, st.st_size-camera_sensor.raw_size, SEEK_SET); camera_sensor 854 modules/dng.c read(fd, rawadr, camera_sensor.raw_size); camera_sensor 856 modules/dng.c reverse_bytes_order2(rawadr, rawadr, camera_sensor.raw_size); camera_sensor 902 modules/dng.c int shift = camera_sensor.bits_per_pixel - 8; camera_sensor 904 modules/dng.c int x_inc = camera_sensor.jpeg.width / DNG_TH_WIDTH; camera_sensor 905 modules/dng.c int y_inc = camera_sensor.jpeg.height / DNG_TH_HEIGHT; camera_sensor 907 modules/dng.c int x_end = camera_sensor.active_area.x1 + camera_sensor.jpeg.x + DNG_TH_WIDTH*x_inc; camera_sensor 908 modules/dng.c int y_end = camera_sensor.active_area.y1 + camera_sensor.jpeg.y + DNG_TH_HEIGHT*y_inc; camera_sensor 919 modules/dng.c int yadj = (camera_sensor.cfa_pattern == 0x01000201) ? 1 : 0; camera_sensor 920 modules/dng.c int xadj = (camera_sensor.cfa_pattern == 0x01020001) ? 1 : 0; camera_sensor 922 modules/dng.c for (y_off=camera_sensor.active_area.y1 + camera_sensor.jpeg.y; y_off<y_end; y_off += y_inc) camera_sensor 923 modules/dng.c for (x_off=camera_sensor.active_area.x1 + camera_sensor.jpeg.x; x_off<x_end; x_off += x_inc) camera_sensor 968 modules/dng.c for (x=camera_sensor.active_area.x1; x<camera_sensor.active_area.x2; x++) camera_sensor 971 modules/dng.c for (y=camera_sensor.active_area.y1; y<camera_sensor.active_area.y2; y++) camera_sensor 973 modules/dng.c if (get_raw_pixel(x,y) <= camera_sensor.dng_badpixel_value_limit) camera_sensor 975 modules/dng.c for (ylen=1; ylen<8 && (y+ylen)<camera_sensor.active_area.y2; ylen++) camera_sensor 976 modules/dng.c if (get_raw_pixel(x,y+ylen) > camera_sensor.dng_badpixel_value_limit) camera_sensor 1061 modules/dng.c if (get_raw_pixel(x, y) <= camera_sensor.dng_badpixel_value_limit) camera_sensor 1297 modules/dng.c rb_state.end = rb_state.dst + camera_sensor.raw_size; camera_sensor 571 modules/gui_bench.c s=write(x, hook_raw_image_addr(), camera_sensor.raw_size)/1024; camera_sensor 1277 modules/gui_fselect.c if (ptr->marked && ptr->isvalid && !ptr->isdir && (ptr->size >= camera_sensor.raw_size)) camera_sensor 1559 modules/gui_fselect.c if (selected->size >= camera_sensor.raw_size) camera_sensor 1562 modules/gui_fselect.c if ((marked_count > 1) || (selected->size > camera_sensor.raw_size)) camera_sensor 38 modules/module_exportlist.c &camera_sensor camera_sensor 32 modules/raw_merge.c result = from - sub + camera_sensor.black_level; camera_sensor 33 modules/raw_merge.c if (result < camera_sensor.black_level) result = camera_sensor.black_level; camera_sensor 34 modules/raw_merge.c if (result > camera_sensor.white_level) result = camera_sensor.white_level; camera_sensor 44 modules/raw_merge.c unsigned int req = (camera_sensor.raw_size >> 20) + 1; // Raw size in MB camera_sensor 59 modules/raw_merge.c if (stat(from,&st) != 0 || st.st_size < camera_sensor.raw_size) camera_sensor 64 modules/raw_merge.c fromDNG = st.st_size - camera_sensor.raw_size; camera_sensor 67 modules/raw_merge.c if (stat(sub,&st) != 0 || st.st_size < camera_sensor.raw_size) camera_sensor 72 modules/raw_merge.c subDNG = st.st_size - camera_sensor.raw_size; camera_sensor 81 modules/raw_merge.c unsigned char *bacc = malloc(camera_sensor.raw_rowlen); camera_sensor 82 modules/raw_merge.c unsigned char *bsub = malloc(camera_sensor.raw_rowlen); camera_sensor 101 modules/raw_merge.c if (l > camera_sensor.raw_rowlen) l = camera_sensor.raw_rowlen; camera_sensor 113 modules/raw_merge.c for (j = 0; j < camera_sensor.raw_rows; j++) camera_sensor 115 modules/raw_merge.c fread(bacc, 1, camera_sensor.raw_rowlen, ffrom); camera_sensor 116 modules/raw_merge.c if (fromDNG) reverse_bytes_order2((char*)bacc, (char*)bacc, camera_sensor.raw_rowlen); camera_sensor 117 modules/raw_merge.c fread(bsub, 1, camera_sensor.raw_rowlen, fsub); camera_sensor 118 modules/raw_merge.c if (subDNG) reverse_bytes_order2((char*)bsub, (char*)bsub, camera_sensor.raw_rowlen); camera_sensor 120 modules/raw_merge.c if (camera_sensor.bits_per_pixel == 10) camera_sensor 122 modules/raw_merge.c for (i=0; i<camera_sensor.raw_rowlen; i+=10) camera_sensor 173 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 12) camera_sensor 175 modules/raw_merge.c for (i=0; i<camera_sensor.raw_rowlen; i+=6) camera_sensor 202 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 14) camera_sensor 204 modules/raw_merge.c for (i=0; i<camera_sensor.raw_rowlen; i+=14) camera_sensor 260 modules/raw_merge.c if (fromDNG) reverse_bytes_order2((char*)bacc, (char*)bacc, camera_sensor.raw_rowlen); camera_sensor 261 modules/raw_merge.c fwrite(bacc, 1, camera_sensor.raw_rowlen, fdest); camera_sensor 263 modules/raw_merge.c gui_browser_progress_show(namebuf, j*100/camera_sensor.raw_rows); camera_sensor 288 modules/raw_merge.c unsigned int req = (camera_sensor.raw_size >> 18) + 1; // Raw size * 4 in MB camera_sensor 299 modules/raw_merge.c row = malloc(camera_sensor.raw_rowpix*sizeof(unsigned short)); camera_sensor 302 modules/raw_merge.c rawrow = malloc(camera_sensor.raw_rowlen); camera_sensor 324 modules/raw_merge.c if (stat(filename,&st) != 0 || st.st_size < camera_sensor.raw_size) camera_sensor 329 modules/raw_merge.c int fcrawDNG = st.st_size - camera_sensor.raw_size; camera_sensor 347 modules/raw_merge.c for (j=0; j<camera_sensor.raw_rows; j++) camera_sensor 350 modules/raw_merge.c fread(row, 1, camera_sensor.raw_rowpix*sizeof(unsigned short), fbrawin); camera_sensor 352 modules/raw_merge.c memset(row, 0, camera_sensor.raw_rowpix*sizeof(unsigned short)); camera_sensor 354 modules/raw_merge.c fread(rawrow, 1, camera_sensor.raw_rowlen, fcraw); camera_sensor 355 modules/raw_merge.c if (fcrawDNG) reverse_bytes_order2((char*)rawrow, (char*)rawrow, camera_sensor.raw_rowlen); camera_sensor 357 modules/raw_merge.c if (camera_sensor.bits_per_pixel == 10) camera_sensor 359 modules/raw_merge.c for (i=0, src=0; i<camera_sensor.raw_rowpix; i+=8, src+=10) camera_sensor 371 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 12) camera_sensor 373 modules/raw_merge.c for (i=0, src=0; i<camera_sensor.raw_rowpix; i+=4, src+=6) camera_sensor 381 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 14) camera_sensor 383 modules/raw_merge.c for (i=0, src=0; i<camera_sensor.raw_rowpix; i+=8, src+=14) camera_sensor 396 modules/raw_merge.c fwrite(row, 1, camera_sensor.raw_rowpix*sizeof(unsigned short), fbrawout); camera_sensor 398 modules/raw_merge.c gui_browser_progress_show(filename, j*100/camera_sensor.raw_rows); camera_sensor 431 modules/raw_merge.c if (stat(namebuf,&st) != 0 || st.st_size < camera_sensor.raw_size) camera_sensor 436 modules/raw_merge.c int destDNG = st.st_size - camera_sensor.raw_size; camera_sensor 473 modules/raw_merge.c if (l > camera_sensor.raw_rowlen) l = camera_sensor.raw_rowlen; camera_sensor 480 modules/raw_merge.c for (j=0; j<camera_sensor.raw_rows; j++) camera_sensor 482 modules/raw_merge.c fread(row, 1, camera_sensor.raw_rowpix*sizeof(unsigned short), fbraw); camera_sensor 486 modules/raw_merge.c for (i=0; i<camera_sensor.raw_rowpix; i++) camera_sensor 492 modules/raw_merge.c if (row[i] > camera_sensor.black_level*(raw_count-1)) camera_sensor 493 modules/raw_merge.c row[i] -= camera_sensor.black_level*(raw_count-1); camera_sensor 496 modules/raw_merge.c if (row[i] > camera_sensor.white_level) camera_sensor 497 modules/raw_merge.c row[i] = camera_sensor.white_level; camera_sensor 501 modules/raw_merge.c if (camera_sensor.bits_per_pixel == 10) camera_sensor 503 modules/raw_merge.c for (i=0,src=0; i<camera_sensor.raw_rowpix; i+=8, src+=10) camera_sensor 517 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 12) camera_sensor 519 modules/raw_merge.c for (i=0,src=0; i<camera_sensor.raw_rowpix; i+=4, src+=6) camera_sensor 529 modules/raw_merge.c else if (camera_sensor.bits_per_pixel == 14) camera_sensor 531 modules/raw_merge.c for (i=0,src=0; i<camera_sensor.raw_rowpix; i+=8, src+=14) camera_sensor 550 modules/raw_merge.c if (destDNG) reverse_bytes_order2((char*)rawrow, (char*)rawrow, camera_sensor.raw_rowlen); camera_sensor 551 modules/raw_merge.c fwrite(rawrow, 1, camera_sensor.raw_rowlen, fcraw); camera_sensor 553 modules/raw_merge.c gui_browser_progress_show(dest, j*100/camera_sensor.raw_rows); camera_sensor 45 modules/rawhookops.c lua_pushnumber(L,camera_sensor.cfa_pattern); camera_sensor 76 modules/rawhookops.c lua_pushnumber(L,camera_sensor.bits_per_pixel); camera_sensor 104 modules/rawhookops.c lua_pushnumber(L,camera_sensor.black_level); camera_sensor 113 modules/rawhookops.c lua_pushnumber(L,camera_sensor.white_level); camera_sensor 122 modules/rawhookops.c lua_pushnumber(L,camera_sensor.raw_rowpix); camera_sensor 131 modules/rawhookops.c lua_pushnumber(L,camera_sensor.raw_rows); camera_sensor 151 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.x1); camera_sensor 160 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.y1); camera_sensor 169 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.x2 - camera_sensor.active_area.x1); camera_sensor 178 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.y2 - camera_sensor.active_area.y1); camera_sensor 203 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.x1 + camera_sensor.jpeg.x); camera_sensor 212 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.y1 + camera_sensor.jpeg.y); camera_sensor 221 modules/rawhookops.c lua_pushnumber(L,camera_sensor.jpeg.width); camera_sensor 230 modules/rawhookops.c lua_pushnumber(L,camera_sensor.jpeg.height); camera_sensor 253 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { camera_sensor 276 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { camera_sensor 302 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { camera_sensor 335 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix - 1 || y >= (unsigned)camera_sensor.raw_rows - 1) { camera_sensor 368 modules/rawhookops.c if(xstart >= (unsigned)camera_sensor.raw_rowpix || ystart >= (unsigned)camera_sensor.raw_rows) { camera_sensor 371 modules/rawhookops.c if(xmax > (unsigned)camera_sensor.raw_rowpix) { camera_sensor 372 modules/rawhookops.c xmax = (unsigned)camera_sensor.raw_rowpix; camera_sensor 374 modules/rawhookops.c if(ymax > (unsigned)camera_sensor.raw_rows) { camera_sensor 375 modules/rawhookops.c ymax = (unsigned)camera_sensor.raw_rows; camera_sensor 423 modules/rawhookops.c if(x_max > (unsigned)camera_sensor.raw_rowpix) { camera_sensor 427 modules/rawhookops.c if(y_max > (unsigned)camera_sensor.raw_rows) { camera_sensor 431 modules/rawhookops.c if(x_count*y_count > (unsigned)0xFFFFFFFF >> camera_sensor.bits_per_pixel) { camera_sensor 465 modules/rawhookops.c if( v <= camera_sensor.black_level) { camera_sensor 466 modules/rawhookops.c v = camera_sensor.black_level+1; camera_sensor 468 modules/rawhookops.c int r=round_d2i((double)scale*(log2(v - camera_sensor.black_level) - log2_raw_neutral_count)); camera_sensor 488 modules/rawhookops.c lua_pushnumber(L,round_d2i(pow(2,(double)v/(double)scale+log2_raw_neutral_count)+camera_sensor.black_level)); camera_sensor 540 modules/rawhookops.c int bits=luaL_optnumber(L,8,camera_sensor.bits_per_pixel); camera_sensor 541 modules/rawhookops.c if(bits > camera_sensor.bits_per_pixel || bits < 1) { camera_sensor 544 modules/rawhookops.c unsigned shift = camera_sensor.bits_per_pixel - bits; camera_sensor 548 modules/rawhookops.c if(xstart >= (unsigned)camera_sensor.raw_rowpix camera_sensor 549 modules/rawhookops.c || ystart >= (unsigned)camera_sensor.raw_rows camera_sensor 557 modules/rawhookops.c if(xmax > (unsigned)camera_sensor.raw_rowpix) { camera_sensor 558 modules/rawhookops.c xmax = (unsigned)camera_sensor.raw_rowpix; camera_sensor 560 modules/rawhookops.c if(ymax > (unsigned)camera_sensor.raw_rows) { camera_sensor 561 modules/rawhookops.c ymax = (unsigned)camera_sensor.raw_rows; camera_sensor 745 modules/rawhookops.c double raw_neutral_count = (double)(camera_sensor.white_level - camera_sensor.black_level)/(6.669); camera_sensor 747 modules/rawhookops.c raw_neutral = round_d2i(raw_neutral_count) + camera_sensor.black_level; camera_sensor 767 modules/rawhookops.c int c = (camera_sensor.cfa_pattern >> 8*i) & 0xFF; camera_sensor 45 modules/shot_histogram.c int width = camera_sensor.active_area.x2 - camera_sensor.active_area.x1; camera_sensor 46 modules/shot_histogram.c int height = camera_sensor.active_area.y2 - camera_sensor.active_area.y1; camera_sensor 49 modules/shot_histogram.c x0 = camera_sensor.active_area.x1 + ((shot_margin_left * width) / 10); camera_sensor 50 modules/shot_histogram.c x1 = camera_sensor.active_area.x2 - ((shot_margin_right * width) / 10); camera_sensor 51 modules/shot_histogram.c y0 = camera_sensor.active_area.y1 + ((shot_margin_top * height) / 10); camera_sensor 52 modules/shot_histogram.c y1 = camera_sensor.active_area.y2 - ((shot_margin_bottom * height) / 10); camera_sensor 55 modules/shot_histogram.c if (camera_sensor.bits_per_pixel == 10) camera_sensor 67 modules/shot_histogram.c int shift = (camera_sensor.bits_per_pixel - 10);