diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2019-08-06 16:17:31 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2019-08-13 19:51:49 +0300 |
commit | e29fd5c0016fec27c88a36ac6f6eaaf416d91330 (patch) | |
tree | c0bb371a91af5abbe470751189e35dcee5f8314b /src/internal.h | |
parent | a819653e1b71ea69c13faaa64c5bb89534ce2772 (diff) |
Add msac optimizations
* Eliminate the trailing zero after the CDF probabilities. We can
reuse the count value as a terminator instead. This reduces the
size of the CDF context by around 8%.
* Align the CDF arrays.
* Various other minor optimizations.
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/internal.h b/src/internal.h index 45863d2..86caee4 100644 --- a/src/internal.h +++ b/src/internal.h @@ -241,14 +241,14 @@ struct Dav1dFrameContext { }; struct Dav1dTileState { + CdfContext cdf; + MsacContext msac; + struct { int col_start, col_end, row_start, row_end; // in 4px units int col, row; // in tile units } tiling; - CdfContext cdf; - MsacContext msac; - atomic_int progress; // in sby units, TILE_ERROR after a decoding error struct { pthread_mutex_t lock; |