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
00035 #include "libpostproc/version.h"
00036
00040 unsigned postproc_version(void);
00041
00045 const char *postproc_configuration(void);
00046
00050 const char *postproc_license(void);
00051
00052 #define PP_QUALITY_MAX 6
00053
00054 #define QP_STORE_T int8_t
00055
00056 #include <inttypes.h>
00057
00058 typedef void pp_context;
00059 typedef void pp_mode;
00060
00061 #if LIBPOSTPROC_VERSION_INT < (52<<16)
00062 typedef pp_context pp_context_t;
00063 typedef pp_mode pp_mode_t;
00064 extern const char *const pp_help;
00065 #else
00066 extern const char pp_help[];
00067 #endif
00068
00069 void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
00070 uint8_t * dst[3], const int dstStride[3],
00071 int horizontalSize, int verticalSize,
00072 const QP_STORE_T *QP_store, int QP_stride,
00073 pp_mode *mode, pp_context *ppContext, int pict_type);
00074
00075
00082 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);
00083 void pp_free_mode(pp_mode *mode);
00084
00085 pp_context *pp_get_context(int width, int height, int flags);
00086 void pp_free_context(pp_context *ppContext);
00087
00088 #define PP_CPU_CAPS_MMX 0x80000000
00089 #define PP_CPU_CAPS_MMX2 0x20000000
00090 #define PP_CPU_CAPS_3DNOW 0x40000000
00091 #define PP_CPU_CAPS_ALTIVEC 0x10000000
00092 #define PP_CPU_CAPS_AUTO 0x00080000
00093
00094 #define PP_FORMAT 0x00000008
00095 #define PP_FORMAT_420 (0x00000011|PP_FORMAT)
00096 #define PP_FORMAT_422 (0x00000001|PP_FORMAT)
00097 #define PP_FORMAT_411 (0x00000002|PP_FORMAT)
00098 #define PP_FORMAT_444 (0x00000000|PP_FORMAT)
00099
00100 #define PP_PICT_TYPE_QP2 0x00000010
00101
00102
00106 #endif