1 |
|
#ifndef _STATUS_H_ |
2 |
|
#define _STATUS_H_ |
3 |
|
|
4 |
|
#include <windows.h> |
5 |
|
|
6 |
|
/* int64_t */ |
7 |
|
#if defined(_MSC_VER) || defined (__WATCOMC__) |
8 |
|
# define int64_t __int64 |
9 |
|
# define uint64_t unsigned __int64 |
10 |
|
#else |
11 |
|
# include <inttypes.h> |
12 |
|
#endif |
13 |
|
|
14 |
|
typedef struct |
15 |
|
{ |
16 |
|
double fps; |
17 |
|
|
18 |
|
HWND hDlg; |
19 |
|
HWND hGraph; |
20 |
|
HDC hDc; |
21 |
|
|
22 |
|
unsigned int width; |
23 |
|
unsigned int width31; |
24 |
|
unsigned int height; |
25 |
|
unsigned int stride; |
26 |
|
unsigned char * buffer; |
27 |
|
|
28 |
|
TEXTMETRIC tm; |
29 |
|
BITMAPINFO * bi; |
30 |
|
|
31 |
|
int64_t count[4]; |
32 |
|
int min_quant[4]; |
33 |
|
int max_quant[4]; |
34 |
|
int quant[3][31]; |
35 |
|
int max_quant_frames; |
36 |
|
int min_length[4]; |
37 |
|
int max_length[4]; |
38 |
|
int64_t tot_length[4]; |
39 |
|
} status_t; |
40 |
|
|
41 |
|
|
42 |
|
void status_create(status_t * s, unsigned int fps_inc, unsigned int fps_base); |
43 |
|
void status_update(status_t *s, int type, int length, int quant); |
44 |
|
void status_destroy(status_t *s); |
45 |
|
void status_destroy_always(status_t *s); |
46 |
|
|
47 |
|
#endif /* _STATUS_H_ */ |