summaryrefslogtreecommitdiffstats
path: root/third_party/libwebp/dec/layer.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebp/dec/layer.c')
-rw-r--r--third_party/libwebp/dec/layer.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/libwebp/dec/layer.c b/third_party/libwebp/dec/layer.c
new file mode 100644
index 0000000..f7d41e0
--- /dev/null
+++ b/third_party/libwebp/dec/layer.c
@@ -0,0 +1,34 @@
+// Copyright 2011 Google Inc.
+//
+// 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)
+//
+// Author: Skal (pascal.massimino@gmail.com)
+
+#include <assert.h>
+#include <stdlib.h>
+#include "vp8i.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.
+
+ return 1;
+}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+} // extern "C"
+#endif