Re: [FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket

2024-03-03 Thread Jerome Martinez
On 01/03/2024 23:29, Tomas Härdin wrote: sön 2024-02-25 klockan 05:14 +0100 skrev Jerome Martinez: [...] I also needed to add a dedicated AVStream field for saying that the decoder is able to manage this functionality (and is needed there). What is the added value to call the decoder twice from

Re: [FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket

2024-03-01 Thread Tomas Härdin
sön 2024-02-25 klockan 05:14 +0100 skrev Jerome Martinez: > On 24/02/2024 13:26, Tomas Härdin wrote: > > 3a) if the codec is inherently interlaced, call the decoder once > > 3b) if the codec is not inherently interlaced, call the decoder > > twice, > > with appropriate stride, and keep track of the

Re: [FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket

2024-02-24 Thread Jerome Martinez
On 24/02/2024 13:26, Tomas Härdin wrote: [...] It should be possible to have ffmpeg set up the necessary plumbing for this. But is it how it works elsewhere in FFmpeg? Would such complex and deep modifications be accepted by others? Good question. I would propose something like the following: