Commit 26eb3ebf authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55196 954022d7-b5bf-4e40-9824-e11837661b57
parent 57153b48
#ifndef _BUILD_BGRA_FRAME_
#define _BUILD_BGRA_FRAME_
#include <string>
#include "../cximage/CxImage/ximage.h"
class CBgraFrame
{
private:
int m_lWidth;
int m_lHeight;
int m_lStride;
BYTE* m_pData;
public:
CBgraFrame()
{
Clear();
}
~CBgraFrame()
{
Destroy();
}
private:
inline void Destroy()
{
if (NULL != m_pData)
delete []m_pData;
Clear();
}
inline void Clear()
{
m_lWidth = 0;
m_lHeight = 0;
m_lStride = 0;
m_pData = NULL;
}
public:
inline void ClearNoAttack()
{
Clear();
}
inline int get_Width()
{
return m_lWidth;
}
inline int get_Height()
{
return m_lHeight;
}
inline void put_Width(const int& lWidth)
{
m_lWidth = lWidth;
}
inline void put_Height(const int& lHeight)
{
m_lHeight = lHeight;
}
inline int get_Stride()
{
return m_lStride;
}
inline void put_Stride(const int& lStride)
{
m_lStride = lStride;
}
inline BYTE* get_Data()
{
return m_pData;
}
inline void put_Data(BYTE* pData)
{
m_pData = pData;
}
public:
bool OpenFile(const std::wstring& strFileName);
bool SaveFile(const std::wstring& strFileName, uint32_t nFileType);
private:
void CxImageToMediaFrame( CxImage& img );
};
#endif
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment