mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-03 16:51:18 +00:00
vaapi: Update idct_permutation location after dsputil/idctdsp split
This commit is contained in:
parent
20f95f21f9
commit
d0449e7545
@ -90,7 +90,7 @@ static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_
|
|||||||
iq_matrix->load_chroma_non_intra_quantiser_matrix = 1;
|
iq_matrix->load_chroma_non_intra_quantiser_matrix = 1;
|
||||||
|
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
int n = s->dsp.idct_permutation[ff_zigzag_direct[i]];
|
int n = s->idsp.idct_permutation[ff_zigzag_direct[i]];
|
||||||
iq_matrix->intra_quantiser_matrix[i] = s->intra_matrix[n];
|
iq_matrix->intra_quantiser_matrix[i] = s->intra_matrix[n];
|
||||||
iq_matrix->non_intra_quantiser_matrix[i] = s->inter_matrix[n];
|
iq_matrix->non_intra_quantiser_matrix[i] = s->inter_matrix[n];
|
||||||
iq_matrix->chroma_intra_quantiser_matrix[i] = s->chroma_intra_matrix[n];
|
iq_matrix->chroma_intra_quantiser_matrix[i] = s->chroma_intra_matrix[n];
|
||||||
|
@ -109,7 +109,7 @@ static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_
|
|||||||
iq_matrix->load_non_intra_quant_mat = 1;
|
iq_matrix->load_non_intra_quant_mat = 1;
|
||||||
|
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
int n = s->dsp.idct_permutation[ff_zigzag_direct[i]];
|
int n = s->idsp.idct_permutation[ff_zigzag_direct[i]];
|
||||||
iq_matrix->intra_quant_mat[i] = s->intra_matrix[n];
|
iq_matrix->intra_quant_mat[i] = s->intra_matrix[n];
|
||||||
iq_matrix->non_intra_quant_mat[i] = s->inter_matrix[n];
|
iq_matrix->non_intra_quant_mat[i] = s->inter_matrix[n];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user