From patchwork Fri Jul 8 22:53:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 34764 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1916:b0:8b:804:ebe9 with SMTP id bv22csp323344pzb; Fri, 8 Jul 2022 15:55:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSfTjy9vhcxkZfOM5+DZwe1DEGJrkrvmGdGux0mBa9BtAMe0L7wp2huA5RGUhz/Ac30lZN X-Received: by 2002:a17:906:4786:b0:722:e5ac:7d96 with SMTP id cw6-20020a170906478600b00722e5ac7d96mr6015482ejc.172.1657320911483; Fri, 08 Jul 2022 15:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657320911; cv=none; d=google.com; s=arc-20160816; b=w1Ry4W0Fy75y3xOo201Z3fiAZVaKQaYXolxRwZf0mjim5ZKPjNOJRA0B6VHJfGZCXA D8mYNjxWJFGklZP1Qb7HJf//bt12sCoHcrbDDJe3F2VxlVisqiD7u2p6NOx84wdw1usl kZnBDSWu+KcMNbzbQ8vzdCvjXI4lMLVIWvsLsUziuX065g3R9yiKf7q7y92syuwhQdC9 qBHgXIkW2nhkbDhCgMcXp1RNLWwOpJyWIRuy2L8+idgjUpVFjM1alLtIksp3qp9lekgY eY/buEq7UQjH1iDJrT/YrDn5+GgF99CcMJKhOJMSTcjfm08ZFbuwNk5XbCxbxrlISkkZ OxuQ== 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=WgympPQoZ2hvTarIBe1fSNF4XFrdCvWM79TBziYYy+M=; b=pbooPBY9vLsrghclemeL5dsXmuEpoZsD8BOcWmhEdrnv1Bd5R2bufIGBlvOFJHx5A0 lKIwznc1nqtFhgEhFJ/2IDs1T17SKPnSMSvH3kWh+h603ieV6J0I492r1dFvYx8Bfb7x w7YHNk3HoAgZ/gVm08zmWCv+KKOnatRuJRN//codNeGviuRmqNicAccfU90zOTiDV2+R xTOAD1joj7YXlifl/Nhi4RauU69XzjjWejENiQWxFhkRErovIYPBe7UK21dX3kOt9WuJ jupKEF4jqgLlAw2Ut6joGoOlNk8keEpB/N/4b752JtYCn9mVpOKiCEy+5ulfFFuSEyRe EElg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org header.s=mail header.b=DDcUTWwO; 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=rothenpieler.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dm4-20020a170907948400b0070870e20c98si14534123ejc.123.2022.07.08.15.55.11; Fri, 08 Jul 2022 15:55:11 -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=@rothenpieler.org header.s=mail header.b=DDcUTWwO; 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=rothenpieler.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D97AE68B8AC; Sat, 9 Jul 2022 01:54:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [136.243.74.85]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9262568B889 for ; Sat, 9 Jul 2022 01:54:22 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id CC74431731F; Sat, 9 Jul 2022 00:54:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1657320860; bh=sh1ZDXCTV0TIfFX0+gY5YR8woqNmhJM1z9dkC2GxMgs=; h=From:To:Cc:Subject:Date; b=DDcUTWwODHyDR3NNRam8Yuqh4vbZrulgjqWEFdoFcKLvveRGVNFE4VBy+qUiYEB+e +zfUPyEwLpK6QrY28fmFbOVD4dPL/SXDyZurCJy9JjU/n1W9mCgr7GWceCWQUMX+qQ Br6EfXoHuy1alio7HOHl26KLijfU6928S95CGRAb8y1mACf+76iSdeu7WIuqHdL9ZS aSrlVeKIwgCjLodBtVIhPES6sHKy4SFirkLeQzEvJbYT8Hb7xwFCryzZs3cu2haK58 HwPD5P4b4p/TlNz5TqyXwrN04lpi4OHUFAtRjiDnBkMfB1SznHasy6TRx8bX8zjXXT ryf7TZyToOb6A== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sat, 9 Jul 2022 00:53:56 +0200 Message-Id: <20220708225404.23748-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 0/8] ddagrab source filter, lavfi.c wrapped_avframe and dependent changes 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: Timo Rothenpieler Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: AviZUY4NY1G5 Since a bunch small stuff has changed since the last time I sent these one by one, here's the whole collection again. I intend to push the whole lot within the next 48h, so they all make it in before 5.1 gets branched. Timo Rothenpieler (8): fftools/ffmpeg: make debug_ts print raw filter output avutil/hwcontext_d3d11va: fix mixed declaration and code avutil/hwcontext_d3d11va: fix texture_infos writes on non-fixed-size pools avutil/hwcontext_d3d11va: update hwctx flags from input texture avutil/hwcontext_d3d11va: add BGRA/RGBA10 formats support avdevice/lavfi: output wrapped AVFrames avdevice/lavfi: pass forward video framerate avfilter: add vsrc_ddagrab Changelog | 1 + configure | 7 + doc/filters.texi | 68 ++ fftools/ffmpeg.c | 12 +- libavdevice/lavfi.c | 94 +-- libavdevice/version.h | 2 +- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/version.h | 2 +- libavfilter/vsrc_ddagrab.c | 980 ++++++++++++++++++++++ libavfilter/vsrc_ddagrab_shaders.h | 120 +++ libavutil/hwcontext_d3d11va.c | 22 +- tests/ref/fate/filter-metadata-cropdetect | 3 +- 13 files changed, 1252 insertions(+), 61 deletions(-) create mode 100644 libavfilter/vsrc_ddagrab.c create mode 100644 libavfilter/vsrc_ddagrab_shaders.h