From patchwork Wed Jun 2 11:28:55 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: 28054 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp456607iof; Wed, 2 Jun 2021 04:29:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2nu3ajHwfAhqeVGwceVSCwf1tOVI6awioympmha44uWhSllgxP6UXqDCU2fZdoB1y+mXG X-Received: by 2002:a17:906:b0c9:: with SMTP id bk9mr33879329ejb.517.1622633372932; Wed, 02 Jun 2021 04:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622633372; cv=none; d=google.com; s=arc-20160816; b=Y3lRsWY5zcnaxkp8DboZ/XarYZ5Rmx4OvU47ywxGPQgLz1M6L44/AIoDAgL9wykL4+ 95r2F0YruufuLgRaoO1qEZu/u8CjddF0gG7Ha32elLCx4JZH+t1Y4CdfcXVoSKtAOW9k tn417AbkteLb63/3cn2mNULkQwtxXTBhPZqXD54qHERxtrwbMs/59nEJB9ZlLkmyg/uF hJ4YzGbkZJMPBHDH1wG70neuCptfL3F0j2GQwuE5+9bhfISoLFIoarZ+wLrK07H86FUA oNgytIsFdVFh8v7Qrocw/CHKbHfBgRCbx3xtnargzYmF9R6jSDoEGcl7oQRMchhC9e5X YsKw== 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=FdL4S/txWwn2MOpNHf4V4K5bgO13QSWep1JtccQrJJU=; b=SUvuJBxc6WGjs04kyHc3xJinhLamcBGU3xzrN1LYNxCgym+zsDyt1/HKGCxC+vLDQl nSf/DdUTLdNfqgK9vfDVZmGW+AxoJA5RiXgG/pZLgXMslvVQ7xveqF/lXxOI3JBEnSDC k0WHj9eT7eNJ6gqPJennfxHfFxP35CXmtbxuU+bqcb4jbyB1M4txHv+Yp2TIA3XmKMwr yKd9LhsPurwrdGdPkxHdmNFTV5yjgRGQTVlzbaRXrgSJ+yJxFXirdgSOivB9Oyfq6ZBm V+UJVxVtKyITCYTEv56iNnyvxTITLnpW+b0bwbVLF4X4Fno3iOzMBJPqOO+Xg686gWpl tjqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QWuMUjJi; 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 go15si8766448ejc.608.2021.06.02.04.29.32; Wed, 02 Jun 2021 04:29: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=20161025 header.b=QWuMUjJi; 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 E3F616804A2; Wed, 2 Jun 2021 14:29:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A79A26804A2 for ; Wed, 2 Jun 2021 14:29:20 +0300 (EEST) Received: by mail-lj1-f169.google.com with SMTP id o8so2219299ljp.0 for ; Wed, 02 Jun 2021 04:29:20 -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=5UgST7BwDDSnyhqgXshvTVU44GmRTioDAZI+5dWd3wo=; b=QWuMUjJiiDu+f1Xghz0BNuITiNsZPJJFC+FRVH+FNuhHV6rxEaLVxGIRhvB/v5XL+Q Sbrjq/i3OFLhLMTfpo86QeCleremDSo2L0Dz5VGZtEds+jjrPekVj/+nzjeeA6ykf53G A9c7OJOtuvWtIJA0No/nTMmZ0cDIb1IKX8ivlPKG/2D52AxC5v9hZWwhoeFqD9eAPXmo j8Gbkgtp4iAwR35xw2FhU2HkGC3/NJrVCHgyoRXnanUWzCEMU45yG99fkaaG0bFdzBCr roP+9QW9Bg833zNg34SrqYYQlogRe0w5clAUVMSvvOiw5MYSA233BGfpStNPcaDdHHye 3GBQ== 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=5UgST7BwDDSnyhqgXshvTVU44GmRTioDAZI+5dWd3wo=; b=kRvCnvCHBdYXFFBSy87IDHNw7HeUYTmfpwYPh95i/zlK+fPNiVtVPCQFscI6aB1DgP 67yKhyIE52aND/tSgihWA7pdpGjoZk2r/vUuxp7Lxedp8QUybqtchuLbJaKPSfvsuyFq JDeq+3XiE8lngzQE+J5Ir2iRBjrUtRWMGta/dvu+wwlueTH5zwYDNXAumrX/NMT4gRTy sCYhz4g+Zrzuqaeb1ty55bv84MJsQXX4Yk/SOT7KqQ3W62LQGy9qTKgH1Eq29+oucSu/ K/uneahhdijyuMKVKdv5o6I56AwfZlZq3a+ljzVs6moZpyND2srBwgBR5MZ4QMDGvFYA B9ZA== X-Gm-Message-State: AOAM532hxtMzL2zQ+6IXltWy3Unfx95dG8eSwb/0+bG39yES4Row33mD Cofcfd9tSYBAbvQLbMEvqW/eEZn9TzVvPA== X-Received: by 2002:a2e:4c19:: with SMTP id z25mr25387994lja.47.1622633359561; Wed, 02 Jun 2021 04:29:19 -0700 (PDT) Received: from localhost.localdomain (deedock.humlab.lu.se. [130.235.135.183]) by smtp.gmail.com with ESMTPSA id v6sm1249497lfr.182.2021.06.02.04.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 04:29:19 -0700 (PDT) From: Diederick Niehorster To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Jun 2021 13:28:55 +0200 Message-Id: <20210602112901.2163-1-dcnieho@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/6] avdevice/dshow: control_message interface 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: XbsjZbx/pQi4 This series of patches implements the control_message interface to enable programmatic control (through the API) of the capture state (start/stop) of a dshow device, and allows to pop up its configuration dialogs through the API. For this, the control_message needes to be implemented for a AVInputFormat, since it was only available for a AVOutputFormat. Furthermore a new value was added to the AVAppToDevMessageType enum. Note that i was not able to test the last patch in this series myself as I do not have access to the devices it affects. I expect no big trouble because for code that concerns these devices, I only moved some of it into functions, didn't change its logic. Rest is thoroughly tested of course. Diederick Niehorster (6): avformat: add control_message function to AVInputFormat avdevice/dshow: implement control_message interface avdevice: adding control message requesting to show config dialog avdevice/dshow: accept show config dialog control message avdevice/dshow: tv_tuner_audio_dialog cleanup missing avdevice/dshow: add config dialog command for crossbar and tv tuner libavdevice/avdevice.c | 8 ++- libavdevice/avdevice.h | 10 +++ libavdevice/dshow.c | 116 ++++++++++++++++++++++++++++++++++- libavdevice/dshow_capture.h | 11 ++++ libavdevice/dshow_crossbar.c | 95 ++++++++++++++++++---------- libavdevice/version.h | 2 +- libavformat/avformat.h | 6 ++ libavformat/version.h | 4 +- 8 files changed, 210 insertions(+), 42 deletions(-)