[FFmpeg-devel] [PATCH] libopenjpeg wrapper for jpeg2k decoding

Jai Menon jmenon86
Thu Jan 29 06:57:24 CET 2009


On Thu, Jan 29, 2009 at 5:20 AM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Wed, Jan 28, 2009 at 11:32 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> On Wed, Jan 28, 2009 at 11:24:47AM +0530, Jai Menon wrote:
>>> Hi,
>> [...]
>>> After this is accepted, I wanted to send a patch for correct decoding
>>> of jp2 frames in r3d files.
>>> Those frames use 4 components but are interpreted as Y1, Cb, Cr, Y2
>>> instead rgba. So till this
>>> modification is done, r3d files will appear weird :-)
>>> How would you like it done? Do you prefer a new codec id or can I just
>>> differentiate between the two
>>> using the codec_tag field?
>> I like neither, isnt there something in the bitstream that identifies what
>> the components are?
> If those are JP2, then yes there is color space information (unless OP
> meant J2K stream only, no JP2 header)

i agree that jp2 files store colorspace information but I haven't seen
any r3d files where the colorspace
isn't set to sRGB.



More information about the ffmpeg-devel mailing list