[FFmpeg-devel] [PATCH 1/2] jpeg2000dec: parse CDEF

Paul B Mahol onemda at gmail.com
Sat Jul 13 00:10:10 CEST 2013


On 7/12/13, Nicolas BERTRAND <nicoinattendu at gmail.com> wrote:
> Le 12/07/2013 23:47, Paul B Mahol a ecrit :
>> On 7/12/13, Nicolas BERTRAND <nicoinattendu at gmail.com> wrote:
>>>
>>> I'm not sure the parse of CDEF is in the right place. as it is defined
>>> in the JPEG2000 file format syntax. It will probably best fit with a JP2
>>> container in avformat?
>>
>> Does jp2 may have more than single jpeg2000 image, if not, such
>> separation
>> is pointless.
> JP2 can be a file format including a Jpeg2000 codestream. Like jp2 files
> Or have only a peg2000 codestream ( like jpeg2000 for Dcinema or MJPEG2000)
> This why i differentiate both. And in file format there are a lot of
> color-space related stuff.

well you are telling that jp2 have only single image. Thus having own
demuxer for it is suboptimal.

>
>
>>
>> If this is moved into jp2 demuxer, than you can not use jp2 files with
>> img2 demuxer
>
>> and also you need to use pix_fmt set from demuxer.
> Theoretically It should be the case: the codec should be pix_fmt agnostic

But its currently not. So any hypothetical jp2 demuxer out of lavf can
not use such decoder.

>
>>
>>> As there are a lot of other parameters for JPEG2000 file format. who is
>>> not directly part of codec
>>>
>>> cf . ISO/IEC 15444-1:2002 Annex I
>>>
>>>
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list