Browse Source

fix intra prediction modes with inter-MB neighbors,

the old sample clips are in violation of the 2006 spec

Originally committed as revision 21883 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefan Gehrer 16 years ago
parent
commit
3cc3581dc0
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      libavcodec/cavs.h

+ 7
- 2
libavcodec/cavs.h View File

@@ -248,8 +248,13 @@ static inline void modify_pred(const int_fast8_t *mod_table, int *mode) {
}

static inline void set_intra_mode_default(AVSContext *h) {
h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP;
h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP;
if(h->stream_revision > 0) {
h->pred_mode_Y[3] = h->pred_mode_Y[6] = NOT_AVAIL;
h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = NOT_AVAIL;
} else {
h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP;
h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP;
}
}

static inline void set_mvs(cavs_vector *mv, enum cavs_block size) {


Loading…
Cancel
Save