diff mbox series

[FFmpeg-devel,6/6] fate/mov: add a test for heic images with cropping and rotation metadata

Message ID 20241001125154.714-2-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] avformat/mov: factorize getting the current item | expand

Checks

Context Check Description
andriy/make_x86 fail Make failed

Commit Message

James Almer Oct. 1, 2024, 12:51 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 tests/fate/mov.mak                           |  6 +++
 tests/ref/fate/mov-heic-demux-clap-irot-imir | 47 ++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 tests/ref/fate/mov-heic-demux-clap-irot-imir
diff mbox series

Patch

diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
index 1200c77560..f498647a0d 100644
--- a/tests/fate/mov.mak
+++ b/tests/fate/mov.mak
@@ -164,6 +164,12 @@  FATE_MOV_FFMPEG_SAMPLES-$(call FRAMECRC, MOV, HEVC, HEVC_PARSER) \
                            += fate-mov-heic-demux-still-image-multiple-items
 fate-mov-heic-demux-still-image-multiple-items: CMD = framecrc -i $(TARGET_SAMPLES)/heif-conformance/C003.heic -c:v copy -map 0
 
+# heic demuxing - still image with multiple items.
+FATE_MOV_FFMPEG_FFPROBE_SAMPLES-$(call FRAMECRC, MOV, HEVC, HEVC_PARSER) \
+                           += fate-mov-heic-demux-clap-irot-imir
+fate-mov-heic-demux-clap-irot-imir: CMD = stream_demux mov $(TARGET_SAMPLES)/heif-conformance/MIAF007.heic "" "-c:v copy -map 0" \
+  "-show_entries stream=index,id:stream_side_data_list"
+
 # heic demuxing - still image with multiple items in a grid.
 FATE_MOV_FFMPEG_FFPROBE_SAMPLES-$(call DEMMUX, MOV, FRAMECRC, HEVC_DECODER HEVC_PARSER) \
                            += fate-mov-heic-demux-still-image-grid
diff --git a/tests/ref/fate/mov-heic-demux-clap-irot-imir b/tests/ref/fate/mov-heic-demux-clap-irot-imir
new file mode 100644
index 0000000000..30439c35fc
--- /dev/null
+++ b/tests/ref/fate/mov-heic-demux-clap-irot-imir
@@ -0,0 +1,47 @@ 
+#extradata 0:      100, 0xee3e15e9
+#extradata 1:       99, 0xdaa315b8
+#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1280x720
+#sar 0: 0/1
+#tb 1: 1/1
+#media_type 1: video
+#codec_id 1: hevc
+#dimensions 1: 128x72
+#sar 1: 0/1
+0,          0,          0,        1,   111554, 0xa0679859
+1,          0,          0,        1,     1667, 0xbe5c3b85
+[STREAM]
+index=0
+id=0x3ea
+[SIDE_DATA]
+side_data_type=Frame Cropping
+crop_top=180
+crop_bottom=180
+crop_left=320
+crop_right=320
+[/SIDE_DATA]
+[SIDE_DATA]
+side_data_type=Display Matrix
+displaymatrix=
+00000000:            0       65536           0
+00000001:        65536           0           0
+00000002:            0           0  1073741824
+
+rotation=-90
+[/SIDE_DATA]
+[/STREAM]
+[STREAM]
+index=1
+id=0x3ed
+[SIDE_DATA]
+side_data_type=Display Matrix
+displaymatrix=
+00000000:            0       65536           0
+00000001:        65536           0           0
+00000002:            0           0  1073741824
+
+rotation=-90
+[/SIDE_DATA]
+[/STREAM]