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

Side by Side Diff: third_party/libwebp/dec/idec_dec.c

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/libwebp/dec/idec.c ('k') | third_party/libwebp/dec/io.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 Google Inc. All Rights Reserved. 1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license 3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source 4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found 5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may 6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree. 7 // be found in the AUTHORS file in the root of the source tree.
8 // ----------------------------------------------------------------------------- 8 // -----------------------------------------------------------------------------
9 // 9 //
10 // Incremental decoding 10 // Incremental decoding
11 // 11 //
12 // Author: somnath@google.com (Somnath Banerjee) 12 // Author: somnath@google.com (Somnath Banerjee)
13 13
14 #include <assert.h> 14 #include <assert.h>
15 #include <string.h> 15 #include <string.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 17
18 #include "./alphai.h" 18 #include "./alphai_dec.h"
19 #include "./webpi.h" 19 #include "./webpi_dec.h"
20 #include "./vp8i.h" 20 #include "./vp8i_dec.h"
21 #include "../utils/utils.h" 21 #include "../utils/utils.h"
22 22
23 // In append mode, buffer allocations increase as multiples of this value. 23 // In append mode, buffer allocations increase as multiples of this value.
24 // Needs to be a power of 2. 24 // Needs to be a power of 2.
25 #define CHUNK_SIZE 4096 25 #define CHUNK_SIZE 4096
26 #define MAX_MB_SIZE 4096 26 #define MAX_MB_SIZE 4096
27 27
28 //------------------------------------------------------------------------------ 28 //------------------------------------------------------------------------------
29 // Data structures for memory and states 29 // Data structures for memory and states
30 30
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 return 0; 883 return 0;
884 } 884 }
885 885
886 idec->io_.put = put; 886 idec->io_.put = put;
887 idec->io_.setup = setup; 887 idec->io_.setup = setup;
888 idec->io_.teardown = teardown; 888 idec->io_.teardown = teardown;
889 idec->io_.opaque = user_data; 889 idec->io_.opaque = user_data;
890 890
891 return 1; 891 return 1;
892 } 892 }
OLDNEW
« no previous file with comments | « third_party/libwebp/dec/idec.c ('k') | third_party/libwebp/dec/io.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698