Skip to content

Commit

Permalink
[Decode] Add support for reference only txture
Browse files Browse the repository at this point in the history
need reference only texture support
  • Loading branch information
yawenyan authored and intel-mediadev committed Oct 13, 2023
1 parent 586b6c0 commit c3185c6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ MOS_STATUS DecodeDownSamplingFeature::Update(void *params)
m_scalingMode = procParams->m_scalingMode;
m_isReferenceOnlyPattern = procParams->m_isReferenceOnlyPattern;

if (m_isReferenceOnlyPattern)
{
m_enabled = false;
m_inputSurface = procParams->m_inputSurface;
return MOS_STATUS_SUCCESS;
}

DECODE_CHK_NULL(procParams->m_outputSurface);
m_outputSurface = *(procParams->m_outputSurface);
DECODE_CHK_STATUS(m_allocator->GetSurfaceInfo(&m_outputSurface));
Expand Down

0 comments on commit c3185c6

Please sign in to comment.