📄 video demodoc.h
字号:
// Video DemoDoc.h : interface of the CVideoDemoDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_VIDEODEMODOC_H__1DBD75F8_9440_4D7A_95AB_8BB9421E7245__INCLUDED_)
#define AFX_VIDEODEMODOC_H__1DBD75F8_9440_4D7A_95AB_8BB9421E7245__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DataManager.h"
class CVideoDemoDoc : public CDocument
{
protected: // create from serialization only
CVideoDemoDoc();
DECLARE_DYNCREATE(CVideoDemoDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVideoDemoDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CVideoDemoDoc();
public:
unsigned char * data; // 图像数据
int imgWidth; // 图像宽度
int imgHeight; // 图像高度
int bytesPerPixel; // 带宽
int format; // 输出格式
ImageData *id; // 完整图像shuju
bool image; // 静态图像数据
VideoData *ms; // 视频数据源,视频数据源
bool video; // 是否包含视频数据
// Generated message map functions
public:
void SetData(unsigned char* data,int imgWidth,int imgHeight,int bytePerPixel,int format); // 设置图像
void SetData(ImageData * id); // 完整的图像数据结构
void SetVideoSource(VideoData *ms); // 设置图像数据源
void RefreshView(); // 刷新全部视图
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CVideoDemoDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIDEODEMODOC_H__1DBD75F8_9440_4D7A_95AB_8BB9421E7245__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -