Skip to content

Commit

Permalink
Make encoder support identical size ranges for width and height
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lsun30 committed Jan 17, 2025
1 parent f9d219a commit 703d8d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions c2_components/src/mfx_c2_encoder_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 703d8d4

Please sign in to comment.