diff options
author | angiebird <angiebird@google.com> | 2020-03-13 16:22:06 -0700 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2020-03-13 16:24:26 -0700 |
commit | 34f3fe951254c85abd848441c3cc87bd5e24413b (patch) | |
tree | 27332279255e40fead190fd56c50b785ea1c6846 /vp9/simple_encode.h | |
parent | e3979bd385d4d7517897b92502c727ab5e4831bc (diff) | |
download | libvpx-34f3fe951254c85abd848441c3cc87bd5e24413b.tar libvpx-34f3fe951254c85abd848441c3cc87bd5e24413b.tar.gz libvpx-34f3fe951254c85abd848441c3cc87bd5e24413b.tar.bz2 libvpx-34f3fe951254c85abd848441c3cc87bd5e24413b.zip |
Move member functions up in simple_encode.h
Change-Id: I9c5c74ab52361bcd73aef110729c6e332066c2af
Diffstat (limited to 'vp9/simple_encode.h')
-rw-r--r-- | vp9/simple_encode.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h index 452fc6a63..e0214588a 100644 --- a/vp9/simple_encode.h +++ b/vp9/simple_encode.h @@ -297,7 +297,7 @@ class SimpleEncode { // Therefore it also determines the group of picture size. // If set, VP9 will use the external arf index to make decision. // This function should be called only once after ComputeFirstPassStats(), - // before StartEncde(). + // before StartEncode(). void SetExternalGroupOfPicture(std::vector<int> external_arf_indexes); // Initializes the encoder for actual encoding. @@ -340,6 +340,15 @@ class SimpleEncode { uint64_t GetFramePixelCount() const; private: + // Updates key_frame_group_size_, reset key_frame_group_index_ and init + // ref_frame_info_. + void UpdateKeyFrameGroup(int key_frame_show_index); + + // Update key_frame_group_index_. + void PostUpdateKeyFrameGroupIndex(FrameType frame_type); + + void PostUpdateState(const EncodeFrameResult &encode_frame_result); + class EncodeImpl; int frame_width_; // frame width in pixels. @@ -358,20 +367,13 @@ class SimpleEncode { // 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 + // show frames. The number of no show frames like alternate references are not // counted. int key_frame_group_size_; // The index for the to-be-coded show frame in the key frame group. int key_frame_group_index_; - // Update key_frame_group_size_, reset key_frame_group_index_ and init - // ref_frame_info_. - void UpdateKeyFrameGroup(int key_frame_show_index); - - // Update key_frame_group_index_. - void PostUpdateKeyFrameGroupIndex(FrameType frame_type); - // Each show or no show frame is assigned with a coding index based on its // coding order (starting from zero) in the coding process of the entire // video. The coding index of the to-be-coded frame. @@ -384,8 +386,6 @@ class SimpleEncode { // frame appears? // Reference frames info of the to-be-coded frame. RefFrameInfo ref_frame_info_; - - void PostUpdateState(const EncodeFrameResult &encode_frame_result); }; } // namespace vp9 |