diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2007-07-07 06:15:05 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2007-07-07 06:15:05 +0000 |
commit | 25c899471decb181b03eaf45ba4b4a1c634c4248 (patch) | |
tree | 3f0d19119c4ee970118853d2a4a5ecb183a232ac /libavcodec/cavs.c | |
parent | e183b6d17cc5730f41f44ccca5c9857e19385f5f (diff) | |
download | ffmpeg-25c899471decb181b03eaf45ba4b4a1c634c4248.tar.gz |
move modification of intra prediction modes into
its own inline function
Originally committed as revision 9514 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavs.c')
-rw-r--r-- | libavcodec/cavs.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index c1b9f49463..e92e869367 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -616,24 +616,7 @@ static int decode_mb_i(AVSContext *h, int cbp_code) { av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); return -1; } - - /* save pred modes before they get modified */ - h->pred_mode_Y[3] = h->pred_mode_Y[5]; - h->pred_mode_Y[6] = h->pred_mode_Y[8]; - h->top_pred_Y[h->mbx*2+0] = h->pred_mode_Y[7]; - h->top_pred_Y[h->mbx*2+1] = h->pred_mode_Y[8]; - - /* modify pred modes according to availability of neighbour samples */ - if(!(h->flags & A_AVAIL)) { - modify_pred(left_modifier_l, &h->pred_mode_Y[4] ); - modify_pred(left_modifier_l, &h->pred_mode_Y[7] ); - modify_pred(left_modifier_c, &pred_mode_uv ); - } - if(!(h->flags & B_AVAIL)) { - modify_pred(top_modifier_l, &h->pred_mode_Y[4] ); - modify_pred(top_modifier_l, &h->pred_mode_Y[5] ); - modify_pred(top_modifier_c, &pred_mode_uv ); - } + modify_mb_i(h, &pred_mode_uv); /* get coded block pattern */ if(h->pic_type == FF_I_TYPE) |