Commit d98c3ade authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '01582122'

* commit '01582122':
  vp3: Use full transpose for all IDCTs

Conflicts:
	libavcodec/vp3.c
	libavcodec/vp3dsp.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 05bea443 01582122
...@@ -61,6 +61,5 @@ av_cold void ff_vp3dsp_init_bfin(VP3DSPContext *c, int flags) ...@@ -61,6 +61,5 @@ av_cold void ff_vp3dsp_init_bfin(VP3DSPContext *c, int flags)
if (!(flags & CODEC_FLAG_BITEXACT)) { if (!(flags & CODEC_FLAG_BITEXACT)) {
c->idct_add = bfin_vp3_idct_add; c->idct_add = bfin_vp3_idct_add;
c->idct_put = bfin_vp3_idct_put; c->idct_put = bfin_vp3_idct_put;
c->idct_perm = FF_TRANSPOSE_IDCT_PERM;
} }
} }
...@@ -138,7 +138,7 @@ static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int ...@@ -138,7 +138,7 @@ static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int
Hd = Bd + H; Hd = Bd + H;
/* Final sequence of operations over-write original inputs. */ /* Final sequence of operations over-write original inputs. */
if(type==1){ if (type == 1) {
dst[0*stride] = av_clip_uint8((Gd + Cd ) >> 4); dst[0*stride] = av_clip_uint8((Gd + Cd ) >> 4);
dst[7*stride] = av_clip_uint8((Gd - Cd ) >> 4); dst[7*stride] = av_clip_uint8((Gd - Cd ) >> 4);
...@@ -165,7 +165,7 @@ static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int ...@@ -165,7 +165,7 @@ static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int
} }
} else { } else {
if(type==1){ if (type == 1) {
dst[0*stride]= dst[0*stride]=
dst[1*stride]= dst[1*stride]=
dst[2*stride]= dst[2*stride]=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment