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