[FFmpeg-devel] [PATCH] avcodec/libx265: make X265 CSP selection pixel format independent

Jan Ekström jeebjp at gmail.com
Mon Jun 27 09:41:12 EEST 2022


On Sun, Jun 19, 2022 at 8:48 PM Jan Ekström <jeebjp at gmail.com> wrote:
>
> Currently the format listing misses the J formats completely, yet
> they are marked as supported in the encoder. Thus to make the logic
> support them while not explicitly listing them, make the logic
> utilize chroma subsampling information in both width and height
> available through the pixel format descriptor.
> ---
>  libavcodec/libx265.c | 61 ++++++++++++++++++++++----------------------
>  1 file changed, 31 insertions(+), 30 deletions(-)
>

Applied as 49027e7612ac3f349f5fa8b6d8cc0c6a4036d05c (which includes
the following adjustment):
-        // set RGB identity matrix for RGB
+        // set identity matrix for RGB

This was after I received positive comments on IRC regarding the patch.

Jan


More information about the ffmpeg-devel mailing list