This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c511a7fcf7c0ac799eac0204a674780696872df3 Author: Martin Mirchev <[email protected]> AuthorDate: Wed Oct 21 18:26:38 2026 +0800 Commit: michaelni <[email protected]> CommitDate: Tue Nov 3 12:58:10 2026 +0000 fate/image: add a test for 16-bit JPEG-LS with line interleaving Encode a 16-bit gray image with the jpegls encoder, set the ILV byte of the SOS header to 1 and check that it decodes to the source picture. Signed-off-by: Martin Mirchev <[email protected]> --- tests/fate/image.mak | 15 +++++++++++++++ tests/ref/fate/{dds-dx10-bc2 => jpegls-ilv1-16bit} | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/fate/image.mak b/tests/fate/image.mak index a42d19861a..a1e59eda64 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -394,6 +394,21 @@ FATE_JPEGLS-$(call DEMDEC, IMAGE2, JPEGLS) += $(FATE_JPEGLS) FATE_IMAGE_FRAMECRC += $(FATE_JPEGLS-yes) fate-jpegls: $(FATE_JPEGLS-yes) +# Exercise tolerance of a nonconforming single-component scan with ILV=1: +# decode its ILV=0 payload using the correct sample width. +# Encode a 16-bit gray image and set the ILV byte of the SOS header (offset 23) +# to 1; the output must match the source. +JPEGLS_ILV1_GEN = $(FFMPEG) -nostdin -v error -f lavfi -i testsrc2=s=64x64,format=gray16le \ + -frames:v 1 -c:v jpegls -flags +bitexact -fflags +bitexact -f image2 -y +JPEGLS_ILV1_DEC = $(FFMPEG) -nostdin -v error -flags +bitexact -fflags +bitexact \ + -pix_fmt gray16le -vf scale -f framecrc - -i +FATE_JPEGLS_ILV1-$(call ENCDEC, JPEGLS, IMAGE2, LAVFI_INDEV TESTSRC2_FILTER FORMAT_FILTER \ + WRAPPED_AVFRAME_DECODER RAWVIDEO_ENCODER SCALE_FILTER \ + FRAMECRC_MUXER PIPE_PROTOCOL) += fate-jpegls-ilv1-16bit +fate-jpegls-ilv1-16bit: CMD = run_with_patched_temp "$(JPEGLS_ILV1_GEN)" "$(JPEGLS_ILV1_DEC)" jls 23 "\\0001" +FATE_FFMPEG += $(FATE_JPEGLS_ILV1-yes) +fate-jpegls: $(FATE_JPEGLS_ILV1-yes) + FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24 diff --git a/tests/ref/fate/dds-dx10-bc2 b/tests/ref/fate/jpegls-ilv1-16bit similarity index 60% copy from tests/ref/fate/dds-dx10-bc2 copy to tests/ref/fate/jpegls-ilv1-16bit index 5c31b38a6b..ca238f13f3 100644 --- a/tests/ref/fate/dds-dx10-bc2 +++ b/tests/ref/fate/jpegls-ilv1-16bit @@ -3,4 +3,4 @@ #codec_id 0: rawvideo #dimensions 0: 64x64 #sar 0: 0/1 -0, 0, 0, 1, 16384, 0x2bce3baa +0, 0, 0, 1, 8192, 0xb5879ab5 -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
