Commit 9cb54f43 authored by Michael Niedermayer's avatar Michael Niedermayer

cosmetics ;)

 prefixing all functions with pp_ to avoid namespace issues

Originally committed as revision 7962 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent ec487e5d
...@@ -587,7 +587,7 @@ char *postproc_help= ...@@ -587,7 +587,7 @@ char *postproc_help=
* name is the string after "-pp" on the command line * name is the string after "-pp" on the command line
* quality is a number from 0 to GET_PP_QUALITY_MAX * quality is a number from 0 to GET_PP_QUALITY_MAX
*/ */
struct PPMode getPPModeByNameAndQuality(char *name, int quality) struct PPMode pp_get_mode_by_name_and_quality(char *name, int quality)
{ {
char temp[GET_MODE_BUFFER_SIZE]; char temp[GET_MODE_BUFFER_SIZE];
char *p= temp; char *p= temp;
...@@ -765,7 +765,7 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality) ...@@ -765,7 +765,7 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
return ppMode; return ppMode;
} }
void *getPPContext(int width, int height){ void *pp_get_context(int width, int height){
PPContext *c= memalign(32, sizeof(PPContext)); PPContext *c= memalign(32, sizeof(PPContext));
int i; int i;
int mbWidth = (width+15)>>4; int mbWidth = (width+15)>>4;
...@@ -799,7 +799,7 @@ void *getPPContext(int width, int height){ ...@@ -799,7 +799,7 @@ void *getPPContext(int width, int height){
return c; return c;
} }
void freePPContext(void *vc){ void pp_free_context(void *vc){
PPContext *c = (PPContext*)vc; PPContext *c = (PPContext*)vc;
int i; int i;
...@@ -844,7 +844,7 @@ void revertPPOpt(void *conf, char* opt) ...@@ -844,7 +844,7 @@ void revertPPOpt(void *conf, char* opt)
} }
void postprocess(uint8_t * src[3], int srcStride[3], void pp_postprocess(uint8_t * src[3], int srcStride[3],
uint8_t * dst[3], int dstStride[3], uint8_t * dst[3], int dstStride[3],
int width, int height, int width, int height,
QP_STORE_T *QP_store, int QPStride, QP_STORE_T *QP_store, int QPStride,
......
...@@ -64,8 +64,9 @@ ...@@ -64,8 +64,9 @@
#define QP_STORE_T int #define QP_STORE_T int
char *postproc_help; char *pp_help;
//FIXME decide if this should be exported at all
typedef struct PPMode{ typedef struct PPMode{
int lumMode; //acivates filters for luminance int lumMode; //acivates filters for luminance
int chromMode; //acivates filters for chrominance int chromMode; //acivates filters for chrominance
...@@ -82,18 +83,16 @@ typedef struct PPMode{ ...@@ -82,18 +83,16 @@ typedef struct PPMode{
int forcedQuant; // quantizer if FORCE_QUANT is used int forcedQuant; // quantizer if FORCE_QUANT is used
} PPMode; } PPMode;
void postprocess(uint8_t * src[3], int srcStride[3], void pp_postprocess(uint8_t * src[3], int srcStride[3],
uint8_t * dst[3], int dstStride[3], uint8_t * dst[3], int dstStride[3],
int horizontalSize, int verticalSize, int horizontalSize, int verticalSize,
QP_STORE_T *QP_store, int QP_stride, QP_STORE_T *QP_store, int QP_stride,
PPMode *mode, void *ppContext, int pict_type); PPMode *mode, void *ppContext, int pict_type);
// name is the stuff after "-pp" on the command line // name is the stuff after "-pp" on the command line
PPMode getPPModeByNameAndQuality(char *name, int quality); PPMode pp_get_mode_by_name_and_quality(char *name, int quality);
void *getPPContext(int width, int height); void *pp_get_context(int width, int height);
void freePPContext(void *ppContext); void pp_free_context(void *ppContext);
int readPPOpt(void *conf, char *arg);
#endif #endif
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