Mercurial > libavcodec.hg
comparison libpostproc/postprocess.c @ 98:eaae16507d9b libavcodec
final changes to convert to C
| author | michael |
|---|---|
| date | Thu, 11 Oct 2001 23:28:58 +0000 |
| parents | e57b1d38d71f |
| children | 4f072fa99ccf |
comparison
equal
deleted
inserted
replaced
| 97:e57b1d38d71f | 98:eaae16507d9b |
|---|---|
| 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 |
