CPI_Player_CoDec.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:
VC书籍
开发平台:
Visual C++
- typedef struct _CPs_CoDecOptions
- {
- int m_iPretendOption;
- } CPs_CoDecOptions;
- typedef void* CP_HCODECMODULE;
- typedef void (*pfn_Uninitialise)(CP_HCODECMODULE hCoDec);
- //
- typedef BOOL (*pfn_OpenFile)(CP_HCODECMODULE hCoDec, const char* pcFilename, DWORD dwCookie, HWND hWndOwner);
- typedef void (*pfn_CloseFile)(CP_HCODECMODULE hCoDec);
- typedef void (*pfn_Seek)(CP_HCODECMODULE hCoDec, const int iNumerator, const int iDenominator);
- typedef void (*pfn_GetFileInfo)(CP_HCODECMODULE hCoDec, CPs_FileInfo* pInfo);
- //
- typedef BOOL (*pfn_GetPCMBlock)(CP_HCODECMODULE hCoDec, void* pBlock, DWORD* pdwBlockSize);
- typedef int (*pfn_GetCurrentPos_secs)(CP_HCODECMODULE hCoDec);
- //
- ///////////////////////////////////////////////////////////////////////////////
- typedef struct _CPs_CoDecModule
- {
- pfn_Uninitialise Uninitialise;
- pfn_OpenFile OpenFile;
- pfn_CloseFile CloseFile;
- pfn_Seek Seek;
- pfn_GetFileInfo GetFileInfo;
- pfn_GetPCMBlock GetPCMBlock;
- pfn_GetCurrentPos_secs GetCurrentPos_secs;
- void* m_pModuleCookie;
- void* m_pFileAssociationCookie;
- } CPs_CoDecModule;
- ////////////////////////////////////////////////////////////////////////////////
- void CPFA_InitialiseFileAssociations(CPs_CoDecModule* pCoDec);
- void CPFA_EmptyFileAssociations(CPs_CoDecModule* pCoDec);
- void CPFA_AddFileAssociation(CPs_CoDecModule* pCoDec, const char* pcExtension, DWORD dwCookie);
- BOOL CPFA_IsAssociated(CPs_CoDecModule* pCoDec, const char* pcExtension, DWORD* pdwCookie);
- void CPFA_AssociateWithEXE(CPs_CoDecModule* pCoDec);
- void CP_InitialiseCodec_MPEG(CPs_CoDecModule* pCoDec);
- void CP_InitialiseCodec_WAV(CPs_CoDecModule* pCoDec);
- //void CP_InitialiseCodec_OGG(CPs_CoDecModule* pCoDec);
- //void CP_InitialiseCodec_WinAmpPlugin(CPs_CoDecModule* pCoDec);