Mercurial > libavcodec.hg
comparison libpostproc/postprocess.h @ 804:f3a1bc99d4a0 libavcodec
change qscale type to int8 and fix qscale ordering
| author | michael |
|---|---|
| date | Wed, 30 Oct 2002 20:50:31 +0000 |
| parents | 52ac8213387e |
| children | de7636688003 |
comparison
equal
deleted
inserted
replaced
| 803:08423289ec57 | 804:f3a1bc99d4a0 |
|---|---|
| 60 //cant differentiate between chroma & luma filters (both on or both off) | 60 //cant differentiate between chroma & luma filters (both on or both off) |
| 61 //obviosly the -pp option at the commandline has no effect except turning the here selected | 61 //obviosly the -pp option at the commandline has no effect except turning the here selected |
| 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 int8_t |
| 66 | 66 |
| 67 char *pp_help; | 67 typedef void pp_context; |
| 68 | |
| 69 extern char *pp_help; | |
| 68 | 70 |
| 69 //FIXME decide if this should be exported at all | 71 //FIXME decide if this should be exported at all |
| 70 typedef struct PPMode{ | 72 typedef struct PPMode{ |
| 71 int lumMode; // acivates filters for luminance | 73 int lumMode; // acivates filters for luminance |
| 72 int chromMode; // acivates filters for chrominance | 74 int chromMode; // acivates filters for chrominance |
| 86 | 88 |
| 87 void pp_postprocess(uint8_t * src[3], int srcStride[3], | 89 void pp_postprocess(uint8_t * src[3], int srcStride[3], |
| 88 uint8_t * dst[3], int dstStride[3], | 90 uint8_t * dst[3], int dstStride[3], |
| 89 int horizontalSize, int verticalSize, | 91 int horizontalSize, int verticalSize, |
| 90 QP_STORE_T *QP_store, int QP_stride, | 92 QP_STORE_T *QP_store, int QP_stride, |
| 91 PPMode *mode, void *ppContext, int pict_type); | 93 PPMode *mode, pp_context *ppContext, int pict_type); |
| 92 | 94 |
| 93 // name is the stuff after "-pp" on the command line | 95 // name is the stuff after "-pp" on the command line |
| 94 PPMode pp_get_mode_by_name_and_quality(char *name, int quality); | 96 PPMode pp_get_mode_by_name_and_quality(char *name, int quality); |
| 95 | 97 |
| 96 void *pp_get_context(int width, int height); | 98 pp_context *pp_get_context(int width, int height); |
| 97 void pp_free_context(void *ppContext); | 99 void pp_free_context(pp_context *ppContext); |
| 98 | 100 |
| 99 int pp_init(int cpuCaps); | 101 int pp_init(int cpuCaps); |
| 100 #define PP_CPU_CAPS_MMX 0x80000000 | 102 #define PP_CPU_CAPS_MMX 0x80000000 |
| 101 #define PP_CPU_CAPS_MMX2 0x20000000 | 103 #define PP_CPU_CAPS_MMX2 0x20000000 |
| 102 #define PP_CPU_CAPS_3DNOW 0x40000000 | 104 #define PP_CPU_CAPS_3DNOW 0x40000000 |
