[FFmpeg-devel] [PATCH 0/6] avdevice/dshow: control_message interface

Diederick Niehorster dcnieho at gmail.com
Wed Jun 2 14:28:55 EEST 2021


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(-)

-- 
2.28.0.windows.1



More information about the ffmpeg-devel mailing list