From patchwork Thu Nov 17 20:35:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Vignali X-Patchwork-Id: 1460 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.90.1 with SMTP id o1csp987980vsb; Thu, 17 Nov 2016 12:40:55 -0800 (PST) X-Received: by 10.28.88.18 with SMTP id m18mr6034818wmb.26.1479415255267; Thu, 17 Nov 2016 12:40:55 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p123si12851995wmg.154.2016.11.17.12.40.54; Thu, 17 Nov 2016 12:40:55 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CD457689FBA; Thu, 17 Nov 2016 22:40:51 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 80F8B689C1D for ; Thu, 17 Nov 2016 22:40:44 +0200 (EET) Received: by mail-oi0-f41.google.com with SMTP id z62so66911707oiz.1 for ; Thu, 17 Nov 2016 12:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=cpkTEA/UZEwxOd0Y4EPfBDn8mDp2eIGuECR+xHkeR4U=; b=XF49xzL2JIv/EsJJCaG3+z66rk+v6gm5++qux8nfSuNZmT6P9suCeVAclapKPnk9xN 7fFjW3RcsL1TUJuowPP8LHNigMxY9ANyZWSxlxQCBT3aYyprfzAU+F7tsJI25Iu4TGeR il7+81I3E7QCu/TRN8yVSmTfyJvAXBUY5sVgKrB5OwKr7YIkGrtNbSbfuFUWTS1vgJ8o kDyKEo63djYHf86ulEAulciTwi+/vcb7ZzFhpWUQxm28nYfbvjvYs8gwhIFy53+ObSZA 1XakD3flJogu+wbqyzU9dMooJJ3z6GxAaGwzUzBSN6f/9ePknT03PicuNUFj9GH5amqV Kr3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cpkTEA/UZEwxOd0Y4EPfBDn8mDp2eIGuECR+xHkeR4U=; b=gCOr4PZVLUQeWKBAMtpdwMeGDpiowq+scubmBvqJ2l49ORnm2pPIPbyQPVFHh2WGBa xvtlefmNFggpGiXA+NfsZiNq5ctu6L1Fy3In4t6CdQJ4i7c38SkjsAxNqxK+BKaIDAMy OWHdKnmB6Uuc6FaG1CdDwIudlwk2HNYhWCWQ/FGQRtbR0s9rjOqpPRoYXm64xLGf/hY1 BqOL7WI++GWeoabaZz40PRQ8i5XrdRZDRoc4rrpbloiW6XVJfs/f7z3mMgnscwjffxmO /dFNZ3dZsYmQ2plQtAR0ke/m2bgjz7xUYjxR6iDSXHs94IQ0d6J2BFdz7MyfLwdb6njT EFzg== X-Gm-Message-State: ABUngvfrNCCEQrqlUGZrAoeGCLWafYWNoObjXta173odg36yGFb1s3gRYIhmj783hecGuhSycBaISgnJtIIsOg== X-Received: by 10.157.2.72 with SMTP id 66mr2395537otb.118.1479414903825; Thu, 17 Nov 2016 12:35:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.196.141 with HTTP; Thu, 17 Nov 2016 12:35:03 -0800 (PST) From: Martin Vignali Date: Thu, 17 Nov 2016 21:35:03 +0100 Message-ID: To: FFmpeg development discussions and patches , Andreas Cadhalpun X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] Fate/exr : add test for PXR24 with half and uint32 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hello, in attach a patch to add a fate test for pxr24 with half and uint32 layer Need to be apply after the patch in discussion : libavcodec/exr : add support for uint32 channel decoding with pxr24 Relative to discussions about the crash with half/uint32 exr file exr: limit expected_len to tmp buffer size libavcodec/exr : Fix channel size calc Sample can be found here and need to be put inside ./fate-suite/exr https://we.tl/ULGDVxQXGy Martin From 50d523d579cd8303aaab3bd7105b28359d81d13f Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Thu, 17 Nov 2016 21:25:19 +0100 Subject: [PATCH 3/3] fate/exr : add test for prx24 with half and uint32 channel --- tests/fate/image.mak | 3 +++ tests/ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 diff --git a/tests/fate/image.mak b/tests/fate/image.mak index c19312a..1671131 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -220,6 +220,9 @@ fate-exr-rgb-scanline-pxr24-float-half-l1: CMD = framecrc -i $(TARGET_SAMPLES)/e FATE_EXR += fate-exr-rgb-scanline-pxr24-float-half-l2 fate-exr-rgb-scanline-pxr24-float-half-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_float_half.exr -pix_fmt rgba64le +FATE_EXR += fate-exr-rgb-scanline-pxr24-half-uint32-13x9 +fate-exr-rgb-scanline-pxr24-half-uint32-13x9: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_half_uint32_13x9.exr -pix_fmt rgba64le + FATE_EXR += fate-exr-rgb-scanline-zip-half-float-l1 fate-exr-rgb-scanline-zip-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip_half_float.exr -pix_fmt rgb48le diff --git a/tests/ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 b/tests/ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 new file mode 100644 index 0000000..4a54c33 --- /dev/null +++ b/tests/ref/fate/exr-rgb-scanline-pxr24-half-uint32-13x9 @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 13x9 +#sar 0: 0/1 +0, 0, 0, 1, 936, 0x7b44246e -- 1.9.3 (Apple Git-50)