diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-03-03 21:10:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-03-03 21:10:08 +0000 |
commit | 3d9137c8830bce3521a2249c02e2f96aefd7742c (patch) | |
tree | 0206aced22820499d7aaf2cea15a96aa1b42e888 /libavcodec/h264_refs.c | |
parent | b9b8ed2a0294e00a5415232912c08cf92d5387f4 (diff) | |
download | ffmpeg-3d9137c8830bce3521a2249c02e2f96aefd7742c.tar.gz |
Reorder indexes in weight tables.
5 cpu cycles faster.
Originally committed as revision 22183 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 8549b5bdbd..7702aadac7 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -315,11 +315,11 @@ void ff_h264_fill_mbaff_ref_list(H264Context *h){ field[1].reference = PICT_BOTTOM_FIELD; field[1].poc= field[1].field_poc[1]; - h->luma_weight[list][16+2*i][0] = h->luma_weight[list][16+2*i+1][0] = h->luma_weight[list][i][0]; - h->luma_weight[list][16+2*i][1] = h->luma_weight[list][16+2*i+1][1] = h->luma_weight[list][i][1]; + h->luma_weight[16+2*i][list][0] = h->luma_weight[16+2*i+1][list][0] = h->luma_weight[i][list][0]; + h->luma_weight[16+2*i][list][1] = h->luma_weight[16+2*i+1][list][1] = h->luma_weight[i][list][1]; for(j=0; j<2; j++){ - 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]; - 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]; + 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]; + 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]; } } } |