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

Side by Side Diff: third_party/libwebp/utils/bit_reader_utils.c

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 11 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/utils/bit_reader_utils.h ('k') | third_party/libwebp/utils/bit_writer.h » ('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 2010 Google Inc. All Rights Reserved. 1 // Copyright 2010 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 // Boolean decoder non-inlined methods 10 // Boolean decoder non-inlined methods
11 // 11 //
12 // Author: Skal (pascal.massimino@gmail.com) 12 // Author: Skal (pascal.massimino@gmail.com)
13 13
14 #ifdef HAVE_CONFIG_H 14 #ifdef HAVE_CONFIG_H
15 #include "../webp/config.h" 15 #include "../webp/config.h"
16 #endif 16 #endif
17 17
18 #include "./bit_reader_inl.h" 18 #include "./bit_reader_inl_utils.h"
19 #include "../utils/utils.h" 19 #include "../utils/utils.h"
20 20
21 //------------------------------------------------------------------------------ 21 //------------------------------------------------------------------------------
22 // VP8BitReader 22 // VP8BitReader
23 23
24 void VP8BitReaderSetBuffer(VP8BitReader* const br, 24 void VP8BitReaderSetBuffer(VP8BitReader* const br,
25 const uint8_t* const start, 25 const uint8_t* const start,
26 size_t size) { 26 size_t size) {
27 br->buf_ = start; 27 br->buf_ = start;
28 br->buf_end_ = start + size; 28 br->buf_end_ = start + size;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 br->bit_pos_ = new_bits; 213 br->bit_pos_ = new_bits;
214 ShiftBytes(br); 214 ShiftBytes(br);
215 return val; 215 return val;
216 } else { 216 } else {
217 VP8LSetEndOfStream(br); 217 VP8LSetEndOfStream(br);
218 return 0; 218 return 0;
219 } 219 }
220 } 220 }
221 221
222 //------------------------------------------------------------------------------ 222 //------------------------------------------------------------------------------
OLDNEW
« no previous file with comments | « third_party/libwebp/utils/bit_reader_utils.h ('k') | third_party/libwebp/utils/bit_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698