[FFmpeg-devel] [PATCH v3] fate/png: add mDCv and cLLi read and write test
金波
jinbo at loongson.cn
Wed Oct 16 09:55:54 EEST 2024
> -----原始邮件-----
> 发件人: "Leo Izen" <leo.izen at gmail.com>
> 发送时间:2024-07-16 10:23:51 (星期二)
> 收件人: ffmpeg-devel at ffmpeg.org
> 抄送: "Jan Ekström" <jeebjp at gmail.com>, "Andreas Rheinhardt" <andreas.rheinhardt at outlook.com>, "Leo Izen" <leo.izen at gmail.com>
> 主题: [FFmpeg-devel] [PATCH v3] fate/png: add mDCv and cLLi read and write test
>
> This test confirms that we can write mDCv and cLLi chunks and read them
> back via the png decoder. It uses an HEVC conformance sample with this
> metadata as the base source for the side data in the frames.
>
> Signed-off-by: Leo Izen <leo.izen at gmail.com>
> Reported-by: Jan Ekström <jeebjp at gmail.com>
> Reviewed-by: Jan Ekström <jeebjp at gmail.com>
> Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> tests/fate/image.mak | 6 ++++++
> tests/ref/fate/png-mdcv | 22 ++++++++++++++++++++++
> 2 files changed, 28 insertions(+)
> create mode 100644 tests/ref/fate/png-mdcv
>
> diff --git a/tests/fate/image.mak b/tests/fate/image.mak
> index 753936ec20..042cf6438f 100644
> --- a/tests/fate/image.mak
> +++ b/tests/fate/image.mak
> @@ -416,6 +416,12 @@ FATE_PNG_PROBE-$(call ALLYES, LCMS2) += fate-png-icc-parse
> fate-png-icc-parse: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
> -flags2 icc_profiles $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
>
> +FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG HEVC, IMAGE2PIPE HEVC, \
> + IMAGE_PNG_PIPE_DEMUXER HEVC_PARSER PNG_DECODER SCALE_FILTER) += fate-png-mdcv
> +fate-png-mdcv: CMD = transcode hevc $(TARGET_SAMPLES)/hevc/hdr10_plus_h265_sample.hevc image2pipe \
> + "-pix_fmt rgb24 -vf scale -c png" "" \
> + "-show_frames -show_entries frame=side_data_list -of flat"
> +
> FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
> FATE_PNG_PROBE-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG_PROBE)
> FATE_IMAGE_FRAMECRC += $(FATE_PNG-yes)
> diff --git a/tests/ref/fate/png-mdcv b/tests/ref/fate/png-mdcv
> new file mode 100644
> index 0000000000..c524a94ded
> --- /dev/null
> +++ b/tests/ref/fate/png-mdcv
> @@ -0,0 +1,22 @@
> +fc68fe6c8c72343b96d2695f6913995b *tests/data/fate/png-mdcv.image2pipe
> +439248 tests/data/fate/png-mdcv.image2pipe
> +#tb 0: 1/25
> +#media_type 0: video
> +#codec_id 0: rawvideo
> +#dimensions 0: 1280x720
> +#sar 0: 0/1
> +0, 0, 0, 1, 2764800, 0x2bfc7b42
> +frames.frame.0.side_data_list.side_data.0.side_data_type="Content light level metadata"
> +frames.frame.0.side_data_list.side_data.0.max_content=1000
> +frames.frame.0.side_data_list.side_data.0.max_average=200
> +frames.frame.0.side_data_list.side_data.1.side_data_type="Mastering display metadata"
> +frames.frame.0.side_data_list.side_data.1.red_x="13250/50000"
> +frames.frame.0.side_data_list.side_data.1.red_y="7500/50000"
> +frames.frame.0.side_data_list.side_data.1.green_x="34000/50000"
> +frames.frame.0.side_data_list.side_data.1.green_y="16000/50000"
> +frames.frame.0.side_data_list.side_data.1.blue_x="2/50000"
> +frames.frame.0.side_data_list.side_data.1.blue_y="0/50000"
> +frames.frame.0.side_data_list.side_data.1.white_point_x="15635/50000"
> +frames.frame.0.side_data_list.side_data.1.white_point_y="16450/50000"
> +frames.frame.0.side_data_list.side_data.1.min_luminance="50/10000"
> +frames.frame.0.side_data_list.side_data.1.max_luminance="10000000/10000"
> --
> 2.45.2
Hi,all:
fate fails sinc e30bc8a963eab1097bfb985351ca7eaf1f272ba6. I tested on Arm and X86, there existed, too. Or, maybe I missed something else ? I am not knowlegeable enough to fix this. Thx.
//error
+++ tests/data/fate/png-mdcv 2024-10-16 14:35:19.264696951 +0800
@@ -1,5 +1,5 @@
-4001769a41d37d567c4cc0c532e20b54 *tests/data/fate/png-mdcv.image2pipe
-2774225 tests/data/fate/png-mdcv.image2pipe
+b674209fd9cd8eff945a6bc1a4b306d3 *tests/data/fate/png-mdcv.image2pipe
+2774240 tests/data/fate/png-mdcv.image2pipe
#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
Test png-mdcv failed. Look at tests/data/fate/png-mdcv.err for details.
本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.
More information about the ffmpeg-devel
mailing list