2,新增“Apps”; 3,新增“Common”; 4,新增“FileList”; 5,新增“MediaX”; 6,新增“OpenSource”; 7,新增“Samples”; 8,新增“SoftwareBusinessLines”.
37 lines
763 B
C
37 lines
763 B
C
#ifndef FRAMEDATA_H
|
||
#define FRAMEDATA_H
|
||
|
||
#include <cstring>
|
||
|
||
//帧数据
|
||
struct FrameData
|
||
{
|
||
static const int FRAME_SIZE = 1024;
|
||
int m_nFrameNo;
|
||
int m_nRealLength; //帧数据的实际长度, 一般为1024,不足1024时为实际的字节数
|
||
char m_data[FRAME_SIZE];
|
||
|
||
FrameData()
|
||
{
|
||
m_nFrameNo = 0;
|
||
m_nRealLength = 0;
|
||
memset(m_data, 0xFF, sizeof(m_data));//无效数据用FF填充
|
||
}
|
||
|
||
FrameData& operator=(const FrameData& other)
|
||
{
|
||
if (this == &other)
|
||
{
|
||
return *this;
|
||
}
|
||
|
||
m_nFrameNo = other.m_nFrameNo;
|
||
m_nRealLength = other.m_nRealLength;
|
||
memcpy(m_data, other.m_data, sizeof(m_data));
|
||
return *this;
|
||
}
|
||
|
||
};
|
||
|
||
#endif // FRAMEDATA_H
|