From 60b5c6c80af06403fc636e4ad435a5fa09a6d744 Mon Sep 17 00:00:00 2001 From: Gregor Weiss Date: Tue, 15 Oct 2024 17:53:29 +0200 Subject: [PATCH] new eas3_data struct and mods in bitstream eas3_std_params --- include/interfaces/reader/eas3.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/include/interfaces/reader/eas3.h b/include/interfaces/reader/eas3.h index 9fe0d20..e75dfa2 100644 --- a/include/interfaces/reader/eas3.h +++ b/include/interfaces/reader/eas3.h @@ -199,15 +199,22 @@ \*----------------------------------------------------------------------------------------------*/ typedef struct { + //TODO: remove uchar error; // Error flag used during streaming. + uint64 size; + uint64 position; + //TODO: remove uint64 L; // Number of bytes written to/from stream. + //TODO: remove uint64 Lmax; // Size of packed stream. uint64 size_incr; // Size incrmnt used for stream assembly. + //TODO: remove uint8 T; // Byte buffer. int8 t; // Byte buffer counter. + uchar *access; // Pointer used to parse packed stream. uchar *memory; // Memory handle for packed stream chunck. } bitstream; @@ -303,7 +310,7 @@ { uint64_t file_type; uint64_t accuracy; - uint64_t nzs; + uint64_t nts; uint64_t npar; uint64_t ndim1; uint64_t ndim2; @@ -324,6 +331,27 @@ uint64_t udef_int_size; uint64_t udef_real_size; } eas3_std_params; + + /*----------------------------------------------------------------------------------------------*\ + ! ! + ! DESCRIPTION: ! + ! ------------ ! + ! ! + ! This structure is used to read eas3 stuff. ! + ! ! + \*----------------------------------------------------------------------------------------------*/ + typedef struct + { + eas3_std_params params; + + struct field + { + double *d; + float *f; + } field; + + bitstream *aux; + } eas3_data; /************************************************************************************************************\ || ___ _ _ ___ _ _ ____ ____ _ _ _ _ ____ ___ _ ____ _ _ ____ ||