From patchwork Thu Jun 3 22:45:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Diederick C. Niehorster" X-Patchwork-Id: 28069 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp537719iof; Thu, 3 Jun 2021 15:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWzkD0CCil60g2RXj0bfmLKH9XfiXZc3AS7rB2TOSN54WvelJZVYnazqy0nOQGKRUfEgNF X-Received: by 2002:a05:6402:22fa:: with SMTP id dn26mr1585088edb.230.1622760393062; Thu, 03 Jun 2021 15:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622760393; cv=none; d=google.com; s=arc-20160816; b=cr7JhlQrnyNkHaZPCHjtsgwS524N13wESlzCS4tJDcQpEoFYnS3j9L8Oj2BJLbcokW 3wyFSUEr8jgVSj91Lv4PUfkZhH0YZ7THZsCbEFEA/sMe8dyLTorl60W0h+gcOeNXNeTI WktMSgpEhsWWIZd9eaSFgicXHaBr2hVn+jFysTTWQg41tutI5bv5WJhH5vOxGrgy3GlC hTj0Lsq3YcHSRrEwuLyv6NAeCBUMws2hDWV0FCeEgDBK0T+jnMT0/HDROaqrbH8qN6NX cOhW5q/FA+NNsnv13lFMqe3wk4v2FunjpJU7xxr3JP6QcUcIitRrpa4I50JOkvvbNRTM TVSg== 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=YreQ8GvUoOFy7SHyclbkWoWx4zRA9HMHpZb+2g1Z5VM=; b=sgjGV8BH/0oIadVRjPPoukbE9ctXH9Ee6o4KSDfEl422zhA6SuMAPYtEXEGwx7izMQ nzliJ4TCUodPGCwkpqXy+umNKP9vteW30enRfcHjgsRbEtZoT9g3OLmipPlbQmpFzYNO tKqAzx5UVztW3UYzzg6f3doKfUPjc5y183+Y3kpNaG14t9PTabNwTdNVHE30/PINwWGS LTaPMZUnv9PMWh7kSOyq2BlGisao+vuEiMjJKQtpc9B0VWMUywQCISvg4iBvPXjWXInN yilT3TDD7UlkDI8z9ULY4BGKZ3G11c3Hd+hnfURe7C18Cy/trmLJqg93xBVFws9oYyGT X3+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ZlBjmdjG; 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 c11si3654909edw.275.2021.06.03.15.46.32; Thu, 03 Jun 2021 15:46:33 -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=20161025 header.b=ZlBjmdjG; 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 7153B68A25F; Fri, 4 Jun 2021 01:46:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ECF856881B2 for ; Fri, 4 Jun 2021 01:46:22 +0300 (EEST) Received: by mail-lj1-f178.google.com with SMTP id u22so9111435ljh.7 for ; Thu, 03 Jun 2021 15:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0AOYNXHpOTr39ynQSejrB7egF9xydCNCQHjge+07fD0=; b=ZlBjmdjGRoeN9+u3sy80Dn2ofIxYlhmQjR2WfYTUQAggD2DUjKZaMWHFAaiVgGA34J Pk1napSEH41YXIMTmF2VfqZ9S0LdkIwgASOea/FIpphUfT8pSstlA+kIJmm2Q24Y5D87 /DARFkO1Cp1CSmiYFURtdfp/LmTTES3b3Xv5d3sRv0skzoU+OyKL9h0HRt00BcU0sJie 1BN/TU7vV4p6koqXVKMeKDh/uPtqlF/1KQhUKbT3yO8NSNRkDgrpaUAfMZt7PAHPGq92 gISTuVCQDF4ntmL9e63Ch1t+y9Bk804iBxHYrCHkJ2dVlxlKhHytrSf17SZHIpDmdRhJ j0Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0AOYNXHpOTr39ynQSejrB7egF9xydCNCQHjge+07fD0=; b=glyhw2yrvYITL84vMJ956aataMdM3dB3K6yS3LoV7MMSEHIHjWkBbOfnlxJPsxalwu UE4BomEJXehpjGyZ0fFtOvokxYbQHj822Bokt82FanuEFiNkSBCldfOe5Wh/dKy7oGgZ qe3bfyRky6hHnoHMR2hHrpdo/nHdoJEIJDilHHJ1rGcWQ66c42uhX6q36MqpLVtMUccc u3eKbbbYEIZG9YfLGyq9LuFM5DWsbWXphNsvDB1a2RNdEuzJ8RaKCqHVx8+EQUwVGTv+ RajX+iqenu+7X3F4BV6wZhXxUW/aRouOn1f8GFtiQDN3IXnbMw9B3iA77aViwaC09Kfd U4dg== X-Gm-Message-State: AOAM5327dK2IrhHGAdRK8UPkiLh7XabUPnjxI5ciOia96T9b6MmYt40s 33EcLyFh06yIgRB5JDwzzEEoa/+1/Qc= X-Received: by 2002:a2e:b892:: with SMTP id r18mr1133694ljp.402.1622760381948; Thu, 03 Jun 2021 15:46:21 -0700 (PDT) Received: from localhost.localdomain (84-217-56-54.customers.ownit.se. [84.217.56.54]) by smtp.gmail.com with ESMTPSA id t15sm82373lfp.176.2021.06.03.15.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 15:46:21 -0700 (PDT) From: Diederick Niehorster To: ffmpeg-devel@ffmpeg.org Date: Fri, 4 Jun 2021 00:45:48 +0200 Message-Id: <20210603224552.1218-1-dcnieho@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/4] avdevice/dshow: implement capabilities API 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: Diederick Niehorster Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Ms2o1EPqPHbj ** Resending as it seems they didn't all make it..** Undeprecating the avdevice capabilities API and implementing it for the dshow device. Much needed. Together with the other patches i sent, a dshow device can now be properly used programmatically by programs using ffmpeg under the hood. Diederick Niehorster (4): avdevice/avdevice: Revert "Deprecate AVDevice Capabilities API" avdevice/avdevice: clean up avdevice_capabilities_create avdevice/dshow: implement capabilities API examples: adding device_get_capabilities example configure | 2 + doc/APIchanges | 4 + doc/examples/.gitignore | 1 + doc/examples/Makefile | 47 +-- doc/examples/Makefile.example | 1 + doc/examples/device_get_capabilities.c | 151 ++++++++ libavdevice/avdevice.c | 74 +++- libavdevice/avdevice.h | 5 - libavdevice/dshow.c | 498 +++++++++++++++++++++++-- libavdevice/version.h | 5 +- libavformat/avformat.h | 21 ++ 11 files changed, 735 insertions(+), 74 deletions(-) create mode 100644 doc/examples/device_get_capabilities.c