| Index: third_party/libwebp/utils/quant_levels_dec.c
|
| diff --git a/third_party/libwebp/dec/layer.c b/third_party/libwebp/utils/quant_levels_dec.c
|
| similarity index 56%
|
| copy from third_party/libwebp/dec/layer.c
|
| copy to third_party/libwebp/utils/quant_levels_dec.c
|
| index a3a5bdcfe8839762b9ca4aba22a85049d72857f1..95142b1b170f5661fdd0708f3ab4c1f5079137d3 100644
|
| --- a/third_party/libwebp/dec/layer.c
|
| +++ b/third_party/libwebp/utils/quant_levels_dec.c
|
| @@ -1,32 +1,25 @@
|
| -// Copyright 2011 Google Inc. All Rights Reserved.
|
| +// Copyright 2013 Google Inc. All Rights Reserved.
|
| //
|
| // This code is licensed under the same terms as WebM:
|
| // Software License Agreement: http://www.webmproject.org/license/software/
|
| // Additional IP Rights Grant: http://www.webmproject.org/license/additional/
|
| // -----------------------------------------------------------------------------
|
| //
|
| -// Enhancement layer (for YUV444/422)
|
| +// TODO(skal): implement gradient smoothing.
|
| //
|
| // Author: Skal (pascal.massimino@gmail.com)
|
|
|
| -#include <assert.h>
|
| -#include <stdlib.h>
|
| -
|
| -#include "./vp8i.h"
|
| +#include "./quant_levels_dec.h"
|
|
|
| #if defined(__cplusplus) || defined(c_plusplus)
|
| extern "C" {
|
| #endif
|
|
|
| -//------------------------------------------------------------------------------
|
| -
|
| -int VP8DecodeLayer(VP8Decoder* const dec) {
|
| - assert(dec);
|
| - assert(dec->layer_data_size_ > 0);
|
| - (void)dec;
|
| -
|
| - // TODO: handle enhancement layer here.
|
| -
|
| +int DequantizeLevels(uint8_t* const data, int width, int height) {
|
| + if (data == NULL || width <= 0 || height <= 0) return 0;
|
| + (void)data;
|
| + (void)width;
|
| + (void)height;
|
| return 1;
|
| }
|
|
|
|
|