Microsoft DirectX 8.0 |
Provides methods that support smart recompression in Microsoft® DirectShow® Editing Services (DES). The smart render engine exposes this interface. For more information on using ISmartRenderEngine, see Rendering a Project.
Requirements
Requires Qedit.h.
Methods in Vtable Order
IUnknown methods Description QueryInterface Retrieves pointers to supported interfaces. AddRef Increments the reference count. Release Decrements the reference count. ISmartRenderEngine Methods Description SetGroupCompressor Specifies a compression filter to use when rendering the specified group. GetGroupCompressor Retrieves the compression filter for the specified group. SetFindCompressorCB Not implemented.
Retrieves the compression filter for the specified group.
Syntax
HRESULT GetGroupCompressor( long Group, IBaseFilter **pCompressor );
Parameters
- Group
- Zero-based index of the group.
- pCompressor
- Address of a pointer to receive the IBaseFilter interface of the compression filter. It receives the value NULL if there is no compression filter.
Return Value
Returns one of the following values.
E_INVALIDARG Invalid argument. E_POINTER NULL pointer error. S_OK Success.
Remarks
Use this method to set properties on the compression filter, such as the key-frame rate. Call this method after calling IRenderEngine::ConnectFrontEnd, but before rendering the project. Then query the compression filter's output pin for the IAMVideoCompression interface, which contains methods for setting compression parameters. Release the interface when you are done. If you make any subsequent changes to the timeline, call ConnectFrontEnd, and then call GetGroupCompressor again to reset the compression parameters.
On return, if the value of *pCompressor is non-NULL, the IBaseFilter interface has an outstanding reference count. Be sure to release the interface when you are done using it.
Not implemented.
Syntax
HRESULT SetFindCompressorCB( IFindCompressorCB *pCallback );
Specifies a compression filter to use when rendering the specified group.
Syntax
HRESULT SetGroupCompressor( long Group, IBaseFilter *pCompressor );
Parameters
- Group
- Zero-based index of the group.
- pCompressor
- Pointer to the IBaseFilter interface of the compression filter.
Return Value
Returns S_OK if successful. Otherwise, returns E_INVALIDARG.