MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / SetProperties

Method SetProperties

common/baseclasses/winutil.cpp:1502–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1500// boundaries NOTE the buffers are not allocated until the Commit call
1501
1502STDMETHODIMP CImageAllocator::SetProperties(__in ALLOCATOR_PROPERTIES *pRequest, __out ALLOCATOR_PROPERTIES *pActual)
1503{
1504 ALLOCATOR_PROPERTIES Adjusted = *pRequest;
1505
1506 // Check the parameters fit with the current connection
1507
1508 HRESULT hr = CheckSizes(&Adjusted);
1509 if (FAILED(hr))
1510 {
1511 return hr;
1512 }
1513 return CBaseAllocator::SetProperties(&Adjusted, pActual);
1514}
1515
1516// Commit the memory by allocating the agreed number of media samples. For
1517// each sample we are committed to creating we have a CImageSample object

Callers 5

DecideBufferSizeMethod · 0.45
CopyMethod · 0.45
NotifyAllocatorMethod · 0.45
DecryptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected