History

avcodec/proresdec: Reuse permutation

The ProresDSPContext already contains the idct_permutation.

Andreas Rheinhardt committed 1 year ago

Commit deee2fb1 parent e7ca57d1 file · +4 −6Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/proresdec.c+4−6
@@ -133,7 +133,6 @@ static void unpack_alpha_12(GetBitContext *gb, uint16_t *dst, int num_coeffs, · 132 unmodified lines
133133 static av_cold int decode_init(AVCodecContext *avctx)
134134 {
135135 ProresContext *ctx = avctx->priv_data;
136− uint8_t idct_permutation[64];
137136
138137 avctx->bits_per_raw_sample = 10;
139138
@@ -173,11 +172,10 @@ static av_cold int decode_init(AVCodecContext *avctx) · 33 unmodified lines
173172 ff_blockdsp_init(&ctx->bdsp);
174173 ff_proresdsp_init(&ctx->prodsp, avctx->bits_per_raw_sample);
175174
176− ff_init_scantable_permutation(idct_permutation,
177− ctx->prodsp.idct_permutation_type);
178−
179− ff_permute_scantable(ctx->progressive_scan, ff_prores_progressive_scan, idct_permutation);
180− ff_permute_scantable(ctx->interlaced_scan, ff_prores_interlaced_scan, idct_permutation);
175+ ff_permute_scantable(ctx->progressive_scan, ff_prores_progressive_scan,
176+ ctx->prodsp.idct_permutation);
177+ ff_permute_scantable(ctx->interlaced_scan, ff_prores_interlaced_scan,
178+ ctx->prodsp.idct_permutation);
181179
182180 ctx->pix_fmt = AV_PIX_FMT_NONE;
183181

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t