⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listcodecpropsdlg.h

📁 ListCodecProps 这是一个基于对话框的MFC程序
💻 H
字号:
// ListCodecPropsDlg.h : header file
//

#if !defined(AFX_LISTCODECPROPSDLG_H__A7C06BCD_1DAB_4001_9826_47861B6C0D28__INCLUDED_)
#define AFX_LISTCODECPROPSDLG_H__A7C06BCD_1DAB_4001_9826_47861B6C0D28__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CListCodecPropsDlg dialog

// Codec type
const DWORD AudioCodecMask = 0x10000000;
const DWORD VideoCodecMask = 0x20000000;
const DWORD CodecIndexMask = 0x0000FFFF;

// Codec properties
const DWORD CodecIsVBRMask  = 0x01000000;
const DWORD CodecPassesMask = 0x00FF0000;
const DWORD FormatIndexMask = 0x0000FFFF;

class CListCodecPropsDlg : public CDialog
{
// Construction
public:
	CListCodecPropsDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CListCodecPropsDlg)
	enum { IDD = IDD_LISTCODECPROPS_DIALOG };
	CEdit	mEditFormatBufferWindow;
	CEdit	mEditFormatBitrate;
	CEdit	mEditCodecVBRSupported;
	CEdit	mEditCodecComplexityLive;
	CEdit	mEditCodecComplexityMax;
	CEdit	mEditCodecComplexityOffline;
	CEdit	mEditCodecPasses;
	CEdit	mEditCodecIsVBR;
	CEdit	mEditFormatSpeechCaps;
	CComboBox	mComboFormatDesc;
	CListBox	mListBoxCodecName;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CListCodecPropsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	IWMProfileManager * mProfileManager;
	IWMCodecInfo3 *		mCodecInfo3;
	CPtrList			mStreamConfigList;

	void FillCodecNames(void);
	HRESULT FillFormatDescs(void);
	HRESULT FillAudioFormatDescs(BOOL inIsVBR, DWORD inPasses, DWORD inCodecIndex);
	
	void ReflectCodecProperties(void);
	void ReflectCodecCurrentSettings(void);
	void ReflectFormatProperties(void);
	void ReflectFormatDetails(void);
	void ReflectStreamConfig(IWMStreamConfig * pConfig);

	HRESULT GetCodecNames(REFGUID inType);
	HRESULT SetCodecVBRSettings(REFGUID inCodecType, DWORD inCodecIndex, 
		BOOL inIsVBR, DWORD inVBRPasses);
	HRESULT GetCodecVBRSettings(REFGUID inCodecType, DWORD inCodecIndex, 
		BOOL& outIsVBR, DWORD& outVBRPasses);
	void ReleaseAllStreamConfig(void);
	
	// Generated message map functions
	//{{AFX_MSG(CListCodecPropsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangeListCodecName();
	afx_msg void OnSelchangeComboFormatDesc();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LISTCODECPROPSDLG_H__A7C06BCD_1DAB_4001_9826_47861B6C0D28__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -