fix(config): Add missing framerateX100 fields at the initializers for the video::config_t literals (#4391)
fix(config): Add missing frameX100 fields at the initializers for the video::config_t literals.
This commit is contained in:
parent
f8bda88060
commit
8836db5dbd
1 changed files with 4 additions and 4 deletions
|
|
@ -2467,8 +2467,8 @@ namespace video {
|
||||||
encoder.av1.capabilities.set();
|
encoder.av1.capabilities.set();
|
||||||
|
|
||||||
// First, test encoder viability
|
// First, test encoder viability
|
||||||
config_t config_max_ref_frames {1920, 1080, 60, 1000, 1, 1, 1, 0, 0, 0};
|
config_t config_max_ref_frames {1920, 1080, 60, 6000, 1000, 1, 1, 1, 0, 0, 0};
|
||||||
config_t config_autoselect {1920, 1080, 60, 1000, 1, 0, 1, 0, 0, 0};
|
config_t config_autoselect {1920, 1080, 60, 6000, 1000, 1, 0, 1, 0, 0, 0};
|
||||||
|
|
||||||
// If the encoder isn't supported at all (not even H.264), bail early
|
// If the encoder isn't supported at all (not even H.264), bail early
|
||||||
reset_display(disp, encoder.platform_formats->dev_type, output_name, config_autoselect);
|
reset_display(disp, encoder.platform_formats->dev_type, output_name, config_autoselect);
|
||||||
|
|
@ -2563,14 +2563,14 @@ namespace video {
|
||||||
{
|
{
|
||||||
// H.264 is special because encoders may support YUV 4:4:4 without supporting 10-bit color depth
|
// H.264 is special because encoders may support YUV 4:4:4 without supporting 10-bit color depth
|
||||||
if (encoder.flags & YUV444_SUPPORT) {
|
if (encoder.flags & YUV444_SUPPORT) {
|
||||||
config_t config_h264_yuv444 {1920, 1080, 60, 1000, 1, 0, 1, 0, 0, 1};
|
config_t config_h264_yuv444 {1920, 1080, 60, 6000, 1000, 1, 0, 1, 0, 0, 1};
|
||||||
encoder.h264[encoder_t::YUV444] = disp->is_codec_supported(encoder.h264.name, config_h264_yuv444) &&
|
encoder.h264[encoder_t::YUV444] = disp->is_codec_supported(encoder.h264.name, config_h264_yuv444) &&
|
||||||
validate_config(disp, encoder, config_h264_yuv444) >= 0;
|
validate_config(disp, encoder, config_h264_yuv444) >= 0;
|
||||||
} else {
|
} else {
|
||||||
encoder.h264[encoder_t::YUV444] = false;
|
encoder.h264[encoder_t::YUV444] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const config_t generic_hdr_config = {1920, 1080, 60, 1000, 1, 0, 3, 1, 1, 0};
|
const config_t generic_hdr_config = {1920, 1080, 60, 6000, 1000, 1, 0, 3, 1, 1, 0};
|
||||||
|
|
||||||
// Reset the display since we're switching from SDR to HDR
|
// Reset the display since we're switching from SDR to HDR
|
||||||
reset_display(disp, encoder.platform_formats->dev_type, output_name, generic_hdr_config);
|
reset_display(disp, encoder.platform_formats->dev_type, output_name, generic_hdr_config);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue