[FFmpeg-devel] Add support for LJ92 compressed MLV files, attempt 02

Tomas Härdin git at haerdin.se
Tue Oct 29 17:25:02 EET 2024


tor 2024-10-24 klockan 18:59 +0100 skrev South East:
> ffmpeg has existing support for MLV raw video files;
> libavformat/mlvdec.c.
> Since this was added, MLV has been extended to support LJ92
> compressed
> image data.  These patches build on lossless DNG support in 7.2-dev
> to
> enable handling LJ92 MLV via existing libavcodec/mjpegdec.c code.
> 
> Sample LJ92 MLV file:
> https://0x0.st/XlFm.mlv

Looks reasonably small to fit in FATE

> -#define MLV_CLASS_FLAG_DELTA 0x40
>  #define MLV_CLASS_FLAG_LZMA  0x80
> +#define MLV_CLASS_FLAG_DELTA 0x40
> +#define MLV_CLASS_FLAG_LJ92  0x20

This hunk could be simpler if you didn't move MLV_CLASS_FLAG_DELTA

Not sure how Bayer in JPEG works so can't really comment more on patch
1.

Patch 2 looks simple enough.

/Tomas



More information about the ffmpeg-devel mailing list