// UUCoreUtil.h: interface for the CUUCoreUtil class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_UUCORE_UTIL_H__F4AE942D_DACC_49A1_965B_EDD41B2455FE__INCLUDED_) #define AFX_UUCORE_UTIL_H__F4AE942D_DACC_49A1_965B_EDD41B2455FE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CUUCoreUtil { public: CUUCoreUtil(); virtual ~CUUCoreUtil(); BOOL GetVersion(ULONG pVersion[4]); BOOL OpenCodec(ULONG uCodec, BOOL bEncoder); BOOL CloseCodec(); BOOL SetParam(CodecProperty CodecProp); BOOL DecodeVideo(DecodedVideo* pDecodedBuf, int* pDecodedSize, BYTE* pEncodedBuf, int nEncodedSize, BOOL bDeinterlaced); BOOL EncodeAudio(BYTE* pEncodedBuf, int nEncodedBufSize, int* pEncodedSize, short* pPcmData); BOOL DecodeAudio(short* pDecodedBuf, int* pDecodedBufSize, int* pDecodedSize, BYTE* pEncodedBuf, int nEncodedSize); BOOL FlushBuffer(void); BOOL Deinterlace(DecodedVideo* pDecodedBuf, BOOL bDeinterlace); protected: IUucore* m_pUucore; HANDLE m_hCodec; HINSTANCE m_hLib; }; #endif // !defined(AFX_UUCORE_UTIL_H__F4AE942D_DACC_49A1_965B_EDD41B2455FE__INCLUDED_)