diff options
author | Diederick Niehorster <dcnieho@gmail.com> | 2021-12-21 14:53:37 +0100 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-12-24 14:07:07 +0530 |
commit | a1c4929f65cc75b7175622a007b1e4bd37043d41 (patch) | |
tree | 803937eb333eb60da2696e7bcca3ca47422365cc /libavutil/bprint.h | |
parent | dde92fb7d995a1cf0474376a867817eaf3d4b320 (diff) | |
download | ffmpeg-a1c4929f65cc75b7175622a007b1e4bd37043d41.tar.gz |
avdevice/dshow: select format with extended color info
Some DirectShow devices (Logitech C920 webcam) expose each DirectShow
format they support twice, once without and once with extended color
information. During format selection, both match, this patch ensures
that the format with extended color information is selected if it is
available, else it falls back to a matching format without such
information. This also necessitated a new code path taken for default
formats of a device (when user didn't request any specific video size,
etc), because the default format may be one without extended color
information when a twin with extended color information is also
available. Getting the extended color information when available is
important as it allows setting the color space, range, primaries,
transfer characteristics and chroma location of the stream provided by
dshow, enabling users to get more correct color automatically out of
their device.
Closes: #9271
Signed-off-by: Diederick Niehorster <dcnieho@gmail.com>
Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
Diffstat (limited to 'libavutil/bprint.h')
0 files changed, 0 insertions, 0 deletions