[FFmpeg-devel] [PATCH 1/2] avcodec: support setting the chroma intra matrix

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Feb 10 19:44:54 CET 2014


Michael Niedermayer <michaelni <at> gmx.at> writes:

> +     * custom intra quantization matrix
> +     * Code outside libavcodec should access this 
> field using av_codec_g/set_chroma_intra_matrix()
> +     * - encoding: Set by user, can be NULL.

> +     * - decoding: Set by libavcodec.

Is it set by libavcodec?

> +        if (s->avctx->chroma_intra_matrix)
> +            chroma_matrix = s->avctx->chroma_intra_matrix;
>          if (s->avctx->intra_matrix) {
> -            chroma_matrix =
>              luma_matrix = s->avctx->intra_matrix;

Sorry if I misunderstand:
So far, if the user had set intra_matrix, it was used 
for both luma and chroma (correct?): Does the patch 
change this behaviour?

Carl Eugen



More information about the ffmpeg-devel mailing list