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 extern char *pp_help;
00046
00047 void pp_postprocess(uint8_t * src[3], int srcStride[3],
00048 uint8_t * dst[3], int dstStride[3],
00049 int horizontalSize, int verticalSize,
00050 QP_STORE_T *QP_store, int QP_stride,
00051 pp_mode_t *mode, pp_context_t *ppContext, int pict_type);
00052
00053
00059 pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality);
00060 void pp_free_mode(pp_mode_t *mode);
00061
00062 pp_context_t *pp_get_context(int width, int height, int flags);
00063 void pp_free_context(pp_context_t *ppContext);
00064
00065 #define PP_CPU_CAPS_MMX 0x80000000
00066 #define PP_CPU_CAPS_MMX2 0x20000000
00067 #define PP_CPU_CAPS_3DNOW 0x40000000
00068 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00069
00070 #define PP_FORMAT 0x00000008
00071 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00072 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00073 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00074 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00075
00076 #define PP_PICT_TYPE_QP2 0x00000010
00077
00078 #endif