Mercurial > mplayer.hg
comparison postproc/swscale_internal.h @ 11368:7fb6dbfbc7da
10l (forgot that the dstW offset is hardcoded in the asm)
author | michael |
---|---|
date | Mon, 03 Nov 2003 02:19:57 +0000 |
parents | c552fe6acbaa |
children | d2aef091743c |
comparison
equal
deleted
inserted
replaced
11367:c404cdbb8472 | 11368:7fb6dbfbc7da |
---|---|
107 #define VG_COEFF "6*8" | 107 #define VG_COEFF "6*8" |
108 #define UG_COEFF "7*8" | 108 #define UG_COEFF "7*8" |
109 #define Y_OFFSET "8*8" | 109 #define Y_OFFSET "8*8" |
110 #define U_OFFSET "9*8" | 110 #define U_OFFSET "9*8" |
111 #define V_OFFSET "10*8" | 111 #define V_OFFSET "10*8" |
112 #define VROUNDER_OFFSET "11*8" | 112 #define LUM_MMX_FILTER_OFFSET "11*8" |
113 #define LUM_MMX_FILTER_OFFSET "12*8" | 113 #define CHR_MMX_FILTER_OFFSET "11*8+4*4*256" |
114 #define CHR_MMX_FILTER_OFFSET "12*8+4*4*256" | 114 #define DSTW_OFFSET "11*8+4*4*256*2" //do not change, its hardcoded in the asm |
115 #define DSTW_OFFSET "12*8+4*4*256*2" | 115 #define ESP_OFFSET "11*8+4*4*256*2+4" |
116 #define ESP_OFFSET "12*8+4*4*256*2+4" | 116 #define VROUNDER_OFFSET "11*8+4*4*256*2+8" |
117 | 117 |
118 uint64_t redDither __attribute__((aligned(8))); | 118 uint64_t redDither __attribute__((aligned(8))); |
119 uint64_t greenDither __attribute__((aligned(8))); | 119 uint64_t greenDither __attribute__((aligned(8))); |
120 uint64_t blueDither __attribute__((aligned(8))); | 120 uint64_t blueDither __attribute__((aligned(8))); |
121 | 121 |
125 uint64_t vgCoeff __attribute__((aligned(8))); | 125 uint64_t vgCoeff __attribute__((aligned(8))); |
126 uint64_t ugCoeff __attribute__((aligned(8))); | 126 uint64_t ugCoeff __attribute__((aligned(8))); |
127 uint64_t yOffset __attribute__((aligned(8))); | 127 uint64_t yOffset __attribute__((aligned(8))); |
128 uint64_t uOffset __attribute__((aligned(8))); | 128 uint64_t uOffset __attribute__((aligned(8))); |
129 uint64_t vOffset __attribute__((aligned(8))); | 129 uint64_t vOffset __attribute__((aligned(8))); |
130 uint64_t vRounder __attribute__((aligned(8))); | |
131 int32_t lumMmxFilter[4*MAX_FILTER_SIZE]; | 130 int32_t lumMmxFilter[4*MAX_FILTER_SIZE]; |
132 int32_t chrMmxFilter[4*MAX_FILTER_SIZE]; | 131 int32_t chrMmxFilter[4*MAX_FILTER_SIZE]; |
133 int dstW; | 132 int dstW; |
134 int esp; | 133 int esp; |
134 uint64_t vRounder __attribute__((aligned(8))); | |
135 } SwsContext; | 135 } SwsContext; |
136 //FIXME check init (where 0) | 136 //FIXME check init (where 0) |
137 | 137 |
138 SwsFunc yuv2rgb_get_func_ptr (SwsContext *c); | 138 SwsFunc yuv2rgb_get_func_ptr (SwsContext *c); |
139 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation); | 139 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation); |