Skip to content

Commit

Permalink
Assign to vpx segment par
Browse files Browse the repository at this point in the history
Signed-off-by: Yao, Leyu <[email protected]>
  • Loading branch information
leyu-yao committed Aug 16, 2023
1 parent e39ed6b commit d059fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ VAStatus DdiEncodeVp9::ContextInitialize(CodechalSetting *codecHalSettings)
// Allocate segment params
m_segParams = (CODEC_VP9_ENCODE_SEGMENT_PARAMS *)MOS_AllocAndZeroMemory(sizeof(CODEC_VP9_ENCODE_SEGMENT_PARAMS) * 8);
DDI_CHK_NULL(m_segParams, "nullptr m_segParams.", VA_STATUS_ERROR_ALLOCATION_FAILED);
m_encodeCtx->pVpxSegParams = (void*)m_segParams;

// Allocate coded buffer status
m_codedBufStatus = (VACodedBufferVP9Status *)MOS_AllocAndZeroMemory(DDI_ENCODE_MAX_STATUS_REPORT_BUFFER * sizeof(VACodedBufferVP9Status));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ VAStatus DdiEncodeVp9::ContextInitialize(CodechalSetting *codecHalSettings)
// Allocate segment params
m_segParams = (CODEC_VP9_ENCODE_SEGMENT_PARAMS *)MOS_AllocAndZeroMemory(sizeof(CODEC_VP9_ENCODE_SEGMENT_PARAMS) * 8);
DDI_CODEC_CHK_NULL(m_segParams, "nullptr m_segParams.", VA_STATUS_ERROR_ALLOCATION_FAILED);
m_encodeCtx->pVpxSegParams = (void*)m_segParams;

// Allocate coded buffer status
m_codedBufStatus = (VACodedBufferVP9Status *)MOS_AllocAndZeroMemory(DDI_ENCODE_MAX_STATUS_REPORT_BUFFER * sizeof(VACodedBufferVP9Status));
Expand Down

0 comments on commit d059fdf

Please sign in to comment.