Revision 4407a3c4

View differences:

postproc/postprocess.c
535 535

  
536 536
/* -pp Command line Help
537 537
*/
538
char *postproc_help=
538
char *pp_help=
539 539
"-npp <filterName>[:<option>[:<option>...]][,[-]<filterName>[:<option>...]]...\n"
540 540
"long form example:\n"
541 541
"-npp vdeblock:autoq,hdeblock:autoq,linblenddeint	-npp default,-vdeblock\n"
postproc/postprocess.h
62 62
//filters on
63 63
//#define COMPILE_TIME_MODE 0x77
64 64

  
65
#define QP_STORE_T int
65
#define QP_STORE_T int8_t
66 66

  
67
char *pp_help;
67
typedef void pp_context;
68

  
69
extern char *pp_help;
68 70

  
69 71
//FIXME decide if this should be exported at all
70 72
typedef struct PPMode{
......
88 90
                 uint8_t * dst[3], int dstStride[3],
89 91
                 int horizontalSize, int verticalSize,
90 92
                 QP_STORE_T *QP_store,  int QP_stride,
91
		 PPMode *mode, void *ppContext, int pict_type);
93
		 PPMode *mode, pp_context *ppContext, int pict_type);
92 94

  
93 95
// name is the stuff after "-pp" on the command line
94 96
PPMode pp_get_mode_by_name_and_quality(char *name, int quality);
95 97

  
96
void *pp_get_context(int width, int height);
97
void pp_free_context(void *ppContext);
98
pp_context *pp_get_context(int width, int height);
99
void pp_free_context(pp_context *ppContext);
98 100

  
99 101
int pp_init(int cpuCaps);
100 102
#define PP_CPU_CAPS_MMX   0x80000000
postproc/postprocess_template.c
2835 2835
		uint8_t *tempBlock1= c.tempBlocks;
2836 2836
		uint8_t *tempBlock2= c.tempBlocks + 8;
2837 2837
#endif
2838
		int *QPptr= isColor ? &QPs[(y>>3)*QPStride] :&QPs[(y>>4)*QPStride];
2839
		int *nonBQPptr= isColor ? &c.nonBQPTable[(y>>3)*mbWidth] :&c.nonBQPTable[(y>>4)*mbWidth];
2838
		int8_t *QPptr= isColor ? &QPs[(y>>3)*QPStride] :&QPs[(y>>4)*QPStride];
2839
		int8_t *nonBQPptr= isColor ? &c.nonBQPTable[(y>>3)*mbWidth] :&c.nonBQPTable[(y>>4)*mbWidth];
2840 2840
		int QP=0;
2841 2841
		/* can we mess with a 8x16 block from srcBlock/dstBlock downwards and 1 line upwards
2842 2842
		   if not than use a temporary buffer */

Also available in: Unified diff