Skip to content

Commit

Permalink
[Decode] VVC picture struct set
Browse files Browse the repository at this point in the history
Set picture struct in VVC for progressive/unsupported
  • Loading branch information
jingyansc authored and gfxVPLsdm committed Sep 11, 2024
1 parent 3966142 commit 6291cf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _studio/mfx_lib/decode/vvc/src/mfx_vvc_dec_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ void VideoDECODEVVC::FillOutputSurface(mfxFrameSurface1** surf_out, mfxFrameSurf
surface_out->Info.FrameRateExtD = isShouldUpdate ? m_videoPar.mfx.FrameInfo.FrameRateExtD : m_firstPar.mfx.FrameInfo.FrameRateExtD;
surface_out->Info.FrameRateExtN = isShouldUpdate ? m_videoPar.mfx.FrameInfo.FrameRateExtN : m_firstPar.mfx.FrameInfo.FrameRateExtN;

surface_out->Info.PicStruct = m_videoPar.mfx.ExtendedPicStruct;
// field currently not support, return unknown
surface_out->Info.PicStruct = (m_videoPar.mfx.FrameInfo.PicStruct == MFX_PICSTRUCT_PROGRESSIVE) ? m_videoPar.mfx.FrameInfo.PicStruct: MFX_PICSTRUCT_UNKNOWN;

surface_out->Data.TimeStamp = GetMfxTimeStamp(pFrame->m_dFrameTime);

Expand Down

0 comments on commit 6291cf2

Please sign in to comment.