-
Notifications
You must be signed in to change notification settings - Fork 116
/
SpecialVH264Dlg.h
71 lines (65 loc) · 1.65 KB
/
SpecialVH264Dlg.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
62
63
64
65
66
67
68
69
70
71
/*
* H.264 分析器
* H.264 Analysis
*
* 雷霄骅 Lei Xiaohua
* leixiaohua1020@126.com
* 中国传媒大学/数字电视技术
* Communication University of China / Digital TV Technology
* http://blog.csdn.net/leixiaohua1020
*
* H.264码流分析工具
* H.264 Stream Analysis Tools
*
*/
#pragma once
#include "resource.h"
#include "stdafx.h"
#include "NALParse.h"
#include "h264_analyze.h"
#include <vector>
using std::vector;
// CSpecialVH264Dlg 对话框
class CSpecialVH264Dlg : public CDialogEx
{
// 构造
public:
CSpecialVH264Dlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_SPECIAL_V_H264 };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CMFCEditBrowseCtrl m_vh264inputurl;
CListCtrl m_vh264nallist;
CButton m_vh264nallistmaxnum;
afx_msg void OnBnClickedVH264InputurlOpen();
void OnCustomdrawMyList ( NMHDR* pNMHDR, LRESULT* pResult );
int nl_index;
int AppendNLInfo(int nal_reference_idc,int nal_unit_type,int len,int data_lenth,int data_offset);
char fileurl[MAX_URL_LENGTH];
void SystemClear();
afx_msg void OnBnClickedVH264About();
CEdit m_vh264nalinfo;
//一条Packet记录
typedef struct NALInfo{
int data_offset;
int data_lenth;
}NALInfo;
vector<NALInfo> nl_infovector;
//-----
afx_msg void OnDropFiles(HDROP hDropInfo);
CString text;
CComboBox m_vh264lang;
afx_msg void OnSelchangeVH264Lang();
afx_msg void OnItemchangedVH264Nallist(NMHDR *pNMHDR, LRESULT *pResult);
};