Mercurial > libavcodec.hg
changeset 12220:0f635b1f7861 libavcodec
Avoid useless fill_rectangle in P-frames in VP8
In VP8, i4x4 only uses contexts based on neighbors in I-frames.
author | darkshikari |
---|---|
date | Thu, 22 Jul 2010 06:39:54 +0000 |
parents | 274633916f8c |
children | 45852dac8338 |
files | vp8.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vp8.c Thu Jul 22 06:29:26 2010 +0000 +++ b/vp8.c Thu Jul 22 06:39:54 2010 +0000 @@ -752,10 +752,8 @@ // intra MB, 16.1 mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_inter, s->prob->pred16x16); - if (mb->mode == MODE_I4x4) { + if (mb->mode == MODE_I4x4) decode_intra4x4_modes(c, intra4x4, s->b4_stride, 0); - } else - fill_rectangle(intra4x4, 4, 4, s->b4_stride, vp8_pred4x4_mode[mb->mode], 1); s->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, s->prob->pred8x8c); mb->ref_frame = VP56_FRAME_CURRENT;