comparison dxva2_h264.c @ 11347:d48922f77738 libavcodec

Fixed DXVA2 H264 hwaccel compilation.
author fenrir
date Wed, 03 Mar 2010 19:54:12 +0000
parents 3824ef98a6b8
children 4b64693d115d
comparison
equal deleted inserted replaced
11346:a8b76b8455bc 11347:d48922f77738
218 ff_dxva2_get_surface_index(ctx, r), 218 ff_dxva2_get_surface_index(ctx, r),
219 r->reference == PICT_BOTTOM_FIELD); 219 r->reference == PICT_BOTTOM_FIELD);
220 for (plane = 0; plane < 3; plane++) { 220 for (plane = 0; plane < 3; plane++) {
221 int w, o; 221 int w, o;
222 if (plane == 0 && h->luma_weight_flag[list]) { 222 if (plane == 0 && h->luma_weight_flag[list]) {
223 w = h->luma_weight[list][i]; 223 w = h->luma_weight[list][i][0];
224 o = h->luma_offset[list][i]; 224 o = h->luma_weight[list][i][1];
225 } else if (plane >= 1 && h->chroma_weight_flag[list]) { 225 } else if (plane >= 1 && h->chroma_weight_flag[list]) {
226 w = h->chroma_weight[list][i][plane-1]; 226 w = h->chroma_weight[list][i][plane-1][0];
227 o = h->chroma_offset[list][i][plane-1]; 227 o = h->chroma_weight[list][i][plane-1][1];
228 } else { 228 } else {
229 w = 1 << (plane == 0 ? h->luma_log2_weight_denom : 229 w = 1 << (plane == 0 ? h->luma_log2_weight_denom :
230 h->chroma_log2_weight_denom); 230 h->chroma_log2_weight_denom);
231 o = 0; 231 o = 0;
232 } 232 }