00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef POSTPROC_POSTPROCESS_H
00022 #define POSTPROC_POSTPROCESS_H
00023
00030 #include "libavutil/avutil.h"
00031
00032 #ifndef LIBPOSTPROC_VERSION_MAJOR
00033 #define LIBPOSTPROC_VERSION_MAJOR 52
00034 #define LIBPOSTPROC_VERSION_MINOR 0
00035 #define LIBPOSTPROC_VERSION_MICRO 100
00036 #endif
00037
00038 #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
00039 LIBPOSTPROC_VERSION_MINOR, \
00040 LIBPOSTPROC_VERSION_MICRO)
00041 #define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \
00042 LIBPOSTPROC_VERSION_MINOR, \
00043 LIBPOSTPROC_VERSION_MICRO)
00044 #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
00045
00046 #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
00047
00051 unsigned postproc_version(void);
00052
00056 const char *postproc_configuration(void);
00057
00061 const char *postproc_license(void);
00062
00063 #define PP_QUALITY_MAX 6
00064
00065 #define QP_STORE_T int8_t
00066
00067 #include <inttypes.h>
00068
00069 typedef void pp_context;
00070 typedef void pp_mode;
00071
00072 #if LIBPOSTPROC_VERSION_INT < (52<<16)
00073 typedef pp_context pp_context_t;
00074 typedef pp_mode pp_mode_t;
00075 extern const char *const pp_help;
00076 #else
00077 extern const char pp_help[];
00078 #endif
00079
00080 void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
00081 uint8_t * dst[3], const int dstStride[3],
00082 int horizontalSize, int verticalSize,
00083 const QP_STORE_T *QP_store, int QP_stride,
00084 pp_mode *mode, pp_context *ppContext, int pict_type);
00085
00086
00093 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);
00094 void pp_free_mode(pp_mode *mode);
00095
00096 pp_context *pp_get_context(int width, int height, int flags);
00097 void pp_free_context(pp_context *ppContext);
00098
00099 #define PP_CPU_CAPS_MMX 0x80000000
00100 #define PP_CPU_CAPS_MMX2 0x20000000
00101 #define PP_CPU_CAPS_3DNOW 0x40000000
00102 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00103
00104 #define PP_FORMAT 0x00000008
00105 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00106 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00107 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00108 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00109
00110 #define PP_PICT_TYPE_QP2 0x00000010
00111
00112 #endif