diff options
author | Mathis Rosenhauer <rosenhauer@dkrz.de> | 2012-10-07 20:39:52 +0200 |
---|---|---|
committer | Thomas Jahns <jahns@dkrz.de> | 2013-02-19 11:33:00 +0100 |
commit | 1c5c273f51a1d2927373d076a462505745f32f60 (patch) | |
tree | 7685bb244596dcdccd2977f0335057aa8ef34510 /src/encode.h | |
parent | c32d9c6db01d1fe272860b85ecf3bd7ea1f4d8dc (diff) | |
download | libaec-1c5c273f51a1d2927373d076a462505745f32f60.tar.gz libaec-1c5c273f51a1d2927373d076a462505745f32f60.tar.bz2 libaec-1c5c273f51a1d2927373d076a462505745f32f60.zip |
Maintain two buffers with raw and preprocessed data for faster preprocessing
Diffstat (limited to 'src/encode.h')
-rw-r--r-- | src/encode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encode.h b/src/encode.h index b17ccc0..c91a475 100644 --- a/src/encode.h +++ b/src/encode.h @@ -22,7 +22,8 @@ struct internal_state { int64_t xmin; /* minimum integer for preprocessing */ int64_t xmax; /* maximum integer for preprocessing */ int i; /* counter */ - uint32_t *block_buf; /* RSI blocks of input */ + uint32_t *data_pp; /* RSI blocks of preprocessed input */ + uint32_t *data_raw; /* RSI blocks of input */ int blocks_avail; /* remaining blocks in buffer */ uint32_t *block_p; /* pointer to current block */ int block_len; /* input block length in byte */ |