Skip to content

Commit

Permalink
[encode] Allow GPB set to off for HEVC encode
Browse files Browse the repository at this point in the history
Some CTS tests of android.videocodec.cts.VideoEncoderMaxBFrameTest#
testMaxBFrameSupport failed with "Number of BFrames in a SubGOP
exceeds maximum number of BFrames configured".

Cause is for HEVC encode, CO3->GPB is set to "on" by default, which
makes GPB frames are used instead of P frames. In CTS test, GPB
frames are considered B frames.

Solution is for HEVC encode, set CO3->GPB to "off" in mediasdk_c2
to use P frames not GPB frames. But in onevpl-intel-gpu, HEVC encode
caps did not enable "GPB off" before, change HEVC encode caps to
enable it.

Tracked-On: OAM-118626
Signed-off-by: Lina Sun <[email protected]>
  • Loading branch information
lsun30 committed May 31, 2024
1 parent eeadd67 commit 449fb04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class IDDIPacker
void HardcodeCapsCommon(EncodeCapsHevc& caps, const mfxVideoParam& par)
{
caps.SliceIPOnly = IsOn(par.mfx.LowPower);
caps.msdk.PSliceSupport = false;
caps.msdk.PSliceSupport = true;
}
};

Expand Down

0 comments on commit 449fb04

Please sign in to comment.