# HG changeset patch # User michael # Date 1002842938 0 # Node ID a284336bfecf668b6005e3d49d8d5adf04d6f1c5 # Parent 21a8f158d19fbfe6e7541bc7bcb1f7de70459131 final changes to convert to C diff -r 21a8f158d19f -r a284336bfecf postproc/postprocess.c --- a/postproc/postprocess.c Thu Oct 11 22:35:45 2001 +0000 +++ b/postproc/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 21a8f158d19f -r a284336bfecf postproc/postprocess.h --- a/postproc/postprocess.h Thu Oct 11 22:35:45 2001 +0000 +++ b/postproc/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 21a8f158d19f -r a284336bfecf postproc/postprocess_template.c --- a/postproc/postprocess_template.c Thu Oct 11 22:35:45 2001 +0000 +++ b/postproc/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