-
Notifications
You must be signed in to change notification settings - Fork 81
/
VmhdBox.h
39 lines (34 loc) · 1.23 KB
/
VmhdBox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "BaseBox.h"
#define VMHD_VERSION_SIZE 1
#define VMHD_FLAGS_SIZE 3
#define VMHD_GRAPHICSMODE_SIZE 4
#define VMHD_OPCOLOR_SIZE 4
/************************************************************************************************************
** vmhd
**
-------------------------------------------------------------------------------------------------------------
** 字段名称 | 长度(bytes) | 有关描述
-------------------------------------------------------------------------------------------------------------
** boxsize | 4 | box的长度
** boxtype | 4 | box的类型
** version | 1 | box版本0或1 一般为0 (以下字节数均按version=0)
** flags | 3 |
** graphics_mode | 4 | 视频合成模式,为0时拷贝原始图像,否则与opcolor进行合成
** opcolor | 2 ×3 | {red,green,blue}
************************************************************************************************************/
class VmhdBox : public BaseBox
{
public:
VmhdBox();
~VmhdBox();
virtual int ParseAttrs(byteptr &pData);
static BaseBox* CreateObject();
public:
int m_iVersion;
int m_iFlags;
int m_iGraphicsMode;
int m_iRed;
int m_iGreen;
int m_iBlue;
};