From f3bb59209f255aa0376937edbee48c2ac7782dc6 Mon Sep 17 00:00:00 2001 From: Wonkap Jang Date: Mon, 10 Feb 2020 10:30:09 -0800 Subject: avcodec/libvpxenc: add a way to explicitly set temporal layer id In order for rate control to correctly allocate bitrate to each temporal layer, correct temporal layer id has to be set to each frame. This commit provides the ability to set correct temporal layer id for each frame. Signed-off-by: James Zern --- doc/encoders.texi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/encoders.texi b/doc/encoders.texi index 7bae39435e..e23b6b32fe 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1918,7 +1918,17 @@ Currently supports the following options. @table @option @item 0 No temporal layering flags are provided internally, -relies on flags being passed in using metadata in AVFrame. +relies on flags being passed in using @code{metadata} field in @code{AVFrame} +with following keys. +@table @option +@item vp8-flags +Sets the flags passed into the encoder to indicate the referencing scheme for +the current frame. +Refer to function @code{vpx_codec_encode} in @code{vpx/vpx_encoder.h} for more +details. +@item temporal_id +Explicitly sets the temporal id of the current frame to encode. +@end table @item 2 Two temporal layers. 0-1... @item 3 -- cgit v1.2.1