mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: Give IDCT matrix transpose macro a more descriptive name Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5c634cbeb7
@ -2975,18 +2975,18 @@ static void init_scan_tables(H264Context *h)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 16; i++) {
|
||||
#define T(x) (x >> 2) | ((x << 2) & 0xF)
|
||||
h->zigzag_scan[i] = T(zigzag_scan[i]);
|
||||
h->field_scan[i] = T(field_scan[i]);
|
||||
#undef T
|
||||
#define TRANSPOSE(x) (x >> 2) | ((x << 2) & 0xF)
|
||||
h->zigzag_scan[i] = TRANSPOSE(zigzag_scan[i]);
|
||||
h->field_scan[i] = TRANSPOSE(field_scan[i]);
|
||||
#undef TRANSPOSE
|
||||
}
|
||||
for (i = 0; i < 64; i++) {
|
||||
#define T(x) (x >> 3) | ((x & 7) << 3)
|
||||
h->zigzag_scan8x8[i] = T(ff_zigzag_direct[i]);
|
||||
h->zigzag_scan8x8_cavlc[i] = T(zigzag_scan8x8_cavlc[i]);
|
||||
h->field_scan8x8[i] = T(field_scan8x8[i]);
|
||||
h->field_scan8x8_cavlc[i] = T(field_scan8x8_cavlc[i]);
|
||||
#undef T
|
||||
#define TRANSPOSE(x) (x >> 3) | ((x & 7) << 3)
|
||||
h->zigzag_scan8x8[i] = TRANSPOSE(ff_zigzag_direct[i]);
|
||||
h->zigzag_scan8x8_cavlc[i] = TRANSPOSE(zigzag_scan8x8_cavlc[i]);
|
||||
h->field_scan8x8[i] = TRANSPOSE(field_scan8x8[i]);
|
||||
h->field_scan8x8_cavlc[i] = TRANSPOSE(field_scan8x8_cavlc[i]);
|
||||
#undef TRANSPOSE
|
||||
}
|
||||
if (h->sps.transform_bypass) { // FIXME same ugly
|
||||
memcpy(h->zigzag_scan_q0 , zigzag_scan , sizeof(h->zigzag_scan_q0 ));
|
||||
|
@ -1705,10 +1705,10 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx)
|
||||
ff_vp3dsp_init(&s->vp3dsp, avctx->flags);
|
||||
|
||||
for (i = 0; i < 64; i++) {
|
||||
#define T(x) (x >> 3) | ((x & 7) << 3)
|
||||
s->idct_permutation[i] = T(i);
|
||||
s->idct_scantable[i] = T(ff_zigzag_direct[i]);
|
||||
#undef T
|
||||
#define TRANSPOSE(x) (x >> 3) | ((x & 7) << 3)
|
||||
s->idct_permutation[i] = TRANSPOSE(i);
|
||||
s->idct_scantable[i] = TRANSPOSE(ff_zigzag_direct[i]);
|
||||
#undef TRANSPOSE
|
||||
}
|
||||
|
||||
/* initialize to an impossible value which will force a recalculation
|
||||
|
@ -700,9 +700,9 @@ av_cold int ff_vp56_init_context(AVCodecContext *avctx, VP56Context *s,
|
||||
ff_vp3dsp_init(&s->vp3dsp, avctx->flags);
|
||||
ff_vp56dsp_init(&s->vp56dsp, avctx->codec->id);
|
||||
for (i = 0; i < 64; i++) {
|
||||
#define T(x) (x >> 3) | ((x & 7) << 3)
|
||||
s->idct_scantable[i] = T(ff_zigzag_direct[i]);
|
||||
#undef T
|
||||
#define TRANSPOSE(x) (x >> 3) | ((x & 7) << 3)
|
||||
s->idct_scantable[i] = TRANSPOSE(ff_zigzag_direct[i]);
|
||||
#undef TRANSPOSE
|
||||
}
|
||||
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user