From 703d8d4684fb5b08aea773667bcb013e664dc50c Mon Sep 17 00:00:00 2001 From: Lina Sun Date: Fri, 17 Jan 2025 03:26:37 +0000 Subject: [PATCH] Make encoder support identical size ranges for width and height Some tests of testResolutionSupport in CtsMediaV2TestCases failed because encoder does not support identical size ranges, make encoder supported height range and width range identical. Tracked-On: OAM-129545 Signed-off-by: Lina Sun --- c2_components/src/mfx_c2_encoder_component.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c2_components/src/mfx_c2_encoder_component.cpp b/c2_components/src/mfx_c2_encoder_component.cpp index 5278935f..7b681aa6 100755 --- a/c2_components/src/mfx_c2_encoder_component.cpp +++ b/c2_components/src/mfx_c2_encoder_component.cpp @@ -562,28 +562,28 @@ void MfxC2EncoderComponent::getMaxMinResolutionSupported( switch(m_encoderType) { case ENCODER_AV1: { *min_w = 176; - *min_h = 144; + *min_h = 176; *max_w = 4096; *max_h = 4096; break; } case ENCODER_H264: { *min_w = 128; - *min_h = 96; + *min_h = 128; *max_w = 4096; *max_h = 4096; break; } case ENCODER_H265: { *min_w = 176; - *min_h = 144; + *min_h = 176; *max_w = 8192; *max_h = 8192; break; } case ENCODER_VP9: { *min_w = 128; - *min_h = 96; + *min_h = 128; *max_w = 8192; *max_h = 8192; break;