summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_common.h
diff options
context:
space:
mode:
authorhui su <huisu@google.com>2016-05-05 15:37:37 -0700
committerhui su <huisu@google.com>2016-05-10 11:48:16 -0700
commitbe3f0698b08c4cdc8641b407de246efa24568f45 (patch)
tree4a6441f4bacf304dc50ced6a86e525896585f3e2 /vp9/common/vp9_common.h
parente2b696c390f0462c751699c4b27b7cf4feae5797 (diff)
downloadlibvpx-be3f0698b08c4cdc8641b407de246efa24568f45.tar
libvpx-be3f0698b08c4cdc8641b407de246efa24568f45.tar.gz
libvpx-be3f0698b08c4cdc8641b407de246efa24568f45.tar.bz2
libvpx-be3f0698b08c4cdc8641b407de246efa24568f45.zip
Add VP9 encoder API for level specification.
Add control API VP9E_SET_TARGET_LEVEL that allows the encoder to control the output bitstream level and/or keep level related statistics. Usage: 255 do not care about level (default) 0 keep level related stats only 10 target for level 1 11 target for level 1.1 . . . 62 target for level 6.2 Usage for vpxenc: --target-level=0/255/10/11... Change-Id: I31d1aeca19358b893e7577b4e63748c8e614034a
Diffstat (limited to 'vp9/common/vp9_common.h')
-rw-r--r--vp9/common/vp9_common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h
index 76e7cd440..2aff132e6 100644
--- a/vp9/common/vp9_common.h
+++ b/vp9/common/vp9_common.h
@@ -67,6 +67,24 @@ static INLINE int get_unsigned_bits(unsigned int num_values) {
#define VP9_FRAME_MARKER 0x2
+typedef enum {
+ LEVEL_UNKNOWN = 0,
+ LEVEL_1 = 10,
+ LEVEL_1_1 = 11,
+ LEVEL_2 = 20,
+ LEVEL_2_1 = 21,
+ LEVEL_3 = 30,
+ LEVEL_3_1 = 31,
+ LEVEL_4 = 40,
+ LEVEL_4_1 = 41,
+ LEVEL_5 = 50,
+ LEVEL_5_1 = 51,
+ LEVEL_5_2 = 52,
+ LEVEL_6 = 60,
+ LEVEL_6_1 = 61,
+ LEVEL_6_2 = 62,
+ LEVEL_NOT_CARE = 255,
+} VP9_LEVEL;
#ifdef __cplusplus
} // extern "C"