7 #include <mix/ErrCodes.h>
9 #include <mix/segy_file.h>
14 typedef ErrCode (*segy_trans_th_proc)(
struct segy_io_s* io,
42 segy_trans_th_proc out_thdr;
56 ErrCode segy_init_trace_buffer (
segy_io_t* io,
63 unsigned segy_sample_size (
int sample_fmt);
72 ErrCode segy_open_file_read (
segy_io_t* io,
73 const char* szFilePath);
77 ErrCode segy_read_reel_text_hdr (
segy_io_t* io,
char** psTextHdr);
80 ErrCode segy_read_reel_bin_hdr (
segy_io_t* io,
94 ErrCode segy_in_body (
segy_io_t* io,
void* buf);
102 ErrCode segy_open_file_write (
segy_io_t* io,
103 const char* szFilePath);
106 ErrCode segy_write_reel_text_hdr (
segy_io_t* io,
107 const char* sTextHdr);
110 ErrCode segy_write_reel_bin_hdr (
segy_io_t* io,
114 ErrCode segy_append_trace (
segy_io_t* io,
116 Real4* body,
int nsamples);
125 ErrCode segy_out_body (
segy_io_t* io, Real4* buf,
126 const Real4* body,
int nsamples);
134 ErrCode segy_eh_template (
char* sTextHdr);
137 ErrCode segy_eh_put_integer (
char* sTextHdr,
142 ErrCode segy_eh_put_text (
char* sTextHdr,
147 ErrCode segy_eh_put_log (
const char* sTextHdr);
156 Logic bImportant, Logic bVSP, Logic bNumbers);
160 int segy_th_value_by_number (
const void* hdr,
166 char* segy_th_word_name (
int th_number);
unsigned trace_hdr_size
Definition: segy_api.h:39
unsigned trace_size
Definition: segy_api.h:32
Definition: segy_api.h:21
TextEncoding text_hdr_enc
Definition: segy_api.h:27
ByteOrder bin_data_fmt
Definition: segy_api.h:28
void * trace_buf
Definition: segy_api.h:31
unsigned file_size
Definition: segy_api.h:40
unsigned bin_hdr_size
Definition: segy_api.h:38
char * fpath
Definition: segy_api.h:23
int sample_size
Definition: segy_api.h:30
unsigned text_hdr_size
Definition: segy_api.h:37
char omode
Definition: segy_api.h:25
char media
Definition: segy_api.h:26
int fildes
Definition: segy_api.h:24
int sample_fmt
Definition: segy_api.h:29
segy_trans_th_proc in_thdr
Definition: segy_api.h:41