Commit 19f8c2b0 authored by michael's avatar michael

final changes to convert to C


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2170 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 198600cc
...@@ -1606,7 +1606,7 @@ FIND_MIN_MAX(%%ebx, %1, 2) ...@@ -1606,7 +1606,7 @@ FIND_MIN_MAX(%%ebx, %1, 2)
* the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63) * 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 * -63 is best quality -1 is worst
*/ */
extern "C"{ //extern "C"{
void postprocess(unsigned char * src[], int src_stride, void postprocess(unsigned char * src[], int src_stride,
unsigned char * dst[], int dst_stride, unsigned char * dst[], int dst_stride,
int horizontal_size, int vertical_size, int horizontal_size, int vertical_size,
...@@ -1669,7 +1669,7 @@ int getModeForQuality(int quality){ ...@@ -1669,7 +1669,7 @@ int getModeForQuality(int quality){
return modes[ (quality*6) >>6 ]; return modes[ (quality*6) >>6 ];
} }
} // extern "C" //} // extern "C"
/** /**
* Copies a block from src to dst and fixes the blacklevel * Copies a block from src to dst and fixes the blacklevel
......
...@@ -64,17 +64,17 @@ ...@@ -64,17 +64,17 @@
#define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t" #define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t"
#endif #endif
#ifdef __cplusplus //#ifdef __cplusplus
//#include <inttypes.h> //#include <inttypes.h>
void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, 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); QP_STORE_T QPs[], int QPStride, int isColor, int mode);
#endif //#endif
#ifdef __cplusplus //#ifdef __cplusplus
extern "C" //extern "C"
{ //{
#endif //#endif
void postprocess(unsigned char * src[], int src_stride, void postprocess(unsigned char * src[], int src_stride,
unsigned char * dst[], int dst_stride, unsigned char * dst[], int dst_stride,
int horizontal_size, int vertical_size, int horizontal_size, int vertical_size,
...@@ -82,9 +82,9 @@ void postprocess(unsigned char * src[], int src_stride, ...@@ -82,9 +82,9 @@ void postprocess(unsigned char * src[], int src_stride,
int mode); int mode);
int getModeForQuality(int quality); int getModeForQuality(int quality);
#ifdef __cplusplus //#ifdef __cplusplus
} //}
#endif //#endif
#endif #endif
...@@ -1606,7 +1606,7 @@ FIND_MIN_MAX(%%ebx, %1, 2) ...@@ -1606,7 +1606,7 @@ FIND_MIN_MAX(%%ebx, %1, 2)
* the mode value is interpreted as a quality value if its negative, its range is then (-1 ... -63) * 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 * -63 is best quality -1 is worst
*/ */
extern "C"{ //extern "C"{
void postprocess(unsigned char * src[], int src_stride, void postprocess(unsigned char * src[], int src_stride,
unsigned char * dst[], int dst_stride, unsigned char * dst[], int dst_stride,
int horizontal_size, int vertical_size, int horizontal_size, int vertical_size,
...@@ -1669,7 +1669,7 @@ int getModeForQuality(int quality){ ...@@ -1669,7 +1669,7 @@ int getModeForQuality(int quality){
return modes[ (quality*6) >>6 ]; return modes[ (quality*6) >>6 ];
} }
} // extern "C" //} // extern "C"
/** /**
* Copies a block from src to dst and fixes the blacklevel * Copies a block from src to dst and fixes the blacklevel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment