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

Side by Side Diff: source/libvpx/vp9/common/vp9_enums.h

Issue 415333002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 4 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_blockd.c ('k') | source/libvpx/vp9/common/vp9_onyxc_int.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 /* 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_COMMON_VP9_ENUMS_H_ 11 #ifndef VP9_COMMON_VP9_ENUMS_H_
12 #define VP9_COMMON_VP9_ENUMS_H_ 12 #define VP9_COMMON_VP9_ENUMS_H_
13 13
14 #include "./vpx_config.h" 14 #include "./vpx_config.h"
15 15
16 #ifdef __cplusplus 16 #ifdef __cplusplus
17 extern "C" { 17 extern "C" {
18 #endif 18 #endif
19 19
20 #define MI_SIZE_LOG2 3 20 #define MI_SIZE_LOG2 3
21 #define MI_BLOCK_SIZE_LOG2 (6 - MI_SIZE_LOG2) // 64 = 2^6 21 #define MI_BLOCK_SIZE_LOG2 (6 - MI_SIZE_LOG2) // 64 = 2^6
22 22
23 #define MI_SIZE (1 << MI_SIZE_LOG2) // pixels per mi-unit 23 #define MI_SIZE (1 << MI_SIZE_LOG2) // pixels per mi-unit
24 #define MI_BLOCK_SIZE (1 << MI_BLOCK_SIZE_LOG2) // mi-units per max block 24 #define MI_BLOCK_SIZE (1 << MI_BLOCK_SIZE_LOG2) // mi-units per max block
25 25
26 #define MI_MASK (MI_BLOCK_SIZE - 1) 26 #define MI_MASK (MI_BLOCK_SIZE - 1)
27 27
28 // Bitstream profiles indicated by 2-3 bits in the uncompressed header. 28 // Bitstream profiles indicated by 2-3 bits in the uncompressed header.
29 // 00: Profile 0. 8-bit 4:2:0 only. 29 // 00: Profile 0. 8-bit 4:2:0 only.
30 // 10: Profile 1. Adds 4:4:4, 4:2:2, alpha to Profile 0. 30 // 10: Profile 1. Adds 4:4:4, 4:2:2, and 4:4:0 to Profile 0.
31 // 01: Profile 2. Supports 10-bit and 12-bit color only, with 4:2:0 sampling. 31 // 01: Profile 2. Supports 10-bit and 12-bit color only, with 4:2:0 sampling.
32 // 110: Profile 3. Supports 10-bit and 12-bit color only, with 4:2:2/4:4:4 32 // 110: Profile 3. Supports 10-bit and 12-bit color only, with 4:2:2/4:4:4/4:4:0
33 // sampling and alpha. 33 // subsampling.
34 // 111: Undefined profile. 34 // 111: Undefined profile.
35 typedef enum BITSTREAM_PROFILE { 35 typedef enum BITSTREAM_PROFILE {
36 PROFILE_0, 36 PROFILE_0,
37 PROFILE_1, 37 PROFILE_1,
38 PROFILE_2, 38 PROFILE_2,
39 PROFILE_3, 39 PROFILE_3,
40 MAX_PROFILES 40 MAX_PROFILES
41 } BITSTREAM_PROFILE; 41 } BITSTREAM_PROFILE;
42 42
43 typedef enum BIT_DEPTH { 43 typedef enum BIT_DEPTH {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 VP9_LAST_FLAG = 1 << 0, 118 VP9_LAST_FLAG = 1 << 0,
119 VP9_GOLD_FLAG = 1 << 1, 119 VP9_GOLD_FLAG = 1 << 1,
120 VP9_ALT_FLAG = 1 << 2, 120 VP9_ALT_FLAG = 1 << 2,
121 } VP9_REFFRAME; 121 } VP9_REFFRAME;
122 122
123 #ifdef __cplusplus 123 #ifdef __cplusplus
124 } // extern "C" 124 } // extern "C"
125 #endif 125 #endif
126 126
127 #endif // VP9_COMMON_VP9_ENUMS_H_ 127 #endif // VP9_COMMON_VP9_ENUMS_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_blockd.c ('k') | source/libvpx/vp9/common/vp9_onyxc_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698