const int cam_AnalogBalance [ ] = { 1, 1, 1, 1, 1, 1 };int cam_AsShotNeutral [ ] = { 1000, 1000, 1000, 1000, 1000, 1000 };
get_property_case ( PROPCASE_WB_ADJ, &wb, sizeof ( wb ) ); cam_AsShotNeutral [ 1 ] = wb [ 1 ]; cam_AsShotNeutral [ 3 ] = wb [ 0 ]; cam_AsShotNeutral [ 5 ] = wb [ 2 ];
* buf++ = img [ triplets_in_bytes + 1 ]; // Y values * buf++ = img [ triplets_in_bytes ]; // Cb value * buf++ = img [ triplets_in_bytes + 2 ]; // Cr value
yc = img [ triplets_in_bytes + 1 ] << 12; // Y valuecb = img [ triplets_in_bytes ]; // Cb valuecr = img [ triplets_in_bytes + 2 ]; // Cr valuecb = ( cb > 127 ? cb - 256 : cb ); // Cb valuecr = ( cr > 127 ? cr - 256 : cr ); // Cr value* buf++ = clip ( ( yc + ( 5742 * cr ) + 2048 ) >> 12 );* buf++ = clip ( ( yc - ( 1410 * cb + 2925 * cr ) + 2048 ) >> 12 );* buf++ = clip ( ( yc + ( 7258 * cb ) + 2048 ) >> 12 );
Started by brabl2 « 1 2 ... 167 168 » General Discussion and Assistance
Started by andre117 General Discussion and Assistance
Started by Cortexelus Script Writing
Started by koshy « 1 2 3 4 » General Discussion and Assistance
Started by srsa_4c « 1 2 » General Discussion and Assistance