Mercurial > libavcodec.hg
comparison libpostproc/postprocess.h @ 792:2d1283d511b7 libavcodec
cosmetics ;)
prefixing all functions with pp_ to avoid namespace issues
| author | michael |
|---|---|
| date | Tue, 29 Oct 2002 18:51:52 +0000 |
| parents | 4f61ca80b6c1 |
| children | 8e9faf69110f |
comparison
equal
deleted
inserted
replaced
| 791:4f61ca80b6c1 | 792:2d1283d511b7 |
|---|---|
| 62 //filters on | 62 //filters on |
| 63 //#define COMPILE_TIME_MODE 0x77 | 63 //#define COMPILE_TIME_MODE 0x77 |
| 64 | 64 |
| 65 #define QP_STORE_T int | 65 #define QP_STORE_T int |
| 66 | 66 |
| 67 char *postproc_help; | 67 char *pp_help; |
| 68 | 68 |
| 69 //FIXME decide if this should be exported at all | |
| 69 typedef struct PPMode{ | 70 typedef struct PPMode{ |
| 70 int lumMode; //acivates filters for luminance | 71 int lumMode; //acivates filters for luminance |
| 71 int chromMode; //acivates filters for chrominance | 72 int chromMode; //acivates filters for chrominance |
| 72 int error; // non zero on error | 73 int error; // non zero on error |
| 73 | 74 |
| 80 int flatnessThreshold; | 81 int flatnessThreshold; |
| 81 | 82 |
| 82 int forcedQuant; // quantizer if FORCE_QUANT is used | 83 int forcedQuant; // quantizer if FORCE_QUANT is used |
| 83 } PPMode; | 84 } PPMode; |
| 84 | 85 |
| 85 void postprocess(uint8_t * src[3], int srcStride[3], | 86 void pp_postprocess(uint8_t * src[3], int srcStride[3], |
| 86 uint8_t * dst[3], int dstStride[3], | 87 uint8_t * dst[3], int dstStride[3], |
| 87 int horizontalSize, int verticalSize, | 88 int horizontalSize, int verticalSize, |
| 88 QP_STORE_T *QP_store, int QP_stride, | 89 QP_STORE_T *QP_store, int QP_stride, |
| 89 PPMode *mode, void *ppContext, int pict_type); | 90 PPMode *mode, void *ppContext, int pict_type); |
| 90 | 91 |
| 91 // name is the stuff after "-pp" on the command line | 92 // name is the stuff after "-pp" on the command line |
| 92 PPMode getPPModeByNameAndQuality(char *name, int quality); | 93 PPMode pp_get_mode_by_name_and_quality(char *name, int quality); |
| 93 | 94 |
| 94 void *getPPContext(int width, int height); | 95 void *pp_get_context(int width, int height); |
| 95 void freePPContext(void *ppContext); | 96 void pp_free_context(void *ppContext); |
| 96 | |
| 97 int readPPOpt(void *conf, char *arg); | |
| 98 | 97 |
| 99 #endif | 98 #endif |
