Removed D3D11 MY copy.
git-svn-id: svn://svn.code.sf.net/p/qsdecoder/code/trunk/IntelQuickSyncDecoder@93 dfccccb7-dd81-40b7-a334-5a7ba89c2b1d
This commit is contained in:
parent
c700e6b8a4
commit
266012b971
12
H264Nalu.h
12
H264Nalu.h
@ -51,12 +51,12 @@ enum NALU_TYPE
|
||||
NALU_TYPE_MAX_VALID = 12
|
||||
};
|
||||
|
||||
enum NALU_REF_IDC
|
||||
{
|
||||
NALU_PRIORITY_DISPOSABLE = 0,
|
||||
NALU_PRIORITY_LOW = 1,
|
||||
NALU_PRIORITY_HIGH = 2,
|
||||
NALU_PRIORITY_HIGHEST = 3
|
||||
enum NALU_REF_IDC
|
||||
{
|
||||
NALU_PRIORITY_DISPOSABLE = 0,
|
||||
NALU_PRIORITY_LOW = 1,
|
||||
NALU_PRIORITY_HIGH = 2,
|
||||
NALU_PRIORITY_HIGHEST = 3
|
||||
};
|
||||
|
||||
union H264_NAL
|
||||
|
@ -136,6 +136,7 @@ mfxStatus D3D11FrameAllocator::LockFrame(mfxMemId mid, mfxFrameData *ptr)
|
||||
return MFX_ERR_LOCK_MEMORY;
|
||||
}
|
||||
|
||||
#ifdef D3D11_PARALLEL_COPY
|
||||
// copy original frame to staging frame - CPU can't access original frame
|
||||
// parallel copy is a little faster
|
||||
D3D11_BOX box;
|
||||
@ -155,7 +156,10 @@ mfxStatus D3D11FrameAllocator::LockFrame(mfxMemId mid, mfxFrameData *ptr)
|
||||
tmp_box.bottom = (i == count) ? box.bottom : tmp_box.top + block;
|
||||
pDeviceContext->CopySubresourceRegion(sr.GetStaging(), 0, tmp_box.left, tmp_box.top, 0, sr.GetTexture(), sr.GetSubResource(), &tmp_box);
|
||||
});
|
||||
|
||||
#else
|
||||
// Single threaded copy
|
||||
m_pDeviceContext->CopySubresourceRegion(sr.GetStaging(), 0, 0, 0, 0, sr.GetTexture(), sr.GetSubResource(), NULL);
|
||||
#endif
|
||||
do
|
||||
{
|
||||
hRes = m_pDeviceContext->Map(sr.GetStaging(), 0, mapType, mapFlags, &lockedRect);
|
||||
|
Loading…
Reference in New Issue
Block a user