summaryrefslogtreecommitdiff
path: root/vp9/simple_encode.h
diff options
context:
space:
mode:
authorangiebird <angiebird@google.com>2019-11-25 12:26:08 -0800
committerangiebird <angiebird@google.com>2019-12-06 15:03:23 -0800
commit94fb57d3a53861ec39b0a09ce36d551cb8157133 (patch)
treede7dc94e7d56ab10c88083bd49a34529d114774e /vp9/simple_encode.h
parentefa05b7cc9d922a6257358b9c5855c187e924d52 (diff)
downloadlibvpx-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.h7
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);