Click here to Skip to main content
15,892,809 members
Articles / Programming Languages / C++

RunLength Compression

Rate me:
Please Sign up or sign in to vote.
4.51/5 (22 votes)
21 Jan 2005CPOL4 min read 71K   3.6K   21  
Fast Run-Length coding with variable runs sizes.
// CompressDlg.h : header file
//

#include "afxwin.h"
#if !defined(AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__INCLUDED_)
#define AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCompressDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CCompressDlg)
	enum { IDD = IDD_Compress_DIALOG };
	int		m_nComboAlgorithm;
	CString	m_strPTFile;
	CString	m_strCTFile;
	CString	m_strDPTFile;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCompressDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnDecompress();
	afx_msg void OnPTFBrowse();
	afx_msg void OnCTFBrowse();
	afx_msg void OnDPTFBrowse();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CComboBox m_comboBitsPerSample;
	int m_nBitsPerSample;
};

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

#endif // !defined(AFX_CompressDLG_H__CA7F3567_939A_11D7_B8FA_00C0DF05DA5F__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Egypt Egypt

Comments and Discussions