Mercurial > libavcodec.hg
comparison h264_refs.c @ 11349:33f8308382f5 libavcodec
Reorder indexes in weight tables.
5 cpu cycles faster.
author | michael |
---|---|
date | Wed, 03 Mar 2010 21:10:08 +0000 |
parents | a82cdda1f507 |
children | 44c5c540722c |
comparison
equal
deleted
inserted
replaced
11348:3c624d573966 | 11349:33f8308382f5 |
---|---|
313 for(j=0; j<3; j++) | 313 for(j=0; j<3; j++) |
314 field[1].data[j] += frame->linesize[j]; | 314 field[1].data[j] += frame->linesize[j]; |
315 field[1].reference = PICT_BOTTOM_FIELD; | 315 field[1].reference = PICT_BOTTOM_FIELD; |
316 field[1].poc= field[1].field_poc[1]; | 316 field[1].poc= field[1].field_poc[1]; |
317 | 317 |
318 h->luma_weight[list][16+2*i][0] = h->luma_weight[list][16+2*i+1][0] = h->luma_weight[list][i][0]; | 318 h->luma_weight[16+2*i][list][0] = h->luma_weight[16+2*i+1][list][0] = h->luma_weight[i][list][0]; |
319 h->luma_weight[list][16+2*i][1] = h->luma_weight[list][16+2*i+1][1] = h->luma_weight[list][i][1]; | 319 h->luma_weight[16+2*i][list][1] = h->luma_weight[16+2*i+1][list][1] = h->luma_weight[i][list][1]; |
320 for(j=0; j<2; j++){ | 320 for(j=0; j<2; j++){ |
321 h->chroma_weight[list][16+2*i][j][0] = h->chroma_weight[list][16+2*i+1][j][0] = h->chroma_weight[list][i][j][0]; | 321 h->chroma_weight[16+2*i][list][j][0] = h->chroma_weight[16+2*i+1][list][j][0] = h->chroma_weight[i][list][j][0]; |
322 h->chroma_weight[list][16+2*i][j][1] = h->chroma_weight[list][16+2*i+1][j][1] = h->chroma_weight[list][i][j][1]; | 322 h->chroma_weight[16+2*i][list][j][1] = h->chroma_weight[16+2*i+1][list][j][1] = h->chroma_weight[i][list][j][1]; |
323 } | 323 } |
324 } | 324 } |
325 } | 325 } |
326 for(j=0; j<h->ref_count[1]; j++){ | 326 for(j=0; j<h->ref_count[1]; j++){ |
327 for(i=0; i<h->ref_count[0]; i++) | 327 for(i=0; i<h->ref_count[0]; i++) |