mediafoundation: remove unneeded memset (~34KB for hevc)
Reviewed-by: Yubo Xie <yuboxie@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38857>
This commit is contained in:
committed by
Marge Bot
parent
c0039ce657
commit
23516579a8
@@ -481,7 +481,7 @@ CDX12EncHMFT::PrepareForEncode( IMFSample *pSample, LPDX12EncodeContext *ppDX12E
|
||||
}
|
||||
}
|
||||
|
||||
pDX12EncodeContext->encoderPicInfo = {};
|
||||
// pDX12EncodeContext->encoderPicInfo is initialized to zero in DX12EncodeContext constructor already
|
||||
pDX12EncodeContext->encoderPicInfo.base.profile = m_outputPipeProfile;
|
||||
|
||||
// Encode region of interest
|
||||
|
||||
@@ -2500,7 +2500,6 @@ CDX12EncHMFT::ProcessInput( DWORD dwInputStreamIndex, IMFSample *pSample, DWORD
|
||||
{
|
||||
HMFT_ETW_EVENT_START( "ProcessInput", this );
|
||||
HRESULT hr = S_OK;
|
||||
UINT32 unChromaOnly = 0;
|
||||
LPDX12EncodeContext pDX12EncodeContext = nullptr;
|
||||
BYTE *qpData = nullptr;
|
||||
DWORD qpSize = 0;
|
||||
@@ -2535,8 +2534,6 @@ CDX12EncHMFT::ProcessInput( DWORD dwInputStreamIndex, IMFSample *pSample, DWORD
|
||||
//
|
||||
m_bEncodingStarted = TRUE;
|
||||
|
||||
(void) pSample->GetUINT32( MFSampleExtension_ChromaOnly, &unChromaOnly );
|
||||
|
||||
// setup the source buffer
|
||||
CHECKHR_GOTO( PrepareForEncode( pSample, &pDX12EncodeContext ), done );
|
||||
if( SUCCEEDED( GetQPMapBufferFromSampleLockHeld( pSample, &qpData, &qpSize, qpMapBuffer ) ) && qpMapBuffer )
|
||||
|
||||
Reference in New Issue
Block a user