Add modified Zeng's method to palette sorting.

Also add palette sorting to crunch configurations.

Change-Id: I010a8bf8f1921279db6e9c7209307d8d19a4d105
This commit is contained in:
Vincent Rabaud
2021-04-27 11:34:36 +02:00
parent 88c90c4528
commit b1674240f9
2 changed files with 276 additions and 69 deletions

View File

@ -69,6 +69,8 @@ typedef struct {
int use_palette_;
int palette_size_;
uint32_t palette_[MAX_PALETTE_SIZE];
// Sorted version of palette_ for cache purposes.
uint32_t palette_sorted_[MAX_PALETTE_SIZE];
// Some 'scratch' (potentially large) objects.
struct VP8LBackwardRefs refs_[4]; // Backward Refs array for temporaries.