From patchwork Sun Apr 9 03:07:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 41029 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1336785pzb; Sat, 8 Apr 2023 20:07:44 -0700 (PDT) X-Google-Smtp-Source: AKy350bmeeyd+1V46Tn4yXXuPaH2G/g35WrQTDWjDOd5cGgm8g6PkFmpps6luL8v5n+58cm/hy1+ X-Received: by 2002:aa7:d053:0:b0:501:d43e:d1dd with SMTP id n19-20020aa7d053000000b00501d43ed1ddmr6124177edo.33.1681009664627; Sat, 08 Apr 2023 20:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681009664; cv=none; d=google.com; s=arc-20160816; b=quVtStlixKjF5w7gaEZHg3s6OrFO/3w10xfDZZwfY6EFDQHPpW4akW9CxGu7Vwzeeb dj5Qo06zQk+rw0mLp+upIRMbt1R72pXYuz5rUerIklBwKkpx8ht/Dze61FnK+97ScWSL o5SI/i7VSvdsqh5KWolrzO8nDn6x+R0w5k6Hk8PTOB6Js9ZLDHfCWaFQZpxdQfsT4idm Vp8ZTLe5NL529xZID1mv1ZDb7Pq9neNGLH0Uq2EtYuZmjBe61Z5YGHhVb0dC3mnPSA9f GT4VgPZJZ8FXDi2e2TUbvcV3SdIjIICdi/GD6nFVkPYlwJ+1iPMpvIfLjznrkcj2rWqK zyoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :feedback-id:mime-version:message-id:date:to:from:delivered-to; bh=6kIDPY2Vfiqi2jCqX+7VEJ3ROhjsfgcRZZwgZkq0en8=; b=lvAdg+LPazO4mAYFztbaOPoe97vSTxYbQH3lPaIFdSmLPYkD/NyZ7UD5HLaPskv9J8 3quIrEMyBObEs4XA+BqFj6kf43DPlphm2vPo4dqIXLaP3gD+NPTrQk1O5I0oze26w+6B rlpw3M56C5lt5ejg0IKhWgi75pxrbQYdPzum380NHOAfHn1RXwRz1Zf2558hV2aMcLXU ZWI57gzQecc94kxcC9OlBfSFhWFAmYGPxo7d7DG+nma/52V+BeuUJGPWLpNxgHoKr1or Eg5T+Eyoe4rs7t8SLAjCPdhK+6VniPlc8lI0yWGDMRqzZTlAlF/CITkLeYmqzjGGBUv/ 50dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r16-20020aa7c150000000b005049b97a576si374949edp.526.2023.04.08.20.07.44; Sat, 08 Apr 2023 20:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 719A46802C8; Sun, 9 Apr 2023 06:07:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 138526802C8 for ; Sun, 9 Apr 2023 06:07:32 +0300 (EEST) X-QQ-mid: bizesmtp62t1681009646tjw1j0dw Received: from localhost ( [47.90.47.25]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 09 Apr 2023 11:07:25 +0800 (CST) X-QQ-SSF: 01100000000000Z0Z000B00A0000000 X-QQ-FEAT: TXoNPSSaW4mK9vPFysMtWqDcfq+9mJqmGCR4ctV3K4FedB6SIAuOPLU+GqikI 9nUGzRNL9DoqPMCsJtH1C9nh46z4hL+986cCE1A59hxWC2VQqp4phEupxvzdM41AhrFX9ef +qJS+RBF8ONcfcMmXTq8BW3Znzw1ZML49Tg3PtoI9Kou5J+DNJ55F7ghyxDKM6Y5H7rG2HT HaXDb7hv7vXjRnbC0933GbySzTAncijQUwY0QTXWYIFCF7GQKkq5vplPoEZShsqP0C6LJMb C4G5/O2YWzbdT0QrKwOAgiOXGq0fjAMd06AxRluG5gESo+ZDJ9+BrrNZWh8JJpOWf1Rks8C /SM9ddFosxnHIGpZlKVkClZuK5KXA== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1687078694364966906 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Apr 2023 11:07:21 +0800 Message-Id: <20230409030721.19997-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.10.1.382.ga23ca1b.dirty MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybglogicsvr:qybglogicsvr2 Subject: [FFmpeg-devel] [PATCH] fate/png-icc-parse: update ref data X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: HrU8DQ3drdeB When enable lcms2, the fate-png-icc-parse will get error bellow. TEST png-icc-parse --- src/tests/ref/fate/png-icc-parse 2022-09-09 16:12:35.786357375 +0800 +++ tests/data/fate/png-icc-parse 2023-04-09 11:00:14.256826477 +0800 @@ -16,6 +16,10 @@ pkt_size=40194 width=128 height=128 +crop_top=0 +crop_bottom=0 +crop_left=0 +crop_right=0 pix_fmt=rgb24 sample_aspect_ratio=1:1 pict_type=I @@ -25,7 +29,7 @@ top_field_first=0 repeat_pict=0 color_range=pc -color_space=unknown +color_space=gbr color_primaries=bt709 color_transfer=iec61966-2-1 chroma_location=unspecified @@ -34,15 +38,4 @@ name=Photoshop ICC profile size=3144 [/SIDE_DATA] -[SIDE_DATA] -side_data_type=Mastering display metadata -red_x=63999/100000 -red_y=33001/100000 -green_x=30000/100000 -green_y=60000/100000 -blue_x=15000/100000 -blue_y=5999/100000 -white_point_x=31269/100000 -white_point_y=32899/100000 -[/SIDE_DATA] [/FRAME] Test png-icc-parse failed. Look at tests/data/fate/png-icc-parse.err for details. make: *** [src/tests/Makefile:306:fate-png-icc-parse] error 1 This patch can fix it. Signed-off-by: Steven Liu --- tests/ref/fate/png-icc-parse | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/tests/ref/fate/png-icc-parse b/tests/ref/fate/png-icc-parse index 18bb18a804..ffefce270a 100644 --- a/tests/ref/fate/png-icc-parse +++ b/tests/ref/fate/png-icc-parse @@ -16,6 +16,10 @@ pkt_pos=0 pkt_size=40194 width=128 height=128 +crop_top=0 +crop_bottom=0 +crop_left=0 +crop_right=0 pix_fmt=rgb24 sample_aspect_ratio=1:1 pict_type=I @@ -25,7 +29,7 @@ interlaced_frame=1 top_field_first=0 repeat_pict=0 color_range=pc -color_space=unknown +color_space=gbr color_primaries=bt709 color_transfer=iec61966-2-1 chroma_location=unspecified @@ -34,15 +38,4 @@ side_data_type=ICC profile name=Photoshop ICC profile size=3144 [/SIDE_DATA] -[SIDE_DATA] -side_data_type=Mastering display metadata -red_x=63999/100000 -red_y=33001/100000 -green_x=30000/100000 -green_y=60000/100000 -blue_x=15000/100000 -blue_y=5999/100000 -white_point_x=31269/100000 -white_point_y=32899/100000 -[/SIDE_DATA] [/FRAME]