From patchwork Thu Apr 20 16:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Izen X-Patchwork-Id: 41283 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp660640pzb; Thu, 20 Apr 2023 09:55:32 -0700 (PDT) X-Google-Smtp-Source: AKy350a2oiU7qU+JOkNCeWIZHiQIpeIwhKE8WdONxd/fLtYpaggIjGucAAi26FWG2y5acWl6fnxJ X-Received: by 2002:a17:906:3e53:b0:94f:764e:e311 with SMTP id t19-20020a1709063e5300b0094f764ee311mr2257839eji.16.1682009732283; Thu, 20 Apr 2023 09:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682009732; cv=none; d=google.com; s=arc-20160816; b=ahZBOHp3ptOwmAOU423O5hZmS4XYmyKHjsaa0kHhf/33HokE0BMURT4GzPmtXbs77Y sxVO7bu0AWs+PC29nvL3KCwzkpDJ09zP7pjgtOi0ZY/pe6gXKi+Z+p+NBV/54G9VPn1a +VhAMrheoGk0fiT1oTquGKzpVZA6OCIwqWPFezs2wbI24a+vGcLDmZvewfxrsHazURpT f3ggXuZWxbBHUyxVT0oRVrgIO7mqipE9jcxG1LFDwmgEQcPFzey0oexekUkcpnwAjRSl D6B/HdzvtJMTjhx0uccdJ7iiVGMOzB7UMZYbhwlJWSeiLEN/yxaLzkXGozwdx+/ImHOz qrhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=KBH3ZCBAiPd51eKcGWV2Q4DEJnd/EvlA/iJeLSYHJ+s=; b=EWaFjVUa02/IxxwVBFEdVmF0hMV08a2ldvbKVMG9WzEeQv1aI6MGbocD1ZdAiOmHov uLauDwdUqii8M2oAwBmIYyYKcEbMd/we53TGGzCheIswehFlzUMemtzvGMRhpdfpvz6q QeGzWJyapqA7ER7OJ1PXQT8hpJ68y/kpNkDbT84vyOoMImro43NwYUsUVZe09s9L9Lbf Akals9cRyCLRxFqfpSmmOFJDnVQuhFSCT0JJqyP3ZdGhHBZ/B8RHwDgeghvFx4psW2uN xMVy9iyOGG6SLJxgOe+agxDSDyatcByDOfFqJzoAmjyQHai7fq/+dy4MKq5HPOcXyiv2 qU5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=HUgkbJ9S; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id lc13-20020a170906dfed00b0094f04ed11b9si1825671ejc.786.2023.04.20.09.55.31; Thu, 20 Apr 2023 09:55:32 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=HUgkbJ9S; 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=QUARANTINE 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 5846568BE3D; Thu, 20 Apr 2023 19:55:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2BD2A68BEA6 for ; Thu, 20 Apr 2023 19:55:05 +0300 (EEST) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-54fa1deb61dso2510577b3.1 for ; Thu, 20 Apr 2023 09:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682009704; x=1684601704; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QLb767mdK/HAbHOK0j5kQwxzcPqXZ4HH9xWH1q/H3zg=; b=HUgkbJ9SML2JUlGzlf74YKHPkM0N4SHVHBK9ooKjveLjVXu/wkET4mPjF0Bgk2b+ef nZRMyj1TASa+YBMyo/Q91buMunsO8qV7LERaQfV4V7f6xixbIRaRiWrsuLCdA4ugcXZf ZGcxgozj+8qssrTDX+4JOiGP/96SxMwKJAxoH0VLkzoN1IzYMPEPwRWx3x6CjsCKl4Wo ihUD4vpgiB31AkgNI9m5uMng89ui3PjFjdVERWkw4TJOzorG0pTyjd/iNoD6/SGjUTv+ 6YpPJY3TRrwJ+5nyFb86nDpuW7EcR4geletLlQmLClCQi2NWBYgaekM8YkNqjgadkwMt PLnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682009704; x=1684601704; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QLb767mdK/HAbHOK0j5kQwxzcPqXZ4HH9xWH1q/H3zg=; b=dtcQC4+dEF8wGBrEcLLRSoz0IiBavLUSiuf3U1qjc5nryI0nEixDWcxCGDhDAfGYET dDJylXQkx9a9FrDYl0JBxWQKsNeIP2rMKlBvEdC66iKLlgt+5ASl4Cqsw5gTD6MNVo9H cJCtLhTTwUU6Xs9lVkeYrQH34ipne7NwAld3mLmr7NBsWRjEXvliA3VrEEGTMGUL1dGu KKx4wNmpaxN87pK9WtbAnDFyJJ44cAemTcVoxSg8ynFmYXGquRwZdTbleW+dwAwCZFgs rQdWTip2gl1M/RREZcPpq0Ge6Y+MVq5e+0+UoyiNbm9ObI0rfzSbDohQzhJES7qGAEBK IMpA== X-Gm-Message-State: AAQBX9c7w/x5CAIu1NKKTvNCXrShJjFgOgE2hAceStHTjdubzaTlOKle /Rc8YLGhxb613PT1gpYqrit4z/Tu0Fg= X-Received: by 2002:a81:3c4:0:b0:54f:b503:6e69 with SMTP id 187-20020a8103c4000000b0054fb5036e69mr1132224ywd.5.1682009703841; Thu, 20 Apr 2023 09:55:03 -0700 (PDT) Received: from gauss.local (c-98-224-219-15.hsd1.mi.comcast.net. [98.224.219.15]) by smtp.gmail.com with ESMTPSA id b129-20020a816787000000b0054fb2ab8782sm436198ywc.50.2023.04.20.09.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 09:55:03 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Thu, 20 Apr 2023 12:55:00 -0400 Message-Id: <20230420165500.49516-3-leo.izen@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420165500.49516-1-leo.izen@gmail.com> References: <20230420165500.49516-1-leo.izen@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 2/2] fate: add tests for RGB jpegs 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: Leo Izen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: mWx+gKg1S+iY Added framecrc tests for RGB JPEGs to verify future changes to the decoder. --- tests/fate/image.mak | 9 +++++++++ tests/ref/fate/jpg-rgb-221 | 6 ++++++ tests/ref/fate/jpg-rgb-baseline | 6 ++++++ tests/ref/fate/jpg-rgb-progressive | 6 ++++++ 4 files changed, 27 insertions(+) create mode 100644 tests/ref/fate/jpg-rgb-221 create mode 100644 tests/ref/fate/jpg-rgb-baseline create mode 100644 tests/ref/fate/jpg-rgb-progressive diff --git a/tests/fate/image.mak b/tests/fate/image.mak index 42dd90feaa..93bc715ca3 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -337,6 +337,15 @@ fate-jpg-12bpp: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg - FATE_JPG += fate-jpg-jfif fate-jpg-jfif: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/20242.jpg +FATE_JPG += fate-jpg-rgb-baseline +fate-jpg-rgb-baseline: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/george-insect-rgb-baseline.jpg + +FATE_JPG += fate-jpg-rgb-progressive +fate-jpg-rgb-progressive: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/george-insect-rgb-progressive.jpg + +FATE_JPG += fate-jpg-rgb-221 +fate-jpg-rgb-221: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/george-insect-rgb-xyb.jpg + FATE_JPG_TRANSCODE-$(call TRANSCODE, MJPEG, MJPEG IMAGE_JPEG_PIPE, IMAGE_PNG_PIPE_DEMUXER PNG_DECODER SCALE_FILTER) += fate-jpg-icc fate-jpg-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png mjpeg "-vf scale" "" "-show_frames" diff --git a/tests/ref/fate/jpg-rgb-221 b/tests/ref/fate/jpg-rgb-221 new file mode 100644 index 0000000000..32250db493 --- /dev/null +++ b/tests/ref/fate/jpg-rgb-221 @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 64x43 +#sar 0: 0/1 +0, 0, 0, 1, 8256, 0x81617757 diff --git a/tests/ref/fate/jpg-rgb-baseline b/tests/ref/fate/jpg-rgb-baseline new file mode 100644 index 0000000000..f7ff29e9a2 --- /dev/null +++ b/tests/ref/fate/jpg-rgb-baseline @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 64x43 +#sar 0: 0/1 +0, 0, 0, 1, 8256, 0x98ad8863 diff --git a/tests/ref/fate/jpg-rgb-progressive b/tests/ref/fate/jpg-rgb-progressive new file mode 100644 index 0000000000..b0d118d21a --- /dev/null +++ b/tests/ref/fate/jpg-rgb-progressive @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 64x43 +#sar 0: 0/1 +0, 0, 0, 1, 8256, 0xbb6e8830