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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_tokenize.h

Issue 668403002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 2 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
11 #ifndef VP9_ENCODER_VP9_TOKENIZE_H_ 11 #ifndef VP9_ENCODER_VP9_TOKENIZE_H_
12 #define VP9_ENCODER_VP9_TOKENIZE_H_ 12 #define VP9_ENCODER_VP9_TOKENIZE_H_
13 13
14 #include "vp9/common/vp9_entropy.h" 14 #include "vp9/common/vp9_entropy.h"
15 15
16 #include "vp9/encoder/vp9_block.h" 16 #include "vp9/encoder/vp9_block.h"
17 #include "vp9/encoder/vp9_treewriter.h" 17 #include "vp9/encoder/vp9_treewriter.h"
18 18
19 #ifdef __cplusplus 19 #ifdef __cplusplus
20 extern "C" { 20 extern "C" {
21 #endif 21 #endif
22 22
23 void vp9_tokenize_initialize(); 23 void vp9_tokenize_initialize();
24 24
25 #define EOSB_TOKEN 127 // Not signalled, encoder only 25 #define EOSB_TOKEN 127 // Not signalled, encoder only
26 26
27 typedef struct { 27 typedef struct {
28 int16_t token; 28 int16_t token;
29 #if CONFIG_VP9_HIGHBITDEPTH
30 int32_t extra;
31 #else
29 int16_t extra; 32 int16_t extra;
33 #endif
30 } TOKENVALUE; 34 } TOKENVALUE;
31 35
32 typedef struct { 36 typedef struct {
33 const vp9_prob *context_tree; 37 const vp9_prob *context_tree;
38 #if CONFIG_VP9_HIGHBITDEPTH
39 int32_t extra;
40 #else
34 int16_t extra; 41 int16_t extra;
42 #endif
35 uint8_t token; 43 uint8_t token;
36 uint8_t skip_eob_node; 44 uint8_t skip_eob_node;
37 } TOKENEXTRA; 45 } TOKENEXTRA;
38 46
39 extern const vp9_tree_index vp9_coef_tree[]; 47 extern const vp9_tree_index vp9_coef_tree[];
40 extern const vp9_tree_index vp9_coef_con_tree[]; 48 extern const vp9_tree_index vp9_coef_con_tree[];
41 extern struct vp9_token vp9_coef_encodings[]; 49 extern struct vp9_token vp9_coef_encodings[];
42 50
43 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); 51 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
52 int vp9_has_high_freq_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
44 53
45 struct VP9_COMP; 54 struct VP9_COMP;
46 55
47 void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run, 56 void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run,
48 BLOCK_SIZE bsize); 57 BLOCK_SIZE bsize);
49 58
50 extern const int16_t *vp9_dct_value_cost_ptr; 59 extern const int16_t *vp9_dct_value_cost_ptr;
51 /* TODO: The Token field should be broken out into a separate char array to 60 /* TODO: The Token field should be broken out into a separate char array to
52 * improve cache locality, since it's needed for costing when the rest of the 61 * improve cache locality, since it's needed for costing when the rest of the
53 * fields are not. 62 * fields are not.
54 */ 63 */
55 extern const TOKENVALUE *vp9_dct_value_tokens_ptr; 64 extern const TOKENVALUE *vp9_dct_value_tokens_ptr;
65 #if CONFIG_VP9_HIGHBITDEPTH
66 extern const int16_t *vp9_dct_value_cost_high10_ptr;
67 extern const TOKENVALUE *vp9_dct_value_tokens_high10_ptr;
68 extern const int16_t *vp9_dct_value_cost_high12_ptr;
69 extern const TOKENVALUE *vp9_dct_value_tokens_high12_ptr;
70 #endif // CONFIG_VP9_HIGHBITDEPTH
56 71
57 #ifdef __cplusplus 72 #ifdef __cplusplus
58 } // extern "C" 73 } // extern "C"
59 #endif 74 #endif
60 75
61 #endif // VP9_ENCODER_VP9_TOKENIZE_H_ 76 #endif // VP9_ENCODER_VP9_TOKENIZE_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_temporal_filter.c ('k') | source/libvpx/vp9/encoder/vp9_tokenize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698