[FFmpeg-cvslog] fate/exr : add test for negative float value

Martin Vignali git at videolan.org
Mon May 1 12:44:40 EEST 2017


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sun Apr 23 17:49:05 2017 +0200| [89812e423de61ea77ea6deae8c8ed4c4a4413646] | committer: Michael Niedermayer

fate/exr : add test for negative float value

the tested sample contain negative value in the red channel
need to be clip to zero, and not set to MAX_RED

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89812e423de61ea77ea6deae8c8ed4c4a4413646
---

 tests/fate/image.mak                              | 3 +++
 tests/ref/fate/exr-rgb-scanline-none-negative-red | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 4a2cb81629..17bb0cc2e5 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -268,6 +268,9 @@ fate-exr-rgb-scanline-half-piz-dw-t01: CMD = framecrc -i $(TARGET_SAMPLES)/exr/r
 FATE_EXR += fate-exr-rgb-scanline-float-piz-48x32
 fate-exr-rgb-scanline-float-piz-48x32: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_float_piz_48x32.exr -pix_fmt rgb48le
 
+FATE_EXR += fate-exr-rgb-scanline-none-negative-red
+fate-exr-rgb-scanline-none-negative-red: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_none_negative_red.exr -pix_fmt rgb48le
+
 FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
 
 FATE_IMAGE += $(FATE_EXR-yes)
diff --git a/tests/ref/fate/exr-rgb-scanline-none-negative-red b/tests/ref/fate/exr-rgb-scanline-none-negative-red
new file mode 100644
index 0000000000..8c399b2f5e
--- /dev/null
+++ b/tests/ref/fate/exr-rgb-scanline-none-negative-red
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 4x4
+#sar 0: 1/1
+0,          0,          0,        1,       96, 0x27bc131b



More information about the ffmpeg-cvslog mailing list