@@ -33,6 +33,7 @@ const DECODER_MAX_TIMEOUT_MULTIPLIER: f32 = 0.8;
3333pub struct ParsedStreamConfig {
3434 pub view_resolution : UVec2 ,
3535 pub refresh_rate_hint : f32 ,
36+ pub use_full_range : bool ,
3637 pub encoding_gamma : f32 ,
3738 pub enable_hdr : bool ,
3839 pub passthrough : Option < PassthroughMode > ,
@@ -50,6 +51,7 @@ impl ParsedStreamConfig {
5051 Self {
5152 view_resolution : config. negotiated_config . view_resolution ,
5253 refresh_rate_hint : config. negotiated_config . refresh_rate_hint ,
54+ use_full_range : config. negotiated_config . use_full_range ,
5355 encoding_gamma : config. negotiated_config . encoding_gamma ,
5456 enable_hdr : config. negotiated_config . enable_hdr ,
5557 passthrough : config. settings . video . passthrough . as_option ( ) . cloned ( ) ,
@@ -180,7 +182,7 @@ impl StreamContext {
180182 format,
181183 config. foveated_encoding_config . clone ( ) ,
182184 platform != Platform :: Lynx && !( ( platform. is_pico ( ) ) && config. enable_hdr ) ,
183- !config. enable_hdr ,
185+ config . use_full_range && !config. enable_hdr , // TODO: figure out why HDR doesn't need the limited range hackfix in staging?
184186 config. encoding_gamma ,
185187 config. passthrough . clone ( ) ,
186188 ) ;
0 commit comments