[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket
Anton Khirnov
anton at khirnov.net
Fri Feb 16 12:32:17 EET 2024
Quoting Tomas Härdin (2024-02-03 20:58:20)
> I think people with knowledge how interlacing is handled in other
> formats and codecs might want to chime in.
For MPEG codecs our decoders always output (properly signalled)
interlaced content as two interleaved fields in a single AVFrame flagged
with AV_FRAME_FLAG_INTERLACED. Its height is the height of the whole
frame, so double the number of lines in each field.
So IIUC this patch is taking the correct approach.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list