From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 2A1E5403FD for ; Fri, 25 Mar 2022 14:12:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B071F68B24B; Fri, 25 Mar 2022 16:11:42 +0200 (EET) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DFDF368B239 for ; Fri, 25 Mar 2022 16:11:40 +0200 (EET) Received: by mail-lf1-f49.google.com with SMTP id m3so13569297lfj.11 for ; Fri, 25 Mar 2022 07:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lmRYz16L51G1okEkN7HBUHQAWXgpdxYTGfVOQdpJSVE=; b=ZcPgU33+j8LdxCmpE7EvYA0HNJulm62uqLEKosfIjMMPUY/0IKC3HU8/BGXaNEg0MW TcgVHblhOFCKNiBWxPEqEjt5z6BJIXrpJ5Qwt4SiDhiIT2R0x0HZQLDzmUlObW6H8r2c nNP0q4uev6wgDgNr1SBVNyIOikwmNaGm1u89wnyl8IvGFxRE+FHDnGo5+fsl56gIZXQL /RXAgHoTu6TPSATwn0LVvlo7idmS85/MW2Q5GoYzKj3dBi0DSDTs0mhfa88km47YIHT2 ORjdNdXRsPYyUozu0m56NhSIDdmIQzbFMljsyYx1S4WQj8yvRONf0qp7Do6uvFuTwjZ8 Xh1A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lmRYz16L51G1okEkN7HBUHQAWXgpdxYTGfVOQdpJSVE=; b=tXTrMvlY77gohtIye+YbcQfbgYmVdkyrux249zyPawo4QRsSkrXGrkeUil9A0VdWXQ QZBpdDyRFKN/Y2UMatHe80J7PdVrwUiGZ1RFkz7fkQ6hOngw+W7FaagM8CeGilkMSK3g xonAUiMe2xkTRPYwrH6/hDR0XkRXn+GrdUfZaqawD+x/mnpLRIvX7MnXlrWxXmZ1sz2G 1Bt+mb1664BU5D+hEbx3B8jhy4wIlp4bRuCB7luHqHcS7dTismLidilHmCawPZF1JcDZ SSEqP3H5u71Zvuv5XC5l5Wga4eizjgZQ2/qDJiDHZTzb78KPPvU5O+L26fn4FoSPr8O/ bJjQ== X-Gm-Message-State: AOAM530UjbtVDzqTl7kAffoKymd0EKtjfWumj9RuTS+rmq4JV2aCNmPt 2yDUBbXHivSSV0q/fA0cfLkf8Kk2g4U= X-Google-Smtp-Source: ABdhPJxd5s6k8gYF9BKRNt7CX5/f9ovZ+rA7nR+s3Kz21d0NF3XJh8Veca3qCxP1+sRs+6P+f2dk6Q== X-Received: by 2002:a05:6512:2214:b0:44a:348a:d6d with SMTP id h20-20020a056512221400b0044a348a0d6dmr7908707lfu.506.1648217499566; Fri, 25 Mar 2022 07:11:39 -0700 (PDT) Received: from localhost.localdomain (deedock.humlab.lu.se. [130.235.135.183]) by smtp.gmail.com with ESMTPSA id x1-20020a056512130100b004484c116de3sm717108lfu.246.2022.03.25.07.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 07:11:38 -0700 (PDT) From: Diederick Niehorster To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Mar 2022 15:10:24 +0100 Message-Id: <20220325141041.1748-6-dcnieho@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220325141041.1748-1-dcnieho@gmail.com> References: <20220325141041.1748-1-dcnieho@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 05/22] avdevice: add control message requesting to show config dialog 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This control message can be used to programmatically ask a device to show one of its configuration dialogs. Adding documentation of this message's int argument. Bumping avdevice version. Signed-off-by: Diederick Niehorster --- doc/indevs.texi | 34 ++++++++++++++++++++++++++++++++++ libavdevice/avdevice.h | 10 ++++++++++ libavdevice/version.h | 4 ++-- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/doc/indevs.texi b/doc/indevs.texi index 9d8020311a..0302859552 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -682,6 +682,40 @@ $ ffmpeg -f dshow -show_video_device_dialog true -crossbar_video_input_pin_numbe @end itemize +@subsection Libavdevice user notes + +The dshow device supports the @code{avdevice_app_to_dev_control_message} +interface. + +It understands the @code{AV_APP_TO_DEV_PAUSE}, @code{AV_APP_TO_DEV_PLAY} +and @code{AV_APP_TO_DEV_TOGGLE_PAUSE} commands, which respective stop and +start whether data is captured from the connected device, and toggle +capture state. + +It furthermore understands the @code{AV_APP_TO_DEV_CONFIG} message, which +requests the device to show a configuration dialog (if available). An +@code{int} should be passed along with this command to indicate which +configuration dialog should be shown. The bits in this @code{int} have +the following meaning: + +@itemize @bullet +@item +1st bit: If set, the dialog for the audio device will be shown. If not set +the dialog for the video device will be shown. + +@item +2nd bit: If set, show property dialog for the audio or video capture device, +allowing to change audio or video filter properties and configurations +manually. + +@item +3rd bit: If set, show property dialog where crossbar pin routings of the +audio/video device can be manually modified. + +@item +4th bit: If set, show property dialog where TV channels and frequencies can be manually modified (in case of video device), or TV audio (like mono vs. stereo, Language A, B or C) can be manually modified in case of audio device. +@end itemize + @section fbdev Linux framebuffer input device. diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h index db16a2f27e..74e9518a8e 100644 --- a/libavdevice/avdevice.h +++ b/libavdevice/avdevice.h @@ -206,6 +206,16 @@ enum AVAppToDevMessageType { */ AV_APP_TO_DEV_GET_VOLUME = MKBETAG('G', 'V', 'O', 'L'), AV_APP_TO_DEV_GET_MUTE = MKBETAG('G', 'M', 'U', 'T'), + + /** + * Request to show configuration dialog. + * + * If device has a configuration dialog of type indicated by + * data, show it. + * + * data: int (device-specific). + */ + AV_APP_TO_DEV_CONFIG = MKBETAG('C', 'O', 'N', 'F'), }; /** diff --git a/libavdevice/version.h b/libavdevice/version.h index 69317c9280..96347a3893 100644 --- a/libavdevice/version.h +++ b/libavdevice/version.h @@ -30,8 +30,8 @@ #include "version_major.h" -#define LIBAVDEVICE_VERSION_MINOR 7 -#define LIBAVDEVICE_VERSION_MICRO 101 +#define LIBAVDEVICE_VERSION_MINOR 8 +#define LIBAVDEVICE_VERSION_MICRO 100 #define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \ LIBAVDEVICE_VERSION_MINOR, \ -- 2.28.0.windows.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".