IEncoderNodeFactory

Capture Manager SDK

IEncoderNodeFactory

IEncoderNodeFactory – it creates node of the selected encoder by the next methods:

HRESULT STDMETHODCALLTYPE createCompressedMediaType( IUnknown *aPtrUncompressedMediaType, REFGUID aRefEncodingModeGUID, DWORD aEncodingModeValue, DWORD aIndexCompressedMediaType, IUnknown **aPtrPtrCompressedMediaType) - create encoder output media type, where aPtrUncompressedMediaType is a pointer on uncompressed media type, aRefEncodingModeGUID is IID of encoding mode (CBR, VBR), aEncodingModeValue is quality of encoding, aIndexCompressedMediaType is an index of compressed media type from the list of the supported compressed media types, aPtrPtrCompressedMediaType is a pointer on created object;
HRESULT STDMETHODCALLTYPE createEncoderNode( IUnknown *aPtrUncompressedMediaType, REFGUID aRefEncodingModeGUID, DWORD aEncodingModeValue, DWORD aIndexCompressedMediaType, IUnknown *aPtrDownStreamNode, IUnknown **aPtrPtrEncoderNode) - create encoder node, where aPtrUncompressedMediaType is a pointer on uncompressed media type, aRefEncodingModeGUID is IID of encoding mode (CBR, VBR), aEncodingModeValue is quality of encoding, aIndexCompressedMediaType is an index of compressed media type from the list of the supported compressed media types, aPtrDownStreamNode is a pointer on connected topology node, aPtrPtrEncoderNode is a pointer on created object.