CPI_Player_CoDec.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
- 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);