📄 hxrendr.h
字号:
ULONG32 ulFlags,
UINT16 unPercentComplete) PURE;
/************************************************************************
* Method:
* IHXRenderer::GetDisplayType
* Purpose:
* Called by client engine to ask the renderer for it's preferred
* display type. When layout information is not present, the
* renderer will be asked for it's prefered display type. Depending
* on the display type a buffer of additional information may be
* needed. This buffer could contain information about preferred
* window size.
*
*/
STDMETHOD(GetDisplayType) (THIS_
REF(HX_DISPLAY_TYPE) ulFlags,
REF(IHXBuffer*) pBuffer) PURE;
/************************************************************************
* Method:
* IHXRenderer::OnEndofPackets
* Purpose:
* Called by client engine to inform the renderer that all the
* packets have been delivered. However, if the user seeks before
* EndStream() is called, renderer may start getting packets again
* and the client engine will eventually call this function again.
*/
STDMETHOD(OnEndofPackets) (THIS) PURE;
};
// $Private:
/****************************************************************************
*
* Interface:
*
* IHXPersistentRenderer
*
* Purpose:
*
* Interface exposed by a persistent renderer such as RAM and SMIL
*
* IID_IHXPersistentRenderer:
*
* {00000301-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IHXPersistentRenderer, 0x00000301, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXPersistentRenderer
DECLARE_INTERFACE_(IHXPersistentRenderer, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
/*
* IHXPersistentRenderer methods
*/
/************************************************************************
* Method:
* IHXPersistentRenderer::InitPersistent
* Purpose:
* Initialize the persistent renderer
*/
STDMETHOD(InitPersistent) (THIS_
UINT32 ulPersistentComponentID,
UINT16 uPersistentGroupID,
UINT16 uPersistentTrackID,
IHXPersistentRenderer* pPersistentParent) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::GetPersistentID
* Purpose:
* Get persistent component ID
*/
STDMETHOD(GetPersistentID) (THIS_
REF(UINT32) ulPersistentComponentID) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::GetPersistentProperties
* Purpose:
* get properties of the persistent renderer such as the type and version#
*/
STDMETHOD(GetPersistentProperties) (THIS_
REF(IHXValues*) pProperties) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::GetElementProperties
* Purpose:
* get properties of the element(track) spawned by this persistent renderer
*/
STDMETHOD(GetElementProperties) (THIS_
UINT16 uGroupID,
UINT16 uTrackID,
REF(IHXValues*) pProperties) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::AttachElementLayout
* Purpose:
* attach the site created in its persitent parent as the root layout
*/
STDMETHOD(AttachElementLayout) (THIS_
UINT16 uGroupID,
UINT16 uTrackID,
IHXRenderer* pRenderer,
IHXStream* pStream,
IHXValues* pProps) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::DetachElementLayout
* Purpose:
* Detach the root layout created by its persistent parent
*/
STDMETHOD(DetachElementLayout) (THIS_
IUnknown* pLSG) PURE;
/************************************************************************
* Method:
* IHXPersistentRenderer::GetElementShowStatus
* Purpose:
* get element's status(such as its layout's show property)
* at current time
*/
STDMETHOD(GetElementStatus) (THIS_
UINT16 uGroupID,
UINT16 uTrackID,
UINT32 ulCurrentTime,
REF(IHXValues*) pStatus) PURE;
};
// $EndPrivate.
// $Private:
/****************************************************************************
*
* Interface:
*
* IHXMediaPushdown
*
* Purpose:
*
* Al's weird hack interface
*
* IHXMediaPushdown:
*
* {00000302-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IHXMediaPushdown, 0x00000302, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXMediaPushdown
DECLARE_INTERFACE_(IHXMediaPushdown, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
/*
* IHXMediaPushdown methods
*/
/************************************************************************
* Method:
* IHXMediaPushdown::GetCurrentPushdown
* Purpose:
* Retrieves the current queue depth ("pushdown depth") in milliseconds
*
* Notes:
* This is the *decoded* pushdown, not the undecoded pushdown. Returns
* HXR_TIMELINE_SUSPENDED if the stream is paused; HXR_FAIL
* if the stream is finished, HXR_OK otherwise.
*/
STDMETHOD (GetCurrentPushdown) (THIS_ /*OUT*/
REF(UINT32) ulPushdownMS,
REF(UINT32) ulNumFrames) PURE;
/************************************************************************
* Method:
* IHXMediaPushdown::IsG2Video
* Purpose:
*/
STDMETHOD_(BOOL, IsG2Video) (THIS) PURE;
};
// $EndPrivate.
/****************************************************************************
*
* Interface:
*
* IHXUntimedRenderer
*
* Purpose:
*
* Interface exposed by a renderer capable of running faster than real time
*
* IID_IHXUntimedRenderer:
*
* {00000303-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IHXUntimedRenderer, 0x00000303, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXUntimedRenderer
DECLARE_INTERFACE_(IHXUntimedRenderer, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
STDMETHOD_(BOOL,IsUntimedRendering)(THIS) PURE;
STDMETHOD_(HX_RESULT,SetUntimedRendering)(THIS_ BOOL) PURE;
};
#endif /* _HXRENDR_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -