diff options
author | Marco Paniconi <marpan@google.com> | 2018-03-14 10:03:31 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2018-03-15 21:04:59 -0700 |
commit | 2640f25072884abb363a011268e411e46e652da5 (patch) | |
tree | 17a12400bce603b5b5365ecd7bcf4858fe01ad75 /vpx | |
parent | d07a5bfbf868eec93f01dfc7cb106e44fe512db9 (diff) | |
download | libvpx-2640f25072884abb363a011268e411e46e652da5.tar libvpx-2640f25072884abb363a011268e411e46e652da5.tar.gz libvpx-2640f25072884abb363a011268e411e46e652da5.tar.bz2 libvpx-2640f25072884abb363a011268e411e46e652da5.zip |
vp9-svc: Frame dropper for SVC.
If a given spatial layer decides to drop, due to the
buffer/overshoot conditions for that layer, then drop
that current spatial layer and all spatial layers above.
In the current implementation the svc frame counter
(and hence the pattern for the non-flexible SVC case)
are updated on frame drops.
Also add last spatial layer encoded to the pkt.
This is useful for RTC applications that enable
frame dropping for SVC.
Update to the SVC datarate tests:
enabled frame dropper on all SVC datarate tests, and
made a fix to properly set the temporal_layer_id, which
works now even on frame drops.
Change-Id: If828c193f3cb6b1839803fd52fe9fbbda5b5a039
Diffstat (limited to 'vpx')
-rw-r--r-- | vpx/vpx_encoder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vpx/vpx_encoder.h b/vpx/vpx_encoder.h index a389b56ad..dfdebe356 100644 --- a/vpx/vpx_encoder.h +++ b/vpx/vpx_encoder.h @@ -181,6 +181,9 @@ typedef struct vpx_codec_cx_pkt { * first one.*/ unsigned int width[VPX_SS_MAX_LAYERS]; /**< frame width */ unsigned int height[VPX_SS_MAX_LAYERS]; /**< frame height */ + /*!\brief Last spatial layer frame in this packet. VP8 will always be set + * to 0.*/ + unsigned int last_spatial_layer_encoded; } frame; /**< data for compressed frame packet */ vpx_fixed_buf_t twopass_stats; /**< data for two-pass packet */ vpx_fixed_buf_t firstpass_mb_stats; /**< first pass mb packet */ |