[FFmpeg-devel] [PATCH v4 0/2] RGB mjpeg fixes

Leo Izen leo.izen at gmail.com
Thu Apr 20 19:54:58 EEST 2023


Changes from v3:
- Wrapped two previous commits into one.
- Removed case logic with regard to s->progressive and !s->progressive, now all
  should be treated the same way, at michaelni's recommendation.
- All RGB jpegs are now decoded in RGB order and then the buffers are pivoted into
  GBR-order at the end, so no extensive documentation is needed on which buffers are in
  which order at what times with what pixel formats.

Current version passes samples in the provided fate tests as well as those in #10190,
 and #4045, #1651, and #850.

Leo Izen (2):
  avcodec/mjpegdec: fix remaining RGB JPEGs
  fate: add tests for RGB jpegs

 libavcodec/mjpegdec.c              | 9 +++------
 tests/fate/image.mak               | 9 +++++++++
 tests/ref/fate/jpg-rgb-221         | 6 ++++++
 tests/ref/fate/jpg-rgb-baseline    | 6 ++++++
 tests/ref/fate/jpg-rgb-progressive | 6 ++++++
 5 files changed, 30 insertions(+), 6 deletions(-)
 create mode 100644 tests/ref/fate/jpg-rgb-221
 create mode 100644 tests/ref/fate/jpg-rgb-baseline
 create mode 100644 tests/ref/fate/jpg-rgb-progressive

-- 
2.40.0



More information about the ffmpeg-devel mailing list