qcap: Added AVICompressorOut_DecideBufferSize implementation.

This commit is contained in:
Jacek Caban 2013-12-30 20:22:17 +01:00 committed by Alexandre Julliard
parent 6b30b6fb4e
commit 0414557ef7

View file

@ -547,8 +547,19 @@ static const BasePinFuncTable AVICompressorOutputBasePinVtbl = {
static HRESULT WINAPI AVICompressorOut_DecideBufferSize(BaseOutputPin *base, IMemAllocator *alloc, ALLOCATOR_PROPERTIES *ppropInputRequest)
{
FIXME("\n");
return E_NOTIMPL;
AVICompressor *This = impl_from_BasePin(&base->pin);
ALLOCATOR_PROPERTIES actual;
TRACE("(%p)\n", This);
if (!ppropInputRequest->cBuffers)
ppropInputRequest->cBuffers = 1;
if (ppropInputRequest->cbBuffer < This->videoinfo->bmiHeader.biSizeImage)
ppropInputRequest->cbBuffer = This->videoinfo->bmiHeader.biSizeImage;
if (!ppropInputRequest->cbAlign)
ppropInputRequest->cbAlign = 1;
return IMemAllocator_SetProperties(alloc, ppropInputRequest, &actual);
}
static HRESULT WINAPI AVICompressorOut_DecideAllocator(BaseOutputPin *base,