From patchwork Sun Jan 2 23:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Anthony Lemieux X-Patchwork-Id: 33020 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp15690414iog; Sun, 2 Jan 2022 15:17:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYDu8MHvs5koion6mBHWNxlDqGt6v/Zzs/2epYcIDC/tRcBxBu1dqcJRlcYmQkXGz6xt2V X-Received: by 2002:a17:906:4fcc:: with SMTP id i12mr34190228ejw.122.1641165422843; Sun, 02 Jan 2022 15:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641165422; cv=none; d=google.com; s=arc-20160816; b=q8ePVjy/v/Z4VT1VRkVTRvGu9/kr/RfknxvPSZfXvNtvcqEstqO6VkIvTz9n1b2Hvj xkYXuJO0wqYCXHRd+qhretG79nhhfWctW0kSBrbj3nuTaiOWjN7MZMZ1ETpeiOvXMedV G+Ir5wiCZ8vbK+XUWx9ZpuNSbyOzNShUMlleyAJ7DBTxeVCt9JupkEvIw4MTvszf+IOs 9p1LeDiCOtnypu+CTOZy5wpAjoHklCtRjdwHiHIXZ0ncEPvNeZQp2RDa9/0wWwyNoZ64 oCT9v5tuE0fOnY3cY+DskRYToJwY9JMtc1tkGQYGyS5OUEY/42j5uCVaOvksxtpjGdLr 9TRg== 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:message-id:date:to:from :delivered-to; bh=ZnVI89opIbOm2Bs6rgfoAk3clbXq02WOZrgf66ZfADQ=; b=QR4+pg2UyIUVV7dyU6XAheAAUI3448Vx9HnWhURFu1k/XClMs7TDqISH8bfBWMep4w 8ntLDVDEOVCwCrdx6HXfJAEotQUM+qXiliuFIY2m3YOa9tC4Mc8nfoWLicHdu8ZbaWVO y2HBq0SMeNU6YvMsMiFkKQadvbpS8mPl1KzTWlAHOuUHl+CCYiaRR/ozfhAv9efzNucI DJ7cWPbrLzAUzkuU15hkdvQO1aMqxwM+FJBYto64JhWFvdmPoghR3h2/E9e/n9yre7Zy u9U7CvlZxfW+v3L56kJS0JNtHy6p1jHcN7IDAnMUdAR43byOG0lfvWot8Hy3GM+XLtjs n60Q== 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 dm10si16401006edb.24.2022.01.02.15.17.01; Sun, 02 Jan 2022 15:17:02 -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; 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 B8FBE68B183; Mon, 3 Jan 2022 01:16:57 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4A58F68011E for ; Mon, 3 Jan 2022 01:16:51 +0200 (EET) Received: by mail-pg1-f172.google.com with SMTP id v25so28811942pge.2 for ; Sun, 02 Jan 2022 15:16:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0oNZlhcLSjb8FUa0IObOzSFWAruFQkSH4lnfYFPSBUk=; b=n1RTzRBrb3BrmdY6DyYTqQn/CtFcxzASZFapiSFiyWJCW76SC2yck65THSUVW+LkN3 VPtoXklTYJIFzKR5+Lx4eb4O5w5Bncwcqzpkj9u8fpkcIsR1ZaGhllzNjglBqW8AdC0Q 1gNY97EUskkGg1pEsotlfluTdP7+7GryxIXWg3Ailhy2ubK4YE6RdAk4zPgmFfyXAw/L Nka4Fab/6ECqf0iFAIGkKNPixjCE/uw6y7cH3cWT986IFiw/cMftzoVusISjXFATcVyT F4IxpbXWHVB4NIKR1O1BgPfwpTwzCMJuaqHXzrOMcvYuWC0HIhaZF2AZ0zBJZXfMmVu7 kmnQ== X-Gm-Message-State: AOAM533GCU+GxdgqQuaXWWswF+dkze+NmbgT+PL83kVT+5ErZxcZIYwe zmXtFbsqPFNuB8Aa2cReFJ70YHl3HzM= X-Received: by 2002:a63:5fc4:: with SMTP id t187mr38671252pgb.583.1641165409124; Sun, 02 Jan 2022 15:16:49 -0800 (PST) Received: from localhost (76-14-89-2.sf-cable.astound.net. [76.14.89.2]) by smtp.gmail.com with ESMTPSA id e11sm32895852pjh.14.2022.01.02.15.16.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Jan 2022 15:16:48 -0800 (PST) Received: by localhost (sSMTP sendmail emulation); Sun, 02 Jan 2022 15:16:29 -0800 From: pal@sandflow.com To: ffmpeg-devel@ffmpeg.org Date: Sun, 2 Jan 2022 15:16:28 -0800 Message-Id: <20220102231628.5306-1-pal@sandflow.com> X-Mailer: git-send-email 2.34.1.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] avformat/imf: add IMF CPL with repeated resources to FATE 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: Pierre-Anthony Lemieux Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 1xgp5PO0mMCi From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: The `fate-imf-cpl-with-repeat` target requires following files (<256 kB) to placed under $(TARGET_SAMPLES)/imf/countdown/: http://ffmpeg-imf-samples-public.s3-website-us-west-1.amazonaws.com/countdown/ASSETMAP.xml http://ffmpeg-imf-samples-public.s3-website-us-west-1.amazonaws.com/countdown/CPL_f5095caa-f204-4e1c-8a84-7af48c7ae16b.xml http://ffmpeg-imf-samples-public.s3-website-us-west-1.amazonaws.com/countdown/PKL_4671220f-c87a-4660-bf2a-6ef848791a2c.xml http://ffmpeg-imf-samples-public.s3-website-us-west-1.amazonaws.com/countdown/frame-counter.mxf tests/Makefile | 1 + tests/fate/imf.mak | 12 ++++++++ tests/ref/fate/imf-cpl-with-repeat | 46 ++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 tests/fate/imf.mak create mode 100644 tests/ref/fate/imf-cpl-with-repeat diff --git a/tests/Makefile b/tests/Makefile index 87807ed31f..c4c31ae871 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -153,6 +153,7 @@ include $(SRC_PATH)/tests/fate/hlsenc.mak include $(SRC_PATH)/tests/fate/hw.mak include $(SRC_PATH)/tests/fate/id3v2.mak include $(SRC_PATH)/tests/fate/image.mak +include $(SRC_PATH)/tests/fate/imf.mak include $(SRC_PATH)/tests/fate/indeo.mak include $(SRC_PATH)/tests/fate/libavcodec.mak include $(SRC_PATH)/tests/fate/libavdevice.mak diff --git a/tests/fate/imf.mak b/tests/fate/imf.mak new file mode 100644 index 0000000000..c9490d665b --- /dev/null +++ b/tests/fate/imf.mak @@ -0,0 +1,12 @@ +FATE_IMF += fate-imf-cpl-with-repeat +fate-imf-cpl-with-repeat: $(TARGET_SAMPLES)/imf/countdown/CPL_f5095caa-f204-4e1c-8a84-7af48c7ae16b.xml +fate-imf-cpl-with-repeat: $(TARGET_SAMPLES)/imf/countdown/ASSETMAP.xml +fate-imf-cpl-with-repeat: $(TARGET_SAMPLES)/imf/countdown/frame-counter.mxf +fate-imf-cpl-with-repeat: $(TARGET_SAMPLES)/imf/countdown/PKL_4671220f-c87a-4660-bf2a-6ef848791a2c.xml +fate-imf-cpl-with-repeat: CMD = framecrc -i $(TARGET_SAMPLES)/imf/countdown/CPL_f5095caa-f204-4e1c-8a84-7af48c7ae16b.xml -c:v copy + +FATE_IMF-$(CONFIG_IMF_DEMUXER) += $(FATE_IMF) + +FATE_SAMPLES_AVCONV += $(FATE_IMF-yes) + +fate-imf: $(FATE_IMF-yes) diff --git a/tests/ref/fate/imf-cpl-with-repeat b/tests/ref/fate/imf-cpl-with-repeat new file mode 100644 index 0000000000..38092d542c --- /dev/null +++ b/tests/ref/fate/imf-cpl-with-repeat @@ -0,0 +1,46 @@ +#tb 0: 1/24 +#media_type 0: video +#codec_id 0: jpeg2000 +#dimensions 0: 1920x1080 +#sar 0: 0/1 +0, 0, 0, 1, 5034, 0x29a972c1 +0, 1, 1, 1, 7214, 0x704fb452 +0, 2, 2, 1, 8496, 0xee9d2692 +0, 3, 3, 1, 4917, 0xd35c1a2f +0, 4, 4, 1, 8803, 0xdc01ad91 +0, 5, 5, 1, 8426, 0xacc4413a +0, 6, 6, 1, 9626, 0x46865f1e +0, 7, 7, 1, 7409, 0xa21efc69 +0, 8, 8, 1, 7409, 0xa21efc69 +0, 9, 9, 1, 7409, 0xa21efc69 +0, 10, 10, 1, 7409, 0xa21efc69 +0, 11, 11, 1, 7409, 0xa21efc69 +0, 12, 12, 1, 7409, 0xa21efc69 +0, 13, 13, 1, 7409, 0xa21efc69 +0, 14, 14, 1, 7409, 0xa21efc69 +0, 15, 15, 1, 7409, 0xa21efc69 +0, 16, 16, 1, 7409, 0xa21efc69 +0, 17, 17, 1, 7409, 0xa21efc69 +0, 18, 18, 1, 7409, 0xa21efc69 +0, 19, 19, 1, 7409, 0xa21efc69 +0, 20, 20, 1, 7409, 0xa21efc69 +0, 21, 21, 1, 7409, 0xa21efc69 +0, 22, 22, 1, 7409, 0xa21efc69 +0, 23, 23, 1, 7409, 0xa21efc69 +0, 24, 24, 1, 7409, 0xa21efc69 +0, 25, 25, 1, 7409, 0xa21efc69 +0, 26, 26, 1, 7409, 0xa21efc69 +0, 27, 27, 1, 7409, 0xa21efc69 +0, 28, 28, 1, 7409, 0xa21efc69 +0, 29, 29, 1, 7409, 0xa21efc69 +0, 30, 30, 1, 7409, 0xa21efc69 +0, 30, 31, 1, 8426, 0xacc4413a +0, 30, 32, 1, 9626, 0x46865f1e +0, 30, 33, 1, 5412, 0xf4884a91 +0, 30, 34, 1, 9129, 0xbdb77fb3 +0, 30, 35, 1, 10009, 0xac8a3ec5 +0, 30, 36, 1, 7204, 0x4e239746 +0, 30, 37, 1, 9413, 0x27620541 +0, 30, 38, 1, 10725, 0x2feb9589 +0, 30, 39, 1, 7101, 0x62159f85 +0, 30, 40, 1, 10984, 0xa2eb2e49