Skip to content

Commit 3b8a19f

Browse files
author
ertkaidyn-ai
committed
fix(amf): enable profile and coder selection for H.264
1 parent d033346 commit 3b8a19f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/video.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,9 +812,17 @@ namespace video {
812812
{"rc"s, &config::video.amd.amd_rc_h264},
813813
{"usage"s, &config::video.amd.amd_usage_h264},
814814
{"vbaq"s, &config::video.amd.amd_vbaq},
815+
{"coder"s, &config::video.amd.amd_coder},
815816
{"enforce_hrd"s, &config::video.amd.amd_enforce_hrd},
816817
},
817-
{}, // SDR-specific options
818+
{
819+
// SDR-specific options
820+
{"profile"s, [](const config_t &cfg) {
821+
if (cfg.profile == 66) return "baseline"s;
822+
if (cfg.profile == 77) return "main"s;
823+
return "high"s;
824+
}},
825+
},
818826
{}, // HDR-specific options
819827
{}, // YUV444 SDR-specific options
820828
{}, // YUV444 HDR-specific options

0 commit comments

Comments
 (0)