Combine the separate HDR and SDR capture formats

Since we support multi-encoding from a single display context, we have
to ensure our capture format allows for HDR color even if the initial
encoding session is SDR.
This commit is contained in:
Cameron Gutman 2023-04-04 22:19:02 -05:00
commit f04d5e12de
4 changed files with 6 additions and 23 deletions

View file

@ -358,16 +358,10 @@ namespace platf::dxgi {
}
std::vector<DXGI_FORMAT>
display_ram_t::get_supported_sdr_capture_formats() {
display_ram_t::get_supported_capture_formats() {
return { DXGI_FORMAT_B8G8R8A8_UNORM };
}
std::vector<DXGI_FORMAT>
display_ram_t::get_supported_hdr_capture_formats() {
// HDR is unsupported
return {};
}
int
display_ram_t::init(const ::video::config_t &config, const std::string &display_name) {
if (display_base_t::init(config, display_name)) {