00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FFMPEG_POSTPROCESS_H
00022 #define FFMPEG_POSTPROCESS_H
00023
00030 #define LIBPOSTPROC_VERSION_INT ((51<<16)+(1<<8)+0)
00031 #define LIBPOSTPROC_VERSION 51.1.0
00032 #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
00033
00034 #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
00035
00036 #define PP_QUALITY_MAX 6
00037
00038 #define QP_STORE_T int8_t
00039
00040 #include <inttypes.h>
00041
00042 typedef void pp_context_t;
00043 typedef void pp_mode_t;
00044
00045 #if LIBPOSTPROC_VERSION_INT < (52<<16)
00046 extern const char *const pp_help;
00047 #else
00048 extern const char pp_help[];
00049 #endif
00050
00051 void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
00052 uint8_t * dst[3], const int dstStride[3],
00053 int horizontalSize, int verticalSize,
00054 const QP_STORE_T *QP_store, int QP_stride,
00055 pp_mode_t *mode, pp_context_t *ppContext, int pict_type);
00056
00057
00063 pp_mode_t *pp_get_mode_by_name_and_quality(const char *name, int quality);
00064 void pp_free_mode(pp_mode_t *mode);
00065
00066 pp_context_t *pp_get_context(int width, int height, int flags);
00067 void pp_free_context(pp_context_t *ppContext);
00068
00069 #define PP_CPU_CAPS_MMX 0x80000000
00070 #define PP_CPU_CAPS_MMX2 0x20000000
00071 #define PP_CPU_CAPS_3DNOW 0x40000000
00072 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00073
00074 #define PP_FORMAT 0x00000008
00075 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00076 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00077 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00078 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00079
00080 #define PP_PICT_TYPE_QP2 0x00000010
00081
00082 #endif