mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 13:59:51 +02:00
Don't allocate VP8LHashChain, but treat like automatic object
the unique instance of VP8LHashChain (1MB size corresponding to hash_to_first_index_) is now wholy part of VP8LEncoder, instead of maintaining the pointer to VP8LHashChain in the encoder. Change-Id: Ib6fe52019fdd211fbbc78dc0ba731a4af0728677
This commit is contained in:
@ -130,8 +130,9 @@ struct VP8LHashChain {
|
||||
int size_;
|
||||
};
|
||||
|
||||
VP8LHashChain* VP8LHashChainNew(int size);
|
||||
void VP8LHashChainDelete(VP8LHashChain* const p);
|
||||
// Must be called first, to set size.
|
||||
int VP8LHashChainInit(VP8LHashChain* const p, int size);
|
||||
void VP8LHashChainClear(VP8LHashChain* const p); // release memory
|
||||
|
||||
typedef struct VP8LBackwardRefs VP8LBackwardRefs;
|
||||
struct VP8LBackwardRefs {
|
||||
|
Reference in New Issue
Block a user