Mercurial > pt1
comparison recpt1/recpt1.h @ 142:1e7718cc2556
use utf-8 instead of euc-jp
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 30 Apr 2014 11:26:24 +0900 |
parents | aeba1988234f |
children |
comparison
equal
deleted
inserted
replaced
141:c8688d7d6382 | 142:1e7718cc2556 |
---|---|
5 #define NUM_BSDEV 8 | 5 #define NUM_BSDEV 8 |
6 #define NUM_ISDB_T_DEV 8 | 6 #define NUM_ISDB_T_DEV 8 |
7 #define CHTYPE_SATELLITE 0 /* satellite digital */ | 7 #define CHTYPE_SATELLITE 0 /* satellite digital */ |
8 #define CHTYPE_GROUND 1 /* terrestrial digital */ | 8 #define CHTYPE_GROUND 1 /* terrestrial digital */ |
9 #define MAX_QUEUE 8192 | 9 #define MAX_QUEUE 8192 |
10 #define MAX_READ_SIZE (188 * 87) /* 188*87=16356 splitterが188アライメントを期待しているのでこの数字とする*/ | 10 #define MAX_READ_SIZE (188 * 87) /* 188*87=16356 splitter188≪ゃ<潟緇с医*/ |
11 #define WRITE_SIZE (1024 * 1024 * 2) | 11 #define WRITE_SIZE (1024 * 1024 * 2) |
12 #define TRUE 1 | 12 #define TRUE 1 |
13 #define FALSE 0 | 13 #define FALSE 0 |
14 | 14 |
15 typedef struct _BUFSZ { | 15 typedef struct _BUFSZ { |
16 int size; | 16 int size; |
17 u_char buffer[MAX_READ_SIZE]; | 17 u_char buffer[MAX_READ_SIZE]; |
18 } BUFSZ; | 18 } BUFSZ; |
19 | 19 |
20 typedef struct _QUEUE_T { | 20 typedef struct _QUEUE_T { |
21 unsigned int in; // 次に入れるインデックス | 21 unsigned int in; // 罨<ャゃ潟 |
22 unsigned int out; // 次に出すインデックス | 22 unsigned int out; // 罨<冴ゃ潟 |
23 unsigned int size; // キューのサイズ | 23 unsigned int size; // ャ若泣ゃ |
24 unsigned int num_avail; // 満タンになると 0 になる | 24 unsigned int num_avail; // 羣帥潟 0 |
25 unsigned int num_used; // 空っぽになると 0 になる | 25 unsigned int num_used; // 腥冴c純 0 |
26 pthread_mutex_t mutex; | 26 pthread_mutex_t mutex; |
27 pthread_cond_t cond_avail; // データが満タンのときに待つための cond | 27 pthread_cond_t cond_avail; // 若帥羣帥潟緇ゃ cond |
28 pthread_cond_t cond_used; // データが空のときに待つための cond | 28 pthread_cond_t cond_used; // 若帥腥冴緇ゃ cond |
29 BUFSZ *buffer[1]; // バッファポインタ | 29 BUFSZ *buffer[1]; // <ゃ潟 |
30 } QUEUE_T; | 30 } QUEUE_T; |
31 | 31 |
32 typedef struct _ISDB_T_FREQ_CONV_TABLE { | 32 typedef struct _ISDB_T_FREQ_CONV_TABLE { |
33 int set_freq; // 実際にioctl()を行う値 | 33 int set_freq; // 絎ioctl()茵 |
34 int type; // チャンネルタイプ | 34 int type; // c潟帥ゃ |
35 int add_freq; // 追加する周波数(BS/CSの場合はスロット番号) | 35 int add_freq; // 菴遵羈∽(BS/CS翫鴻) |
36 char *parm_freq; // パラメータで受ける値 | 36 char *parm_freq; // <若帥у |
37 } ISDB_T_FREQ_CONV_TABLE; | 37 } ISDB_T_FREQ_CONV_TABLE; |
38 | 38 |
39 #endif | 39 #endif |