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

Side by Side Diff: source/libvpx/vp9/decoder/vp9_reader.h

Issue 812033011: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 #ifdef __cplusplus 24 #ifdef __cplusplus
25 extern "C" { 25 extern "C" {
26 #endif 26 #endif
27 27
28 typedef size_t BD_VALUE; 28 typedef size_t BD_VALUE;
29 29
30 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT) 30 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
31 31
32 typedef struct { 32 typedef struct {
33 // Be careful when reordering this struct, it may impact the cache negatively.
34 BD_VALUE value;
35 unsigned int range;
36 int count;
33 const uint8_t *buffer_end; 37 const uint8_t *buffer_end;
34 const uint8_t *buffer; 38 const uint8_t *buffer;
35 uint8_t clear_buffer[sizeof(BD_VALUE) + 1];
36 BD_VALUE value;
37 int count;
38 unsigned int range;
39 vpx_decrypt_cb decrypt_cb; 39 vpx_decrypt_cb decrypt_cb;
40 void *decrypt_state; 40 void *decrypt_state;
41 uint8_t clear_buffer[sizeof(BD_VALUE) + 1];
41 } vp9_reader; 42 } vp9_reader;
42 43
43 int vp9_reader_init(vp9_reader *r, 44 int vp9_reader_init(vp9_reader *r,
44 const uint8_t *buffer, 45 const uint8_t *buffer,
45 size_t size, 46 size_t size,
46 vpx_decrypt_cb decrypt_cb, 47 vpx_decrypt_cb decrypt_cb,
47 void *decrypt_state); 48 void *decrypt_state);
48 49
49 void vp9_reader_fill(vp9_reader *r); 50 void vp9_reader_fill(vp9_reader *r);
50 51
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 continue; 111 continue;
111 112
112 return -i; 113 return -i;
113 } 114 }
114 115
115 #ifdef __cplusplus 116 #ifdef __cplusplus
116 } // extern "C" 117 } // extern "C"
117 #endif 118 #endif
118 119
119 #endif // VP9_DECODER_VP9_READER_H_ 120 #endif // VP9_DECODER_VP9_READER_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_read_bit_buffer.c ('k') | source/libvpx/vp9/encoder/arm/neon/vp9_quantize_neon.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698