Browse Source

final changes to convert to C

Originally committed as revision 2170 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
tags/v0.5
Michael Niedermayer 24 years ago
parent
commit
67b4cf184a
3 changed files with 13 additions and 13 deletions
  1. +2
    -2
      postproc/postprocess.c
  2. +9
    -9
      postproc/postprocess.h
  3. +2
    -2
      postproc/postprocess_template.c

+ 2
- 2
postproc/postprocess.c View File

@@ -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)
* -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 @@ int getModeForQuality(int quality){
return modes[ (quality*6) >>6 ];
}

} // extern "C"
//} // extern "C"

/**
* Copies a block from src to dst and fixes the blacklevel


+ 9
- 9
postproc/postprocess.h View File

@@ -64,17 +64,17 @@
#define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t"
#endif

#ifdef __cplusplus
//#ifdef __cplusplus
//#include <inttypes.h>

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 @@ void postprocess(unsigned char * src[], int src_stride,
int mode);

int getModeForQuality(int quality);
#ifdef __cplusplus
}
#endif
//#ifdef __cplusplus
//}
//#endif


#endif

+ 2
- 2
postproc/postprocess_template.c View File

@@ -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)
* -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 @@ int getModeForQuality(int quality){
return modes[ (quality*6) >>6 ];
}

} // extern "C"
//} // extern "C"

/**
* Copies a block from src to dst and fixes the blacklevel


Loading…
Cancel
Save