From patchwork Mon Aug 29 00:02:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hutchinson X-Patchwork-Id: 34798 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp1633516pzh; Sun, 28 Aug 2022 17:03:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5IaS9P2GuSSZHEA4JJaO7UOcHfDQOOJc54LHsvSExHOiGc5KClbaIcf2p9k85blaNk99HE X-Received: by 2002:a17:907:a420:b0:741:4a58:eac8 with SMTP id sg32-20020a170907a42000b007414a58eac8mr5342517ejc.346.1661731382009; Sun, 28 Aug 2022 17:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661731382; cv=none; d=google.com; s=arc-20160816; b=zo2MNvY2ZqEJJMR/WXOqNwxEZUQ+XLBPOh29P0sRnmtTkPgkpfJlQOdqJGIWQ/gICG W17PfpFQlQO+aqY8T6apZI95mwHS4i69mMUcg5J2uzKt1a7tss1GuWemk8VtKBX9AAZg pDbXbzb31NfSyaeC6Ro6cw++r0Vyv4O7863NLcz2ChTj5ui78Y/bZvYNCG5zEYj3TrJ/ Vj1+yL4wXItwW7C8vHCEnUf/KEXnzcA5EK8li+qBjM6iMCexicsHVOllAmWI9Uz1pXfX AI/Vd8YB36RDKzZfROVfDjQpQRuVjULlqv3QbDmrLGlo2Dck72O9UHw0f1e++OtM/2XG FCEA== 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 :dkim-signature:delivered-to; bh=o6JoT6pGwwwl2DKzTNmSIwxEPWTBtaJSu9U3PVDh/nk=; b=iWKQLMSgWbL0rz/a2BIXRDOLNXrnat6TUpMD4SCDYyDwyPwT4TxJ2l9VseQwXeBRT5 rBpZcekFTlChFlE1BvPBaykq1vZtLU1AOC954UOQ+HE9X7oKDI59bHfg2XLSHjL6FdMj XHbpyCjdgYueEf3x55Sj+yBqm9MOlw9GhO8xOq6t+9F2RUYluvI7DB589UEJ8cex4J2g hm2Vlvyg9ROqKNwnsmk1x2snrC9LhG0Q01B8hQELamEA34YADjAxio4panoV3+8O06wn SSfQPUlviNhxLEQBUriF6VINxnOkykYkH6gMDSeMbEsqUmqX3K/sM/4wSIsOyS4J1+Kd +XVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=CD2A4flE; 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 eb7-20020a0564020d0700b0043c58974afdsi6362488edb.491.2022.08.28.17.03.01; Sun, 28 Aug 2022 17:03:02 -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=20210112 header.b=CD2A4flE; 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 4D0BE68B991; Mon, 29 Aug 2022 03:02:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 991D468B468 for ; Mon, 29 Aug 2022 03:02:51 +0300 (EEST) Received: by mail-vs1-f46.google.com with SMTP id p6so6827598vsr.9 for ; Sun, 28 Aug 2022 17:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=Vr0vNPcXdl07TC5ILMH46j+Ud7qHQwPSSiUEnATKeJc=; b=CD2A4flEgtriQMukMUe4hmh8jSwldu4YKsq0OPXHYvsCNyAmO/31PisOvNLzZihlXh 8rCZSod2UXlr/1Gi/W0YD9KfHTdIqTILtvLmLWUnkgJpnl3k+Q4NmKwa2MMseUHCU/sJ 7irCr7Jm+OR1KinjpPSF7LszOpZDwzuPdxRszdmyVP0t1BPl0pmXp9AD5LKgk5e20LRt /I9yvtKuj/70bDDba4GImEZn/L7+h4CJQfIryy7YIvk/RCoKcUhBeFOXfqSdDJEBldBi OoecJj+E8eBApGnxlJe0K0cPa7g4Ozd6fjCoO4wOs7R2EwGwFoD/XI57sFzI5j29nJBG /Wkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=Vr0vNPcXdl07TC5ILMH46j+Ud7qHQwPSSiUEnATKeJc=; b=m3LEBRhl4zwHN5/+tlI066UcsQKw1UAotpmSh7EpAKcUtHtA5Q953kt6xwqobZH4XN 0Z/CSjl7+htZEZKg2GcXkbW1jW83l05P9NWbX1GEXC3vrnmzPdUblhoNYxVUDJ29rSpV W3uJkNSd7nd49OOj4rbDo1FffxEAlZqK3HkTkQaBW/mpDKQ4iDXEYvHvUmS1omdfnRk3 00JUTjDeM97ToUImd4HrQvDA3Fl4UHTzMODeMzeExJ57fMH5ymBZIopNpNOYIJ2jka1u VKEvkpkUMtVVVWzEg0cWEKteUPiCvv2hUov6H/g1OIXgIvvtnY/7IqpdaKtLpN/+/k2J 8crQ== X-Gm-Message-State: ACgBeo2U9hSKc+VStDwGwSK34wyjiG4OlJ2YgBHI/f3ClB5cYPqV6TBT 8fIpaR9miGcrBalMu4vz1+q1rVYn7X3v8A== X-Received: by 2002:a05:6102:3da4:b0:390:8971:e5ce with SMTP id h36-20020a0561023da400b003908971e5cemr2613147vsv.14.1661731369317; Sun, 28 Aug 2022 17:02:49 -0700 (PDT) Received: from cappuccino.. (075-115-109-114.inf.spectrum.com. [75.115.109.114]) by smtp.gmail.com with ESMTPSA id z5-20020ab05645000000b0039f07e29623sm1382804uaa.4.2022.08.28.17.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 17:02:48 -0700 (PDT) From: Stephen Hutchinson To: ffmpeg-devel@ffmpeg.org Date: Sun, 28 Aug 2022 20:02:35 -0400 Message-Id: <20220829000244.71123-1-qyot27@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/9] avisynth: add user options 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: Stephen Hutchinson Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: QYeJ41GeY8c7 The introduction of reading _SARNum/Den values spurred the idea of making sure that users can turn the frameprop value reading ability on and off. Resizing is a much more common activity in AviSynth scripts than the kind of broad color work that would potentially severely impact the usage of the color-related frameprops. Since the source filter sets the SAR values, but then it would be quite possible for a user to manipulate the resolution without updating the prop values for _SARNum and _SARDen, it would become extremely easy to get it wrong. So reading _SARNum/_SARDen is *possible*, but requires user opt-in with the -read_frameprop_sar boolean option. And that then lead to fleshing out the others into their own options, and a mass frameprop on/off setting. Stephen Hutchinson (9): avformat/avisynth: read _SARNum/_SARDen from frame properties avformat/avisynth: add read_frameprop_sar option avformat/avisynth: add read_frameprops option avformat/avisynth: add read_frameprop_field_order option avformat/avisynth: add read_frameprop_range option avformat/avisynth: add read_frameprop_primaries option avformat/avisynth: add read_frameprop_transfer option avformat/avisynth: add read_frameprop_matrix option avformat/avisynth: add read_frameprop_chroma_location option libavformat/avisynth.c | 462 +++++++++++++++++++++++------------------ 1 file changed, 259 insertions(+), 203 deletions(-)