forked from latelee/YUVPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
YuvTransform.h
61 lines (50 loc) · 1.45 KB
/
YuvTransform.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include "afxwin.h"
// CYuvTransform dialog
class CYuvTransform : public CDialogEx
{
DECLARE_DYNAMIC(CYuvTransform)
public:
CYuvTransform(CWnd* pParent = NULL); // standard constructor
virtual ~CYuvTransform();
// Dialog Data
enum { IDD = IDD_DIALOG_TRANSFORM };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
private:
int m_nYuvFormat;
int m_nOutputFormat;
char* m_pbYuvData; // YUV数据
char* m_pbOutputData; // RGB数据
UINT m_nYuvSize; // 一幅图像大小
UINT m_nOutputSize; // BMP图的大小
INT m_nTotalFrame;
INT m_nCurrentFrame;
CFile m_cFile;
CFile m_cOutputFile;
CString m_strOutputFile;
CString m_strFileTittle;
CString m_strFileExtern;
public:
void ParseFilename(const char* pFilename);
INT Open(wchar_t* pFile);
BOOL IsOpen();
INT Malloc();
void Read(INT nCurrentFrame);
INT Transform();
INT Write(INT nCurrentFrame = -1);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedBOpen();
afx_msg void OnBnClickedBCombine();
afx_msg void OnBnClickedBSplit();
afx_msg void OnBnClickedBTransform();
CString m_strPathName;
afx_msg void OnDropFiles(HDROP hDropInfo);
UINT m_nWidth;
UINT m_nHeight;
CComboBox m_cbInput;
CComboBox m_cbOutput;
afx_msg void OnBnClickedOk();
CStatic m_csInfo;
};