npv:osd:timer, will add more if pertinent
[nyanmp.git] / npv / video / osd / local / state.frag.c
blob0c599bbd9ac0bfa679914badabe5c8d1d0997777
1 STATIC FT_Library library_l;
2 STATIC struct {
3 /*
4 * use caches, coze we will probably share fonts with libass,
5 * if libass is still properly coded and have a clean set of
6 * dependencies
7 */
8 FTC_Manager manager;
9 FTC_ImageCache img_cache;
10 struct {
11 u8 **files;
12 FT_Face *ft;
13 u8 *ids;
14 u8 n;
15 } faces;
17 struct {
18 FT_ULong unicode;
20 u8 face_id;
21 FT_UInt idx;
22 FT_BitmapGlyph bg;
23 FTC_Node node;
24 } gs[GS_N];
25 } cache_l;
26 /*NSPC*/
27 STATIC u16 timer_baseline_l;
28 /*NSPC*/
29 STATIC struct {
30 u16 baseline;
31 u16 start_column;
32 } volume_l;
33 /* only used to restore pixels from a paused img */
34 /*NSPC*/
35 STATIC struct {
36 void *scaler_pixs;
37 void *pixs;
38 s16 width;
39 s16 height;
40 u32 line_bytes_n;
41 u8 timer_gs[sizeof(TIMER_TMPL)];
42 bool dirty;
43 } restore_l;
44 /*NSPC*/
45 STATIC bool timer_on;