[FFmpeg-devel] [PATCH 17/35] avdevice/dshow: discover source color range/space/etc
Diederick C. Niehorster
dcnieho at gmail.com
Wed Jun 9 09:20:12 EEST 2021
On Tue, Jun 8, 2021 at 5:01 PM Michael Niedermayer <michael at niedermayer.cc>
wrote:
> On Tue, Jun 08, 2021 at 01:03:56AM +0200, Diederick Niehorster wrote:
> > Enabled discovering a DirectShow device's color range, space, primaries,
> transfer characteristics and chroma location, if the device exposes that
> information. Sets them in the stream's codecpars.
> >
> > Signed-off-by: Diederick Niehorster <dcnieho at gmail.com>
> > Co-authored-by: Valerii Zapodovnikov <val.zapod.vz at gmail.com>
> > ---
> > libavdevice/dshow.c | 231 +++++++++++++++++++++++++++++++++++++++++++-
> > 1 file changed, 230 insertions(+), 1 deletion(-)
>
> seems to break build on mingw64 here
>
> CC libavdevice/dshow.o
> src/libavdevice/dshow.c:58:44: error: unknown type name
> ‘DXVA_ExtendedFormat’
> static enum AVColorRange dshow_color_range(DXVA_ExtendedFormat* fmt_info)
> ^~~~~~~~~~~~~~~~~~~
>
Oh no! Seems all those are not defined in the MinGW headers. Luckily there
is the equivalent (see
https://docs.microsoft.com/en-us/windows/win32/medfound/extended-color-information#color-space-in-media-types)
DXVA2_ExtendedFormat struct which is defined in the MinGW headers. So i
have switched to using that (well documented whats going on), seems to work
fine.
Cheers,
Dee
More information about the ffmpeg-devel
mailing list