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.
---
libavcodec/libopenjpegdec.c |6 [32m[m[31m--[m
1 file
On Tue, Mar 3, 2015 at 1:19 AM, Vilius Grigaliūnas
vilius.grigaliu...@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
Overall, looks good to me. Maybe the + desc-comp[x].shift; part should be
moved inside the FFMIN macro? Seems okay as is, though.
I looked how it is implemented in jpeg200dec.c and there is no FFMIN there.
___
ffmpeg-devel mailing list
On Tue, Mar 03, 2015 at 12:54:43PM -0700, Michael Bradshaw wrote:
On Tue, Mar 3, 2015 at 1:19 AM, Vilius Grigaliūnas
vilius.grigaliu...@gmail.com wrote:
This fixes pixel values not being properly shifted in
libopenjpeg_copyto16 and libopenjpeg_copy_to_packed16 methods.
Pixel formats
On Tue, Mar 3, 2015 at 10:19 AM, Vilius Grigaliūnas
vilius.grigaliu...@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