[FFmpeg-devel] [PATCH 1/2] acvodec/lipopenjpeg: Fix pixel value shift for 12-bit pixel formats

Vilius Grigaliūnas vilius.grigaliunas at gmail.com
Tue Mar 3 09:49:04 CET 2015


On Tue, Mar 3, 2015 at 10:19 AM, Vilius Grigaliūnas
<vilius.grigaliunas at gmail.com> wrote:
> This fixes pixel values not being properly shifted in
> libopenjpeg_copyto16 and libopenjpeg_copy_to_packed16 methods.
>
> Pixel formats like xyz12le need to be shifted by AVComponentDescriptor::shift
> to get the correct values.

The first patches had broken formatting, these last two are the good ones.

As far as I have tested, this resolves all issues with XYZ color
support in libopenjpeg decoder. RGB images should work as they did
before without any regressions.


More information about the ffmpeg-devel mailing list