From 34f3fe951254c85abd848441c3cc87bd5e24413b Mon Sep 17 00:00:00 2001 From: angiebird Date: Fri, 13 Mar 2020 16:22:06 -0700 Subject: Move member functions up in simple_encode.h Change-Id: I9c5c74ab52361bcd73aef110729c6e332066c2af --- vp9/simple_encode.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'vp9') 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 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 -- cgit v1.2.3