📄 hxdtcvt.h
字号:
*/
DEFINE_GUID(IID_IHXDataConvertResponse,
0x00003902, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXDataConvertResponse
DECLARE_INTERFACE_(IHXDataConvertResponse, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
/*
* IHXDataConvertResponse
*/
/*
* NOTE: for each of ConvertFileHeader, ConvertStreamHeader,
* ConvertData, you can call the appropriate done method on
* the response object with a result of HXR_OK and a NULL buffer
* and the system will use the original header/packet. Do this
* if you aren't going to change things in the header/packet.
*/
/************************************************************************
* Method: DataConvertInitDone
*
* Purpose:
* Async notification that the IHXDataConvert is done with
* intialization.
*/
STDMETHOD(DataConvertInitDone) (THIS_ HX_RESULT status) PURE;
/************************************************************************
* Method: ConvertedFileHeaderReady
*
* Purpose:
* Async notification that the IHXDataCovert is done converting the
* file header.
*/
STDMETHOD(ConvertedFileHeaderReady) (THIS_
HX_RESULT status, IHXValues* pFileHeader) PURE;
/************************************************************************
* Method: ConvertedStreamHeaderReady
*
* Purpose:
* Async notification that the IHXDataConvert is done converting the
* stream header.
*/
STDMETHOD(ConvertedStreamHeaderReady) (THIS_
HX_RESULT status, IHXValues* pStreamHeader) PURE;
/************************************************************************
* Method: ConvertedDataReady
*
* Purpose:
* Async notification that the IHXDataConvert is done converting
* the stream data packet.
*/
STDMETHOD(ConvertedDataReady) (THIS_ HX_RESULT status,
IHXPacket* pPacket) PURE;
/************************************************************************
* Method: SendControlBuffer
*
* Purpose:
* Provided to allow IHXDataConvert to send an arbitrary buffer
* to the IHXDataRevert on the other side (player).
*/
STDMETHOD(SendControlBuffer) (THIS_ IHXBuffer* pBuffer) PURE;
};
/****************************************************************************
*
* Interface:
*
* IHXDataRevert
*
* Purpose:
*
* Revert data coming from coresponding IHXDataConvert on server.
*
* Implemented by:
*
* Player side plugin.
*
* IID_IMADataRevert:
*
* {00003903-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IHXDataRevert,
0x00003903, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXDataRevert
DECLARE_INTERFACE_(IHXDataRevert, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
/*
* IHXDataRevert
*/
/************************************************************************
* Method: DataRevertInit
*
* Purpose:
* Basic inialization of IHXDataRevert. Mainly just to pass in
* response object.
*/
STDMETHOD(DataRevertInit) (THIS_ IHXDataRevertResponse* pResponse) PURE;
/************************************************************************
* Method: GetDataRevertInfo
*
* Purpose:
* Allow IHXDataRevert to notify player core about which data
* conversion mime types it is willing to handle.
*/
STDMETHOD(GetDataRevertInfo) (THIS_ REF(const char**)
ppConversionMimeTypes) PURE;
/************************************************************************
* Method: RevertFileHeader
*
* Purpose:
* Pass in converted FileHeader to allow IHXDataRevert to revert
* the header.
*/
STDMETHOD(RevertFileHeader) (THIS_ IHXValues* pFileHeader) PURE;
/************************************************************************
* Method: RevertStreamHeader
*
* Purpose:
* Pass in converted StreamHeader to allow IHXDataRevert to revert
* the header.
*/
STDMETHOD(RevertStreamHeader)(THIS_ IHXValues* pStreamHeader) PURE;
/************************************************************************
* Method: RevertData
*
* Purpose:
* Pass in converted stream data to allow IHXDataRevert to
* revert the data.
*/
STDMETHOD(RevertData) (THIS_ IHXPacket* pPacket) PURE;
/************************************************************************
* Method: ControlBufferReady
*
* Purpose:
* Pass in control channel buffer received from corresponding
* IHXDataConvert on server side.
*/
STDMETHOD(ControlBufferReady) (THIS_ IHXBuffer* pBuffer) PURE;
};
/****************************************************************************
*
* Interface:
*
* IHXDataRevertResponse
*
* Purpose:
*
* Response ojbect for IHXDataRevert.
*
* Implemented by:
*
* Player core.
*
* IID_IMADataRevertResponse:
*
* {00003904-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IHXDataRevertResponse,
0x00003904, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#undef INTERFACE
#define INTERFACE IHXDataRevertResponse
DECLARE_INTERFACE_(IHXDataRevertResponse, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
STDMETHOD_(ULONG32,Release) (THIS) PURE;
/*
* IHXDataRevertResponse
*/
/************************************************************************
* Method: DataRevertInitDone
*
* Purpose:
* Async notification that the IHXDataRevert is done intializing
* and can begin processing headers.
*/
STDMETHOD(DataRevertInitDone) (THIS_ HX_RESULT status) PURE;
/************************************************************************
* Method: RevertedFileHeaderReady
*
* Purpose:
* Async notification that the IHXDataRevert is done reverting the
* file headers.
*/
STDMETHOD(RevertedFileHeaderReady) (THIS_
HX_RESULT status, IHXValues* pHeader) PURE;
/************************************************************************
* Method: RevertedStreamHeaderReady
*
* Purpose:
* Async notification that the IHXDataRevert is done reverting the
* stream headers.
*/
STDMETHOD(RevertedStreamHeaderReady) (THIS_
HX_RESULT status, IHXValues* pHeader) PURE;
/************************************************************************
* Method: RevertedDataReady
*
* Purpose:
* Async notification that the IHXDataRevert is done reverting the
* stream data.
*/
STDMETHOD(RevertedDataReady) (THIS_ HX_RESULT status,
IHXPacket* pPacket) PURE;
/************************************************************************
* Method: SendControlBuffer
*
* Purpose:
* Provided to allow IHXDataRevert to send an arbitrary control
* buffer to the IHXDataConvert on the other side (server).
*/
STDMETHOD(SendControlBuffer) (THIS_ IHXBuffer* pBuffer) PURE;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -