mbox series

[FFmpeg-devel,0/2] avdevice/dshow: set color information in stream

Message ID 20210602062857.1767-1-dcnieho@gmail.com
Headers show
Series avdevice/dshow: set color information in stream | expand

Message

Diederick C. Niehorster June 2, 2021, 6:28 a.m. UTC
These two patches check if a DirectShow device provides color
information and sets this in the AVStream. If a device provides equivalent formats with and without color information, the format with color information is used.

I'm a first-time contributor, hope all is in order.

Example output of list_options for a device supporting extended color
information, before and after this patch series:
pixel_format=yuyv422  min s=640x480 fps=5 max s=640x480 fps=30
pixel_format=yuyv422  min s=640x480 fps=5 max s=640x480 fps=30 (tv, bt470bg/bt709/unknown, topleft)

vcodec=h264  min s=640x480 fps=5 max s=640x480 fps=30
vcodec=h264  min s=640x480 fps=5 max s=640x480 fps=30 (tv, bt470bg/bt709/unknown, topleft)

vcodec=mjpeg  min s=1920x1080 fps=5 max s=1920x1080 fps=30
vcodec=mjpeg  min s=1920x1080 fps=5 max s=1920x1080 fps=30 (pc, bt470bg/bt709/unknown, center)

Diederick Niehorster (2):
  avdevice/dshow: discover source color range/space/etc
  avdevice/dshow: select format with extended color info

 libavdevice/dshow.c | 601 +++++++++++++++++++++++++++++++++++++-------
 1 file changed, 514 insertions(+), 87 deletions(-)