1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/proresdec: Reuse permutation

The ProresDSPContext already contains the idct_permutation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-02-24 14:40:00 +01:00
parent e7ca57d857
commit deee2fb52d

View File

@@ -133,7 +133,6 @@ static void unpack_alpha_12(GetBitContext *gb, uint16_t *dst, int num_coeffs,
static av_cold int decode_init(AVCodecContext *avctx) static av_cold int decode_init(AVCodecContext *avctx)
{ {
ProresContext *ctx = avctx->priv_data; ProresContext *ctx = avctx->priv_data;
uint8_t idct_permutation[64];
avctx->bits_per_raw_sample = 10; avctx->bits_per_raw_sample = 10;
@@ -173,11 +172,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
ff_blockdsp_init(&ctx->bdsp); ff_blockdsp_init(&ctx->bdsp);
ff_proresdsp_init(&ctx->prodsp, avctx->bits_per_raw_sample); ff_proresdsp_init(&ctx->prodsp, avctx->bits_per_raw_sample);
ff_init_scantable_permutation(idct_permutation, ff_permute_scantable(ctx->progressive_scan, ff_prores_progressive_scan,
ctx->prodsp.idct_permutation_type); ctx->prodsp.idct_permutation);
ff_permute_scantable(ctx->interlaced_scan, ff_prores_interlaced_scan,
ff_permute_scantable(ctx->progressive_scan, ff_prores_progressive_scan, idct_permutation); ctx->prodsp.idct_permutation);
ff_permute_scantable(ctx->interlaced_scan, ff_prores_interlaced_scan, idct_permutation);
ctx->pix_fmt = AV_PIX_FMT_NONE; ctx->pix_fmt = AV_PIX_FMT_NONE;