[svn] / trunk / xvidcore / vfw / src / status.h Repository:
ViewVC logotype

View of /trunk/xvidcore/vfw/src/status.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1910 - (download) (annotate)
Thu Dec 2 06:46:07 2010 UTC (13 years, 3 months ago) by Isibaar
File size: 1920 byte(s)
some cleanup of vfw code, increased allowed max bitrate, profile for HD 1080
/*****************************************************************************
 *
 *  XVID MPEG-4 VIDEO CODEC
 *  - Status window header  -
 *
 *  Copyright(C) Peter Ross <pross@xvid.org>
 *
 *  This program 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.
 *
 *  This program 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
 *
 * $Id: status.h,v 1.3 2010-12-02 06:46:07 Isibaar Exp $
 *
 ****************************************************************************/

#ifndef _STATUS_H_
#define _STATUS_H_

#include <windows.h>

/* int64_t */
#if defined(_MSC_VER) || defined (__WATCOMC__)
#	define int64_t  __int64
#	define uint64_t unsigned __int64
#else
#	include <inttypes.h>
#endif

typedef struct
{
	double fps;

	HWND hDlg;
	HWND hGraph;
	HDC hDc;

	unsigned int width;
	unsigned int width31;
	unsigned int height;
	unsigned int stride;
	unsigned char * buffer;

	TEXTMETRIC tm;
	BITMAPINFO * bi;

	int64_t count[4];
	int min_quant[4];
	int max_quant[4];
	int quant[3][31];
	int max_quant_frames;
	int min_length[4];
	int max_length[4];
	int64_t tot_length[4];
} status_t;


void status_create(status_t * s, unsigned int fps_inc, unsigned int fps_base);
void status_update(status_t *s, int type, int length, int quant);
void status_destroy(status_t *s);
void status_destroy_always(status_t *s);

#endif /* _STATUS_H_ */

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4