19 int segd_parse_gh1 (
const unsigned char raw_gh1[SEGD_GH1_Size],
24 int segd_parse_gh2 (
const unsigned char raw_gh2[SEGD_GH2_Size],
29 int segd_parse_ghn (
const unsigned char raw_ghn[SEGD_GHN_Size],
35 int segd_parse_cs (
const unsigned char raw_cs[SEGD_CS_Size],
41 int segd_parse_sos (
const unsigned char raw_sos[SEGD_SOS_Size],
47 int segd_parse_tw (
const unsigned char raw_tw[SEGD_TW_Size],
52 int segd_parse_dth (
const unsigned char raw_dth[SEGD_DTH_Size],
58 int segd_parse_eth (
const unsigned char raw_eth[SEGD_ETH_Size],
66 int* year,
int* month,
int* day);
76 void segd_print_raw_gh1 (FILE* fp,
77 const unsigned char raw_gh1[SEGD_GH1_Size]);
86 void segd_print_raw_gh2 (FILE* fp,
87 const unsigned char raw_gh2[SEGD_GH2_Size]);
96 void segd_print_raw_ghn (FILE* fp,
97 const unsigned char raw_ghn[SEGD_GHN_Size]);
106 void segd_print_raw_cs (FILE* fp,
107 const unsigned char raw_cs[SEGD_CS_Size]);
116 void segd_print_raw_dth (FILE* fp,
117 const unsigned char raw_dth[SEGD_DTH_Size]);
126 void segd_print_raw_eth (FILE* fp,
127 const unsigned char raw_eth[SEGD_ETH_Size]);
132 void segd_print_sos (FILE* fp,
int sos_flags);
137 void segd_print_hex_dump (FILE* fp,
138 const unsigned char* buf,
int buf_size);
144 int segd_bits_per_samples (SEGD_FormatCode format_code);
152 int segd_trans_samples (SEGD_FormatCode fc,
153 const unsigned char* src,
155 float* dst,
int dst_n);
159 float segd_trans_x022 (
const unsigned char* raw);
163 float segd_trans_x024 (
const unsigned char* raw);
167 void segd_trans_0015 (
const unsigned char* raw,
float dst[4]);
171 void segd_trans_8015 (
const unsigned char* raw,
float dst[4]);
175 float segd_trans_x042 (
const unsigned char* raw);
179 float segd_trans_x044 (
const unsigned char* raw);
183 float segd_trans_x036 (
const unsigned char* raw);
187 float segd_trans_x038 (
const unsigned char* raw);
191 float segd_trans_x048 (
const unsigned char* raw);
195 float segd_trans_x058 (
const unsigned char* raw);
Definition: segd_file.h:340