CReportFile.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
- // CReportFile.h: interface for the CReportFile class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CREPORTFILE_H__15E70BF3_1BFE_490D_A290_11B518F671A8__INCLUDED_)
- #define AFX_CREPORTFILE_H__15E70BF3_1BFE_490D_A290_11B518F671A8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "CXvid.h"
- class CReportFile
- {
- public:
- typedef struct //REPORTFHEADERTYP
- {
- int rtyp; //Must be 0x08
- int rmajor; //report version major
- int rminor; //report version minor
- }REPORTFILEHEADER;
- typedef struct //REPORTIHEADERTYP
- {
- float fps; //frames per second
- int width; //video width
- int height; //video height
- int nframes; //global frame count
- int nmax; //maximum global quantizer
- int nmin; //minimum global quantizer
- float navg; //global average quantizer value
- int icount; //I-Frame count
- float iavg; //I-Frame average quantizer value
- int pcount; //P-Frame count
- float pavg; //P-Frame average quantizer value
- int nfsmax; //global maximum framesize
- int nfsmin; //global minimum framesize
- int ifsmax; //I-Frame maximum framesize
- int ifsmin; //I-Frame minimum framesize
- int pfsmax; //P-Frame maximum framesize
- int pfsmin; //P-Frame minimum framesize
- }REPORTINFOHEADER;
-
- CReportFile();
- virtual ~CReportFile();
- bool Save(CString filepath, CXvid &xvid, int start, int stop);
- bool Load(CString filepath, CXvid &xvid);
- private:
- REPORTFILEHEADER fileHdr;
- REPORTINFOHEADER infoHdr;
- };
- #endif // !defined(AFX_CREPORTFILE_H__15E70BF3_1BFE_490D_A290_11B518F671A8__INCLUDED_)