00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef NEWPOSTPROCESS_H
00020 #define NEWPOSTPROCESS_H
00021
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00032 #define PP_QUALITY_MAX 6
00033
00034 #define QP_STORE_T int8_t
00035
00036 typedef void pp_context_t;
00037 typedef void pp_mode_t;
00038
00039 extern char *pp_help;
00040
00041 void pp_postprocess(uint8_t * src[3], int srcStride[3],
00042 uint8_t * dst[3], int dstStride[3],
00043 int horizontalSize, int verticalSize,
00044 QP_STORE_T *QP_store, int QP_stride,
00045 pp_mode_t *mode, pp_context_t *ppContext, int pict_type);
00046
00047
00053 pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality);
00054 void pp_free_mode(pp_mode_t *mode);
00055
00056 pp_context_t *pp_get_context(int width, int height, int flags);
00057 void pp_free_context(pp_context_t *ppContext);
00058
00059 #define PP_CPU_CAPS_MMX 0x80000000
00060 #define PP_CPU_CAPS_MMX2 0x20000000
00061 #define PP_CPU_CAPS_3DNOW 0x40000000
00062 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00063
00064 #define PP_FORMAT 0x00000008
00065 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00066 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00067 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00068 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00069
00070 #define PP_PICT_TYPE_QP2 0x00000010
00071
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif