comparison postproc/postprocess_template.c @ 2169:a284336bfecf

final changes to convert to C
author michael
date Thu, 11 Oct 2001 23:28:58 +0000
parents 21a8f158d19f
children 2d8d14b882cc
comparison
equal deleted inserted replaced
2168:21a8f158d19f 2169:a284336bfecf
1604 /** 1604 /**
1605 * ... 1605 * ...
1606 * the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63) 1606 * the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63)
1607 * -63 is best quality -1 is worst 1607 * -63 is best quality -1 is worst
1608 */ 1608 */
1609 extern "C"{ 1609 //extern "C"{
1610 void postprocess(unsigned char * src[], int src_stride, 1610 void postprocess(unsigned char * src[], int src_stride,
1611 unsigned char * dst[], int dst_stride, 1611 unsigned char * dst[], int dst_stride,
1612 int horizontal_size, int vertical_size, 1612 int horizontal_size, int vertical_size,
1613 QP_STORE_T *QP_store, int QP_stride, 1613 QP_STORE_T *QP_store, int QP_stride,
1614 int mode) 1614 int mode)
1667 }; 1667 };
1668 1668
1669 return modes[ (quality*6) >>6 ]; 1669 return modes[ (quality*6) >>6 ];
1670 } 1670 }
1671 1671
1672 } // extern "C" 1672 //} // extern "C"
1673 1673
1674 /** 1674 /**
1675 * Copies a block from src to dst and fixes the blacklevel 1675 * Copies a block from src to dst and fixes the blacklevel
1676 * numLines must be a multiple of 4 1676 * numLines must be a multiple of 4
1677 * levelFix == 0 -> dont touch the brighness & contrast 1677 * levelFix == 0 -> dont touch the brighness & contrast