mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-19 07:20:02 +02:00
multi-threaded alpha encoding for lossy
new option: 'cwebp -mt ...' new config flag: config.thread_level (allowed thread_level are 0 or 1 for now. Maybe more later...) If -mt is activated (and WEBP_USE_THREAD is used for compile), the alpha-compression will be done in parallel to RGB coding for lossy. Can save quite a bit of latency... Has no effect for lossless encoding. Change-Id: I769d0bf90e7380cf99344ad62cd77277f4df5a46
This commit is contained in:
@ -625,7 +625,10 @@ static void SetBlock(uint8_t* p, int value, int size) {
|
||||
#endif
|
||||
|
||||
static void ResetSSE(VP8Encoder* const enc) {
|
||||
memset(enc->sse_, 0, sizeof(enc->sse_));
|
||||
enc->sse_[0] = 0;
|
||||
enc->sse_[1] = 0;
|
||||
enc->sse_[2] = 0;
|
||||
// Note: enc->sse_[3] is managed by alpha.c
|
||||
enc->sse_count_ = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user