summaryrefslogtreecommitdiff
path: root/vpx/vp8cx.h
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2018-03-28 16:23:26 -0700
committerJerome Jiang <jianj@google.com>2018-03-29 10:49:06 -0700
commit70b86af22e0b99c7bbfefa99646bada0a22b77cc (patch)
tree9317f9b1134bdd107daaf50b3ff2e31b6bbf22ca /vpx/vp8cx.h
parent382afcab988bad359b8fa4892aae1f11b5200b74 (diff)
downloadlibvpx-70b86af22e0b99c7bbfefa99646bada0a22b77cc.tar
libvpx-70b86af22e0b99c7bbfefa99646bada0a22b77cc.tar.gz
libvpx-70b86af22e0b99c7bbfefa99646bada0a22b77cc.tar.bz2
libvpx-70b86af22e0b99c7bbfefa99646bada0a22b77cc.zip
VP9 SVC: Add enum type for framedrop_mode.
Change-Id: I3d4697b00729553e0860762b9264e29b8a89b9d4
Diffstat (limited to 'vpx/vp8cx.h')
-rw-r--r--vpx/vp8cx.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/vpx/vp8cx.h b/vpx/vp8cx.h
index 32ddd492e..860cce686 100644
--- a/vpx/vp8cx.h
+++ b/vpx/vp8cx.h
@@ -748,7 +748,7 @@ typedef struct vpx_svc_layer_id {
int temporal_layer_id; /**< Temporal layer id number. */
} vpx_svc_layer_id_t;
-/*!\brief vp9 svc frame flag parameters.
+/*!\brief vp9 svc frame flag parameters.
*
* This defines the frame flags and buffer indices for each spatial layer for
* svc encoding.
@@ -763,7 +763,18 @@ typedef struct vpx_svc_ref_frame_config {
int alt_fb_idx[VPX_TS_MAX_LAYERS]; /**< Altref buffer index. */
} vpx_svc_ref_frame_config_t;
-/*!\brief vp9 svc frame dropping parameters.
+/*!\brief VP9 svc frame dropping mode.
+ *
+ * This defines the frame drop mode for SVC.
+ *
+ */
+typedef enum {
+ LAYER_DROP, /**< Any spatial layer can drop. */
+ CONSTRAINED_LAYER_DROP
+ /**< Upper layers are constrained to drop if current layer drops. */
+} SVC_LAYER_DROP_MODE;
+
+/*!\brief vp9 svc frame dropping parameters.
*
* This defines the frame drop thresholds for each spatial layer, and the
* the frame dropping mode: 0 = layer based frame dropping (default),
@@ -772,7 +783,8 @@ typedef struct vpx_svc_ref_frame_config {
*/
typedef struct vpx_svc_frame_drop {
int framedrop_thresh[VPX_SS_MAX_LAYERS]; /**< Frame drop thresholds */
- int framedrop_mode; /**< Layer-based or constrained dropping. */
+ SVC_LAYER_DROP_MODE
+ framedrop_mode; /**< Layer-based or constrained dropping. */
} vpx_svc_frame_drop_t;
/*!\cond */