Parent Directory
|
Revision Log
Revision 1910 - (view) (download)
1 : | Isibaar | 1910 | /***************************************************************************** |
2 : | * | ||
3 : | * XVID MPEG-4 VIDEO CODEC | ||
4 : | * - Status window header - | ||
5 : | * | ||
6 : | * Copyright(C) Peter Ross <pross@xvid.org> | ||
7 : | * | ||
8 : | * This program is free software ; you can redistribute it and/or modify | ||
9 : | * it under the terms of the GNU General Public License as published by | ||
10 : | * the Free Software Foundation ; either version 2 of the License, or | ||
11 : | * (at your option) any later version. | ||
12 : | * | ||
13 : | * This program is distributed in the hope that it will be useful, | ||
14 : | * but WITHOUT ANY WARRANTY ; without even the implied warranty of | ||
15 : | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 : | * GNU General Public License for more details. | ||
17 : | * | ||
18 : | * You should have received a copy of the GNU General Public License | ||
19 : | * along with this program ; if not, write to the Free Software | ||
20 : | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 : | * | ||
22 : | * $Id: status.h,v 1.3 2010-12-02 06:46:07 Isibaar Exp $ | ||
23 : | * | ||
24 : | ****************************************************************************/ | ||
25 : | |||
26 : | edgomez | 1382 | #ifndef _STATUS_H_ |
27 : | #define _STATUS_H_ | ||
28 : | |||
29 : | #include <windows.h> | ||
30 : | |||
31 : | /* int64_t */ | ||
32 : | #if defined(_MSC_VER) || defined (__WATCOMC__) | ||
33 : | # define int64_t __int64 | ||
34 : | # define uint64_t unsigned __int64 | ||
35 : | #else | ||
36 : | # include <inttypes.h> | ||
37 : | #endif | ||
38 : | |||
39 : | typedef struct | ||
40 : | { | ||
41 : | double fps; | ||
42 : | |||
43 : | HWND hDlg; | ||
44 : | HWND hGraph; | ||
45 : | HDC hDc; | ||
46 : | |||
47 : | unsigned int width; | ||
48 : | unsigned int width31; | ||
49 : | unsigned int height; | ||
50 : | unsigned int stride; | ||
51 : | unsigned char * buffer; | ||
52 : | |||
53 : | TEXTMETRIC tm; | ||
54 : | BITMAPINFO * bi; | ||
55 : | |||
56 : | int64_t count[4]; | ||
57 : | int min_quant[4]; | ||
58 : | int max_quant[4]; | ||
59 : | int quant[3][31]; | ||
60 : | int max_quant_frames; | ||
61 : | int min_length[4]; | ||
62 : | int max_length[4]; | ||
63 : | int64_t tot_length[4]; | ||
64 : | } status_t; | ||
65 : | |||
66 : | |||
67 : | void status_create(status_t * s, unsigned int fps_inc, unsigned int fps_base); | ||
68 : | void status_update(status_t *s, int type, int length, int quant); | ||
69 : | void status_destroy(status_t *s); | ||
70 : | void status_destroy_always(status_t *s); | ||
71 : | |||
72 : | #endif /* _STATUS_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |