Skip to content

Commit 6aa6c2f

Browse files
authored
Merge pull request #655 from achaikou/rev2_types_and_functions
Rev2: types and functions
2 parents 8def876 + 7fbc228 commit 6aa6c2f

19 files changed

Lines changed: 1176 additions & 438 deletions

lib/include/segyio/segy.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ typedef enum {
3232
SEGY_UNSIGNED_CHAR_1_BYTE = 16,
3333
SEGY_NOT_IN_USE_1 = 19,
3434
SEGY_NOT_IN_USE_2 = 20,
35+
36+
// private formats
37+
SEGY_STRING_8_BYTE = 255,
3538
} SEGY_FORMAT;
3639

3740
typedef enum {
@@ -394,6 +397,7 @@ typedef union {
394397
int64_t i64;
395398
float f32;
396399
double f64;
400+
char str8[8];
397401
} segy_field_value;
398402

399403
typedef struct {
@@ -469,6 +473,11 @@ int segy_samples( const char* binheader );
469473
* supported.
470474
*/
471475
int segy_traceheaders( const char* binheader, int* traceheader_count );
476+
477+
/*
478+
* calculate delay recording time for the first trace.
479+
*/
480+
int segy_delay_recoding_time( segy_datasource* ds, float* delay );
472481
/*
473482
* infer the interval between traces. this function tries to read the interval
474483
* from the binary header and the first trace header, and will fall back to the
@@ -554,6 +563,8 @@ int segy_set_binfield_int( char* header, int field, int val );
554563

555564

556565
int segy_field_forall( segy_datasource*,
566+
int traceheader_index,
567+
const segy_entry_definition* offset_map,
557568
int field,
558569
int start,
559570
int stop,

0 commit comments

Comments
 (0)