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

Side by Side Diff: source/libvpx/vp9/common/vp9_common_data.c

Issue 111463005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_common_data.h ('k') | source/libvpx/vp9/common/vp9_convolve.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 /* 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 BLOCK_32X32, 101 BLOCK_32X32,
102 } 102 }
103 }; 103 };
104 104
105 const TX_SIZE max_txsize_lookup[BLOCK_SIZES] = { 105 const TX_SIZE max_txsize_lookup[BLOCK_SIZES] = {
106 TX_4X4, TX_4X4, TX_4X4, 106 TX_4X4, TX_4X4, TX_4X4,
107 TX_8X8, TX_8X8, TX_8X8, 107 TX_8X8, TX_8X8, TX_8X8,
108 TX_16X16, TX_16X16, TX_16X16, 108 TX_16X16, TX_16X16, TX_16X16,
109 TX_32X32, TX_32X32, TX_32X32, TX_32X32 109 TX_32X32, TX_32X32, TX_32X32, TX_32X32
110 }; 110 };
111 const TX_SIZE max_uv_txsize_lookup[BLOCK_SIZES] = {
112 TX_4X4, TX_4X4, TX_4X4,
113 TX_4X4, TX_4X4, TX_4X4,
114 TX_8X8, TX_8X8, TX_8X8,
115 TX_16X16, TX_16X16, TX_16X16, TX_32X32
116 };
117 111
118 const TX_SIZE tx_mode_to_biggest_tx_size[TX_MODES] = { 112 const TX_SIZE tx_mode_to_biggest_tx_size[TX_MODES] = {
119 TX_4X4, // ONLY_4X4 113 TX_4X4, // ONLY_4X4
120 TX_8X8, // ALLOW_8X8 114 TX_8X8, // ALLOW_8X8
121 TX_16X16, // ALLOW_16X16 115 TX_16X16, // ALLOW_16X16
122 TX_32X32, // ALLOW_32X32 116 TX_32X32, // ALLOW_32X32
123 TX_32X32, // TX_MODE_SELECT 117 TX_32X32, // TX_MODE_SELECT
124 }; 118 };
125 119
126
127
128 const BLOCK_SIZE ss_size_lookup[BLOCK_SIZES][2][2] = { 120 const BLOCK_SIZE ss_size_lookup[BLOCK_SIZES][2][2] = {
129 // ss_x == 0 ss_x == 0 ss_x == 1 ss_x == 1 121 // ss_x == 0 ss_x == 0 ss_x == 1 ss_x == 1
130 // ss_y == 0 ss_y == 1 ss_y == 0 ss_y == 1 122 // ss_y == 0 ss_y == 1 ss_y == 0 ss_y == 1
131 {{BLOCK_4X4, BLOCK_INVALID}, {BLOCK_INVALID, BLOCK_INVALID}}, 123 {{BLOCK_4X4, BLOCK_INVALID}, {BLOCK_INVALID, BLOCK_INVALID}},
132 {{BLOCK_4X8, BLOCK_4X4}, {BLOCK_INVALID, BLOCK_INVALID}}, 124 {{BLOCK_4X8, BLOCK_4X4}, {BLOCK_INVALID, BLOCK_INVALID}},
133 {{BLOCK_8X4, BLOCK_INVALID}, {BLOCK_4X4, BLOCK_INVALID}}, 125 {{BLOCK_8X4, BLOCK_INVALID}, {BLOCK_4X4, BLOCK_INVALID}},
134 {{BLOCK_8X8, BLOCK_8X4}, {BLOCK_4X8, BLOCK_4X4}}, 126 {{BLOCK_8X8, BLOCK_8X4}, {BLOCK_4X8, BLOCK_4X4}},
135 {{BLOCK_8X16, BLOCK_8X8}, {BLOCK_INVALID, BLOCK_4X8}}, 127 {{BLOCK_8X16, BLOCK_8X8}, {BLOCK_INVALID, BLOCK_4X8}},
136 {{BLOCK_16X8, BLOCK_INVALID}, {BLOCK_8X8, BLOCK_8X4}}, 128 {{BLOCK_16X8, BLOCK_INVALID}, {BLOCK_8X8, BLOCK_8X4}},
137 {{BLOCK_16X16, BLOCK_16X8}, {BLOCK_8X16, BLOCK_8X8}}, 129 {{BLOCK_16X16, BLOCK_16X8}, {BLOCK_8X16, BLOCK_8X8}},
138 {{BLOCK_16X32, BLOCK_16X16}, {BLOCK_INVALID, BLOCK_8X16}}, 130 {{BLOCK_16X32, BLOCK_16X16}, {BLOCK_INVALID, BLOCK_8X16}},
139 {{BLOCK_32X16, BLOCK_INVALID}, {BLOCK_16X16, BLOCK_16X8}}, 131 {{BLOCK_32X16, BLOCK_INVALID}, {BLOCK_16X16, BLOCK_16X8}},
140 {{BLOCK_32X32, BLOCK_32X16}, {BLOCK_16X32, BLOCK_16X16}}, 132 {{BLOCK_32X32, BLOCK_32X16}, {BLOCK_16X32, BLOCK_16X16}},
141 {{BLOCK_32X64, BLOCK_32X32}, {BLOCK_INVALID, BLOCK_16X32}}, 133 {{BLOCK_32X64, BLOCK_32X32}, {BLOCK_INVALID, BLOCK_16X32}},
142 {{BLOCK_64X32, BLOCK_INVALID}, {BLOCK_32X32, BLOCK_32X16}}, 134 {{BLOCK_64X32, BLOCK_INVALID}, {BLOCK_32X32, BLOCK_32X16}},
143 {{BLOCK_64X64, BLOCK_64X32}, {BLOCK_32X64, BLOCK_32X32}}, 135 {{BLOCK_64X64, BLOCK_64X32}, {BLOCK_32X64, BLOCK_32X32}},
144 }; 136 };
145 137
146 138 // Generates 4 bit field in which each bit set to 1 represents
139 // a blocksize partition 1111 means we split 64x64, 32x32, 16x16
140 // and 8x8. 1000 means we just split the 64x64 to 32x32
141 const struct {
142 PARTITION_CONTEXT above;
143 PARTITION_CONTEXT left;
144 } partition_context_lookup[BLOCK_SIZES]= {
145 {15, 15}, // 4X4 - {0b1111, 0b1111}
146 {15, 14}, // 4X8 - {0b1111, 0b1110}
147 {14, 15}, // 8X4 - {0b1110, 0b1111}
148 {14, 14}, // 8X8 - {0b1110, 0b1110}
149 {14, 12}, // 8X16 - {0b1110, 0b1100}
150 {12, 14}, // 16X8 - {0b1100, 0b1110}
151 {12, 12}, // 16X16 - {0b1100, 0b1100}
152 {12, 8 }, // 16X32 - {0b1100, 0b1000}
153 {8, 12}, // 32X16 - {0b1000, 0b1100}
154 {8, 8 }, // 32X32 - {0b1000, 0b1000}
155 {8, 0 }, // 32X64 - {0b1000, 0b0000}
156 {0, 8 }, // 64X32 - {0b0000, 0b1000}
157 {0, 0 }, // 64X64 - {0b0000, 0b0000}
158 };
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_common_data.h ('k') | source/libvpx/vp9/common/vp9_convolve.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698