mbox series

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

Message ID 20230420165500.49516-1-leo.izen@gmail.com
Headers show
Series RGB mjpeg fixes | expand

Message

Leo Izen April 20, 2023, 4:54 p.m. UTC
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