diff options
author | angiebird <angiebird@google.com> | 2019-11-25 12:26:08 -0800 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2019-12-06 15:03:23 -0800 |
commit | 94fb57d3a53861ec39b0a09ce36d551cb8157133 (patch) | |
tree | de7dc94e7d56ab10c88083bd49a34529d114774e /vp9/simple_encode.h | |
parent | efa05b7cc9d922a6257358b9c5855c187e924d52 (diff) | |
download | libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.tar.gz libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.tar.bz2 libvpx-94fb57d3a53861ec39b0a09ce36d551cb8157133.zip |
Add GetKeyFrameGroupSize()
Makes vp9_get_frames_to_next_key() public.
Change-Id: I903cefbb3925d6ffc641412c6d60d95a2ff256a4
Diffstat (limited to 'vp9/simple_encode.h')
-rw-r--r-- | vp9/simple_encode.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h index a05ef10cb..471b4e7a8 100644 --- a/vp9/simple_encode.h +++ b/vp9/simple_encode.h @@ -65,6 +65,13 @@ class SimpleEncode { // This function should be called after StartEncode() or EncodeFrame(). void EndEncode(); + // Given a key_frame_index, computes this key frame group's size. + // The key frame group size includes one key frame plus the number of + // following inter frames. Note that the key frame group size only counts the + // show frames. The number of no show frames like alternate refereces are not + // counted. + int GetKeyFrameGroupSize(int key_frame_index) const; + // Encodes a frame // This function should be called after StartEncode() and before EndEncode(). void EncodeFrame(EncodeFrameResult *encode_frame_result); |