Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/libwebp/utils/quant_levels_dec.c

Issue 12942006: libwebp: update snapshot to v0.3.0-rc6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698