# HG changeset patch # User michael # Date 1002842938 0 # Node ID eaae16507d9bcb62892da5028947fab197c4e1ea # Parent e57b1d38d71fc4d92f4d3c5c6636abc8405729fe final changes to convert to C diff -r e57b1d38d71f -r eaae16507d9b libpostproc/postprocess.c --- a/libpostproc/postprocess.c Thu Oct 11 22:35:45 2001 +0000 +++ b/libpostproc/postprocess.c Thu Oct 11 23:28:58 2001 +0000 @@ -1606,7 +1606,7 @@ * the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63) * -63 is best quality -1 is worst */ -extern "C"{ +//extern "C"{ void postprocess(unsigned char * src[], int src_stride, unsigned char * dst[], int dst_stride, int horizontal_size, int vertical_size, @@ -1669,7 +1669,7 @@ return modes[ (quality*6) >>6 ]; } -} // extern "C" +//} // extern "C" /** * Copies a block from src to dst and fixes the blacklevel diff -r e57b1d38d71f -r eaae16507d9b libpostproc/postprocess.h --- a/libpostproc/postprocess.h Thu Oct 11 22:35:45 2001 +0000 +++ b/libpostproc/postprocess.h Thu Oct 11 23:28:58 2001 +0000 @@ -64,17 +64,17 @@ #define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t" #endif -#ifdef __cplusplus +//#ifdef __cplusplus //#include void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, QP_STORE_T QPs[], int QPStride, int isColor, int mode); -#endif +//#endif -#ifdef __cplusplus -extern "C" -{ -#endif +//#ifdef __cplusplus +//extern "C" +//{ +//#endif void postprocess(unsigned char * src[], int src_stride, unsigned char * dst[], int dst_stride, int horizontal_size, int vertical_size, @@ -82,9 +82,9 @@ int mode); int getModeForQuality(int quality); -#ifdef __cplusplus -} -#endif +//#ifdef __cplusplus +//} +//#endif #endif diff -r e57b1d38d71f -r eaae16507d9b libpostproc/postprocess_template.c --- a/libpostproc/postprocess_template.c Thu Oct 11 22:35:45 2001 +0000 +++ b/libpostproc/postprocess_template.c Thu Oct 11 23:28:58 2001 +0000 @@ -1606,7 +1606,7 @@ * the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63) * -63 is best quality -1 is worst */ -extern "C"{ +//extern "C"{ void postprocess(unsigned char * src[], int src_stride, unsigned char * dst[], int dst_stride, int horizontal_size, int vertical_size, @@ -1669,7 +1669,7 @@ return modes[ (quality*6) >>6 ]; } -} // extern "C" +//} // extern "C" /** * Copies a block from src to dst and fixes the blacklevel