From patchwork Wed Jan 11 20:59:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Vignali X-Patchwork-Id: 2184 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp972037vsb; Wed, 11 Jan 2017 12:59:35 -0800 (PST) X-Received: by 10.194.112.170 with SMTP id ir10mr6295472wjb.190.1484168375715; Wed, 11 Jan 2017 12:59:35 -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 q206si11986283wme.25.2017.01.11.12.59.35; Wed, 11 Jan 2017 12:59:35 -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 sp=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 ADE0968A1DE; Wed, 11 Jan 2017 22:59:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 06EE068A15D for ; Wed, 11 Jan 2017 22:59:19 +0200 (EET) Received: by mail-oi0-f42.google.com with SMTP id w204so42373oiw.0 for ; Wed, 11 Jan 2017 12:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=noJ0fxyDi6xC1KiSUTLdLKdr5Vkx4N+TmPclhY+Fzgo=; b=FWJ7MRic80KbU2Cza2uovIINWtTc9dcg803NpyaSt6MmM88ujQ8wpE2qbraw01SP16 r2HpKX9k+1NpEK20Rl+IkGjvF3POsHFFs9IgRdW9KgGIQL48bPPo+vJFQ9KAqBCz+prK xFNRF8ugEbVAown9pdN/lLK0/gmefxV1igMFwneyhltq3m9tls7UcnHF1c0Fdm+DSXDr xU+7bRFcevCpwmCJxur1Tt5ND+fC4StCcaa/Xnd6XMqawzjdii2zWWdYY4Gwx3KWcE60 gYWbzY5FnK5RvrrQqvhQrpJ3x8Y8jWpNDTSw/9+44hiyveAd4Lp+YFhZyod3LyMQ3X47 4FIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=noJ0fxyDi6xC1KiSUTLdLKdr5Vkx4N+TmPclhY+Fzgo=; b=uABO8yq23aq+P2X44hvJ7IDf0ehEyFGsxWVWRiXsPRpvG2X+0fo3MVWKuJNL1hujEW J3+JZAjWUjn0hvHAsxUfFDAX+YKnAxqV+YbMnZOHlsrw8Z0GhFM/XGDhpS0AuYRKLN+p kqYO01Cr7rgZ4oKt1PmLtgIRFjh1ov9BwNBB1bfmfZpCEr+8vZD0gJGe1Ja2hD4bVr+2 xr2HrUDHuWfqSqy4a7T6xI5C3eeemQ0w6gpGrMrk+l+inzKYnoAFYQkuEli8MglUzIkQ IlW1r91UIo+BxijzGES+nc6CC8zu5SG8wIwfV2iW61CL9hqVhhh3d3ruvERm9SQ5eEdk gmnw== X-Gm-Message-State: AIkVDXJh79QE+B04KLGKUwQ1Qlzv2HO6CMfTuYpfddhCPthM+9sktATvIySCIevr7NnyEUrW6j9W4s7HrQUvbA== X-Received: by 10.157.19.93 with SMTP id q29mr4452216otq.60.1484168365216; Wed, 11 Jan 2017 12:59:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.29.162 with HTTP; Wed, 11 Jan 2017 12:59:24 -0800 (PST) From: Martin Vignali Date: Wed, 11 Jan 2017 21:59:24 +0100 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] fate/psd : add test for bitmap and duotone 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 patch to add fate test for bitmap file, and duotone. The duotone test, is based on the actual state of the decoder, where the sample is interpreted as gray file. Sample can be found here : https://we.tl/sKMmiVhWT1 and need to be put inside : fate-suite/psd/ Martin From 031441d5033e5e7fe0b18a27f348ec2c76e04c96 Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Wed, 11 Jan 2017 21:51:36 +0100 Subject: [PATCH 2/2] fate/psd : add test for bitmap and duotone The duotone file is interpreted as gray --- tests/fate/image.mak | 6 ++++++ tests/ref/fate/psd-duo-tone-color | 6 ++++++ tests/ref/fate/psd-lena-bitmap | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/ref/fate/psd-duo-tone-color create mode 100644 tests/ref/fate/psd-lena-bitmap diff --git a/tests/fate/image.mak b/tests/fate/image.mak index 17c9245..2a0eda6 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -309,6 +309,12 @@ fate-psd-lena-rgb-rle-127x127-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-r FATE_PSD += fate-psd-lena-rgba-rle-128x128-8b fate-psd-lena-rgba-rle-128x128-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgba_rle_128x128_8b.psd +FATE_PSD += fate-psd-lena-bitmap +fate-psd-lena-bitmap: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-bitmap.psd + +FATE_PSD += fate-psd-duo-tone-color +fate-psd-duo-tone-color: CMD = framecrc -i $(TARGET_SAMPLES)/psd/duotone-color.psd + FATE_PSD-$(call DEMDEC, IMAGE2, PSD) += $(FATE_PSD) FATE_IMAGE += $(FATE_PSD-yes) diff --git a/tests/ref/fate/psd-duo-tone-color b/tests/ref/fate/psd-duo-tone-color new file mode 100644 index 0000000..3490e00 --- /dev/null +++ b/tests/ref/fate/psd-duo-tone-color @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 128x128 +#sar 0: 0/1 +0, 0, 0, 1, 16384, 0xe0cfa680 diff --git a/tests/ref/fate/psd-lena-bitmap b/tests/ref/fate/psd-lena-bitmap new file mode 100644 index 0000000..03725d5 --- /dev/null +++ b/tests/ref/fate/psd-lena-bitmap @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 128x128 +#sar 0: 0/1 +0, 0, 0, 1, 2048, 0x40a72c4f -- 1.9.3 (Apple Git-50)