OSDN Git Service

MediaInfo設定用のGUI項目と、コンフィグ読み書き処理を実装
[coroid/inqubus.git] / vhook / nicodef.h
1 #ifndef NICODEF_H_
2 #define NICODEF_H_
3 #include <SDL/SDL_ttf.h>
4
5 //定義
6 #define NICO_WIDTH              512
7 #define NICO_HEIGHT     384
8 // 16:9 動画用定義
9 #define NICO_HD_WIDTH 640
10 #define NICO_HD_HEIGHT NICO_HEIGHT
11
12
13 #define VPOS_FACTOR             100     //多分係数の意味では・・・やはり1/100で記録してるっぽい
14 #define TEXT_AHEAD_SEC  (1 * VPOS_FACTOR)
15 #define TEXT_SHOW_SEC   (4 * VPOS_FACTOR)
16 #define TEXT_HEIGHT             22
17
18 #define CMD_LOC_DEF             (0)
19 #define CMD_LOC_TOP             (1)
20 #define CMD_LOC_BOTTOM  (2)
21
22 #define CMD_FONT_MAX    3
23 #define CMD_FONT_DEF    0
24 #define CMD_FONT_BIG    1
25 #define CMD_FONT_SMALL  2
26
27 static const int COMMENT_FONT_SIZE[CMD_FONT_MAX] = {
28         24,//DEF
29         39,//BIG
30         15,//SMALL
31 };
32
33 #define CMD_COLOR_MAX                           17
34 #define CMD_COLOR_DEF                           0
35 #define CMD_COLOR_RED                           1
36 #define CMD_COLOR_ORANGE                        2
37 #define CMD_COLOR_YELLOW                        3
38 #define CMD_COLOR_PINK                          4
39 #define CMD_COLOR_BLUE                          5
40 #define CMD_COLOR_PURPLE                        6
41 #define CMD_COLOR_CYAN                          7
42 #define CMD_COLOR_GREEN                 8
43 #define CMD_COLOR_NICOWHITE             9
44 #define CMD_COLOR_MARINEBLUE            10
45 #define CMD_COLOR_MADYELLOW             11
46 #define CMD_COLOR_PASSIONORANGE 12
47 #define CMD_COLOR_NOBLEVIOLET           13
48 #define CMD_COLOR_ELEMENTALGREEN        14
49 #define CMD_COLOR_TRUERED                       15
50 #define CMD_COLOR_BLACK                 16
51
52 static const SDL_Color COMMENT_COLOR[CMD_COLOR_MAX] = {
53         {0xff,0xff,0xff,0x00},//DEF
54         {0xff,0x00,0x00,0x00},//RED
55         {0xff,0xC0,0x00,0x00},//ORANGE
56         {0xff,0xff,0x00,0x00},//YELLOW
57         {0xff,0x80,0x80,0x00},//PINK
58         {0x00,0x00,0xff,0x00},//BLUE
59         {0xc0,0x00,0xff,0x00},//PURPLE
60         {0x00,0xff,0xff,0x00},//CYAN
61         {0x00,0xff,0x00,0x00},//GREEN
62         /*プレミア専用*/
63         {0xCC,0xCC,0x99,0x00},//NICOWHITE
64         {0x33,0xff,0xFC,0x00},//MARINEBLUE
65         {0x99,0x99,0x00,0x00},//MADYELLOW
66         {0xFF,0x66,0x00,0x00},//PASSIONORANGE
67         {0x66,0x33,0xCC,0x00},//NOBLEVIOLET
68         {0x00,0xCC,0x66,0x00},//ELEMENTALGREEN
69         {0xCC,0x00,0x33,0x00},//TRUERED
70         {0x00,0x00,0x00,0x00},//BLACK
71
72 };
73
74 #endif /*NICODEF_H_*/