Go to the documentation of this file.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 #define LIBPOSTPROC_VERSION_MAJOR 52
00033 #define LIBPOSTPROC_VERSION_MINOR 0
00034 #define LIBPOSTPROC_VERSION_MICRO 0
00035
00036 #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
00037 LIBPOSTPROC_VERSION_MINOR, \
00038 LIBPOSTPROC_VERSION_MICRO)
00039 #define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \
00040 LIBPOSTPROC_VERSION_MINOR, \
00041 LIBPOSTPROC_VERSION_MICRO)
00042 #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
00043
00044 #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
00045
00049 unsigned postproc_version(void);
00050
00054 const char *postproc_configuration(void);
00055
00059 const char *postproc_license(void);
00060
00061 #define PP_QUALITY_MAX 6
00062
00063 #define QP_STORE_T int8_t
00064
00065 #include <inttypes.h>
00066
00067 typedef void pp_context;
00068 typedef void pp_mode;
00069
00070 extern const char pp_help[];
00071
00072 void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
00073 uint8_t * dst[3], const int dstStride[3],
00074 int horizontalSize, int verticalSize,
00075 const QP_STORE_T *QP_store, int QP_stride,
00076 pp_mode *mode, pp_context *ppContext, int pict_type);
00077
00078
00085 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);
00086 void pp_free_mode(pp_mode *mode);
00087
00088 pp_context *pp_get_context(int width, int height, int flags);
00089 void pp_free_context(pp_context *ppContext);
00090
00091 #define PP_CPU_CAPS_MMX 0x80000000
00092 #define PP_CPU_CAPS_MMX2 0x20000000
00093 #define PP_CPU_CAPS_3DNOW 0x40000000
00094 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00095
00096 #define PP_FORMAT 0x00000008
00097 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00098 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00099 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00100 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00101
00102 #define PP_PICT_TYPE_QP2 0x00000010 ///< MPEG2 style QScale
00103
00104 #endif