Skip to content

Commit

Permalink
[Encode] Add Y210 support for VDENC_REF_SURFACE_STATE and refine ENCO…
Browse files Browse the repository at this point in the history
…DE_CHK_COND_RETURN for message printing

Add Y210 support for VDENC_REF_SURFACE_STATE.
Refine ENCODE_CHK_COND_RETURN to take variable arguments for message printing.
  • Loading branch information
walter-bai authored and intel-mediadev committed Dec 6, 2023
1 parent a9f2724 commit bcae92f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ MHW_SETPAR_DECL_SRC(VDENC_REF_SURFACE_STATE, Av1BasicFeature)
params.uOffset = m_rawSurfaceToPak->dwHeight;
params.vOffset = m_rawSurfaceToPak->dwHeight << 1;
}
else if (m_reconSurface.Format == Format_Y216 || m_reconSurface.Format == Format_YUY2 || m_reconSurface.Format == Format_YUYV)
else if (m_reconSurface.Format == Format_Y216 || m_reconSurface.Format == Format_Y210 || m_reconSurface.Format == Format_YUY2)
{
params.uOffset = m_rawSurfaceToPak->dwHeight;
params.vOffset = m_rawSurfaceToPak->dwHeight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ enum HuCFunction
#define ENCODE_CHK_STATUS_NO_STATUS_RETURN(_stmt) \
MOS_CHK_STATUS_NO_STATUS_RETURN(MOS_COMPONENT_CODEC, MOS_CODEC_SUBCOMP_ENCODE, _stmt)

#define ENCODE_CHK_COND_RETURN(_stmt, _message) \
MOS_CHK_COND_RETURN(MOS_COMPONENT_CODEC, MOS_CODEC_SUBCOMP_ENCODE, _stmt, _message)
#define ENCODE_CHK_COND_RETURN(_stmt, _message, ...) \
MOS_CHK_COND_RETURN(MOS_COMPONENT_CODEC, MOS_CODEC_SUBCOMP_ENCODE, _stmt, _message, ##__VA_ARGS__)

#define ENCODE_CHK_STATUS_MESSAGE_RETURN(_stmt, _message, ...) \
MOS_CHK_STATUS_MESSAGE_RETURN(MOS_COMPONENT_CODEC, MOS_CODEC_SUBCOMP_ENCODE, _stmt, _message, ##__VA_ARGS__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ inline SurfaceFormat MosFormatToVdencSurfaceReconFormat(MOS_FORMAT format)
return SurfaceFormat::p010Variant;
case Format_R10G10B10A2:
return SurfaceFormat::r10g10b10a2;
case Format_Y210:
case Format_Y216:
return SurfaceFormat::y216Variant;
case Format_Y410:
Expand Down

0 comments on commit bcae92f

Please sign in to comment.