go-d3d
go-d3d copied to clipboard
Make BGRA conversion optional
When encoding with e.g. ffmpeg, ffmpeg can handle the conversion, right? It'd be great if we could disable the conversion to RGBA.
Maybe it'd make sense to remove it from the library completely, because if someone wants to convert BGRA -> RGBA, it's just one line to add?
Just throwing around a couple ideas :)
Many thanks for building this lib!
i just remembered that BGRA<->RGBA is done automatically on "modern" Windows, if IDXGIOutput5::DuplicateOutput1 is used with the requested image format.
i'd like to close this issue, as most shouldn't need to worry about this.
with microsoft deprecating more and more windows versions, i might not even go so far to disable the BGRA conversion, but rather allow the consumer to specify their own compatible format to let windows do the work (or non)