comparison postproc/swscale_internal.h @ 9499:bc5b87370cd1

cleanup
author michael
date Mon, 24 Feb 2003 00:12:30 +0000
parents 543ab3909b78
children 5025150738eb
comparison
equal deleted inserted replaced
9498:7e282f362dbe 9499:bc5b87370cd1
24 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, 24 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY,
25 int srcSliceH, uint8_t* dst[], int dstStride[]); 25 int srcSliceH, uint8_t* dst[], int dstStride[]);
26 26
27 /* this struct should be aligned on at least 32-byte boundary */ 27 /* this struct should be aligned on at least 32-byte boundary */
28 typedef struct SwsContext{ 28 typedef struct SwsContext{
29 /**
30 *
31 * Note the src,dst,srcStride,dstStride will be copied, in the sws_scale() warper so they can freely be modified here
32 */
29 SwsFunc swScale; 33 SwsFunc swScale;
30 int srcW, srcH, dstH; 34 int srcW, srcH, dstH;
31 int chrSrcW, chrSrcH, chrDstW, chrDstH; 35 int chrSrcW, chrSrcH, chrDstW, chrDstH;
32 int lumXInc, chrXInc; 36 int lumXInc, chrXInc;
33 int lumYInc, chrYInc; 37 int lumYInc, chrYInc;
117 int dstW; 121 int dstW;
118 int esp; 122 int esp;
119 } SwsContext; 123 } SwsContext;
120 //FIXME check init (where 0) 124 //FIXME check init (where 0)
121 125
122 inline void sws_orderYUV(int format, uint8_t * sortedP[], int sortedStride[], uint8_t * p[], int stride[]);
123 SwsFunc yuv2rgb_get_func_ptr (SwsContext *c); 126 SwsFunc yuv2rgb_get_func_ptr (SwsContext *c);
124 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation); 127 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation);
125 128
126 #endif 129 #endif