Get color information from source device
As discussed in https://trac.ffmpeg.org/ticket/8454, if possible the dshow filter should provide information about the color range, color space, primaries, trc and chroma location of the frames a device provides. Some DirectShow devices do provide this information. I open an issue here with a partial patch, as a starting point and for discussion, before i send it to the list. I need help with the following:
- Check that my conversion from DXVA color information to FFmpeg's AVColorRange, AVColorPrimaries and AVColorTransferCharacteristic is correct.
- Help to convert the DXVA color information to AVColorSpace
- Advice on how to provide this information to FFmpeg/the user. As far as i understand, this is not normally provided by the format, but by the codec, which (I think) it outside the purview of dshow/a format.