Mercurial > mplayer.hg
comparison libswscale/swscale_internal.h @ 28976:602c77c53923
Add alpha channel scaling
author | sdrik |
---|---|
date | Fri, 20 Mar 2009 14:15:14 +0000 |
parents | 1e56ea9937ce |
children | f8db50af4035 |
comparison
equal
deleted
inserted
replaced
28975:bab0430f2e59 | 28976:602c77c53923 |
---|---|
85 uint32_t pal_yuv[256]; | 85 uint32_t pal_yuv[256]; |
86 uint32_t pal_rgb[256]; | 86 uint32_t pal_rgb[256]; |
87 | 87 |
88 int16_t **lumPixBuf; | 88 int16_t **lumPixBuf; |
89 int16_t **chrPixBuf; | 89 int16_t **chrPixBuf; |
90 int16_t **alpPixBuf; | |
90 int16_t *hLumFilter; | 91 int16_t *hLumFilter; |
91 int16_t *hLumFilterPos; | 92 int16_t *hLumFilterPos; |
92 int16_t *hChrFilter; | 93 int16_t *hChrFilter; |
93 int16_t *hChrFilterPos; | 94 int16_t *hChrFilterPos; |
94 int16_t *vLumFilter; | 95 int16_t *vLumFilter; |
154 #define DSTW_OFFSET "11*8+4*4*256*2" //do not change, it is hardcoded in the ASM | 155 #define DSTW_OFFSET "11*8+4*4*256*2" //do not change, it is hardcoded in the ASM |
155 #define ESP_OFFSET "11*8+4*4*256*2+8" | 156 #define ESP_OFFSET "11*8+4*4*256*2+8" |
156 #define VROUNDER_OFFSET "11*8+4*4*256*2+16" | 157 #define VROUNDER_OFFSET "11*8+4*4*256*2+16" |
157 #define U_TEMP "11*8+4*4*256*2+24" | 158 #define U_TEMP "11*8+4*4*256*2+24" |
158 #define V_TEMP "11*8+4*4*256*2+32" | 159 #define V_TEMP "11*8+4*4*256*2+32" |
160 #define Y_TEMP "11*8+4*4*256*2+40" | |
161 #define ALP_MMX_FILTER_OFFSET "11*8+4*4*256*2+48" | |
159 | 162 |
160 uint64_t redDither __attribute__((aligned(8))); | 163 uint64_t redDither __attribute__((aligned(8))); |
161 uint64_t greenDither __attribute__((aligned(8))); | 164 uint64_t greenDither __attribute__((aligned(8))); |
162 uint64_t blueDither __attribute__((aligned(8))); | 165 uint64_t blueDither __attribute__((aligned(8))); |
163 | 166 |
174 int dstW; | 177 int dstW; |
175 uint64_t esp __attribute__((aligned(8))); | 178 uint64_t esp __attribute__((aligned(8))); |
176 uint64_t vRounder __attribute__((aligned(8))); | 179 uint64_t vRounder __attribute__((aligned(8))); |
177 uint64_t u_temp __attribute__((aligned(8))); | 180 uint64_t u_temp __attribute__((aligned(8))); |
178 uint64_t v_temp __attribute__((aligned(8))); | 181 uint64_t v_temp __attribute__((aligned(8))); |
182 uint64_t y_temp __attribute__((aligned(8))); | |
183 int32_t alpMmxFilter[4*MAX_FILTER_SIZE]; | |
179 | 184 |
180 #if HAVE_ALTIVEC | 185 #if HAVE_ALTIVEC |
181 | 186 |
182 vector signed short CY; | 187 vector signed short CY; |
183 vector signed short CRV; | 188 vector signed short CRV; |