comparison postprocess.h @ 115:213fc392f0c0 libpostproc

Drop _t from typedef names for POSIX compatibility.
author diego
date Thu, 11 Dec 2008 20:06:16 +0000
parents bf39174d9785
children a4769eff95f0
comparison
equal deleted inserted replaced
114:4bcd22663020 115:213fc392f0c0
52 52
53 #define QP_STORE_T int8_t 53 #define QP_STORE_T int8_t
54 54
55 #include <inttypes.h> 55 #include <inttypes.h>
56 56
57 typedef void pp_context_t; 57 typedef void pp_context;
58 typedef void pp_mode_t; 58 typedef void pp_mode;
59 59
60 #if LIBPOSTPROC_VERSION_INT < (52<<16) 60 #if LIBPOSTPROC_VERSION_INT < (52<<16)
61 extern const char *const pp_help; ///< a simple help text 61 extern const char *const pp_help; ///< a simple help text
62 #else 62 #else
63 extern const char pp_help[]; ///< a simple help text 63 extern const char pp_help[]; ///< a simple help text
65 65
66 void pp_postprocess(const uint8_t * src[3], const int srcStride[3], 66 void pp_postprocess(const uint8_t * src[3], const int srcStride[3],
67 uint8_t * dst[3], const int dstStride[3], 67 uint8_t * dst[3], const int dstStride[3],
68 int horizontalSize, int verticalSize, 68 int horizontalSize, int verticalSize,
69 const QP_STORE_T *QP_store, int QP_stride, 69 const QP_STORE_T *QP_store, int QP_stride,
70 pp_mode_t *mode, pp_context_t *ppContext, int pict_type); 70 pp_mode *mode, pp_context *ppContext, int pict_type);
71 71
72 72
73 /** 73 /**
74 * returns a pp_mode_t or NULL if an error occurred 74 * returns a pp_mode or NULL if an error occurred
75 * name is the string after "-pp" on the command line 75 * name is the string after "-pp" on the command line
76 * quality is a number from 0 to PP_QUALITY_MAX 76 * quality is a number from 0 to PP_QUALITY_MAX
77 */ 77 */
78 pp_mode_t *pp_get_mode_by_name_and_quality(const char *name, int quality); 78 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);
79 void pp_free_mode(pp_mode_t *mode); 79 void pp_free_mode(pp_mode *mode);
80 80
81 pp_context_t *pp_get_context(int width, int height, int flags); 81 pp_context *pp_get_context(int width, int height, int flags);
82 void pp_free_context(pp_context_t *ppContext); 82 void pp_free_context(pp_context *ppContext);
83 83
84 #define PP_CPU_CAPS_MMX 0x80000000 84 #define PP_CPU_CAPS_MMX 0x80000000
85 #define PP_CPU_CAPS_MMX2 0x20000000 85 #define PP_CPU_CAPS_MMX2 0x20000000
86 #define PP_CPU_CAPS_3DNOW 0x40000000 86 #define PP_CPU_CAPS_3DNOW 0x40000000
87 #define PP_CPU_CAPS_ALTIVEC 0x10000000 87 #define PP_CPU_CAPS_ALTIVEC 0x10000000