www.pudn.com > mediator15src.zip > OptionsDlg.h


/* 
 * OptionsDlg.h 
 * Copyright (C) 2002 Arno Hornberger  
 * 
 * This file is part of MPEG Mediator, a free MPEG stream converter. 
 * 
 * MPEG Mediator is free software; you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; either version 2 of the License, or 
 * (at your option) any later version. 
 * 
 * MPEG Mediator is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 * GNU General Public License for more details. 
 * 
 * You should have received a copy of the GNU General Public License 
 * along with this program; if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 */ 
 
#if !defined(AFX_OPTIONSDLG_H__867B0568_3F92_4025_8C22_EF483DF3C168__INCLUDED_) 
#define AFX_OPTIONSDLG_H__867B0568_3F92_4025_8C22_EF483DF3C168__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// OptionsDlg.h : header file 
// 
#include  
#include  
#include  
#include "VideoSequenceCompressor.h" 
#include "AudioCompressor.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// COptionsDlg dialog 
 
#define AUDIO_UNCOMPRESSED 0x01		// out flag 
#define VIDEO_UNCOMPRESSED 0x02		// out flag 
#define AUDIO_HQ					 0x08		// in/out flag 
#define VIDEO_DEFAULT			 0x10		// in flag 
#define AUDIO_DEFAULT			 0x20		// in flag 
#define VIDEO_ALLOWRGB		 0x40		// in flag 
#define AUDIO_DISABLE			 0x80		// in flag 
 
class COptionsDlg : public CDialog 
{ 
  // Construction 
public: 
  struct TSelectedResult 
  { 
    CStateManager *pStateManager; 
    int           videoSelected; 
    int           audioTagSelected; 
    int           audioFormatSelected; 
		long					lQuality; 
		long					lKeyRate; 
		long					lDataRate; 
		DWORD         status;           // Status flag for result 
  }; 
   
  // Select default, return results 
  TSelectedResult m_sResult; 
 
	COptionsDlg(CWnd *pParent = NULL);   // standard constructor 
 
  CArray  m_vVideoCodecList; 
  CArray  m_vAudioCodecList; 
 
//	void UpdateCodecStats(void); 
	 
	// Dialog Data 
	//{{AFX_DATA(COptionsDlg) 
	enum { IDD = IDD_OPTIONS }; 
	CSliderCtrl	m_QualitySlider; 
	CButton	m_Configure; 
	CButton	m_hqAudio; 
	CComboBox	m_AudioCombo; 
	CComboBox	m_VideoCombo; 
	CListBox	m_lAudioFormatListBox; 
	//}}AFX_DATA 
   
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(COptionsDlg) 
	public: 
	virtual int DoModal(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	void ReenableOptions(HIC hic); 
 
	// Generated message map functions 
	//{{AFX_MSG(COptionsDlg) 
	virtual BOOL OnInitDialog(); 
	virtual void OnOK(); 
	afx_msg void OnSelchangeAudioformatlist(); 
	afx_msg void OnSelchangeVideocodeccombo(); 
	afx_msg void OnSelchangeAudiocodeccombo(); 
	afx_msg void OnConfigure(); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_OPTIONSDLG_H__867B0568_3F92_4025_8C22_EF483DF3C168__INCLUDED_)