ref: 34f3fe951254c85abd848441c3cc87bd5e24413b
parent: e3979bd385d4d7517897b92502c727ab5e4831bc
author: angiebird <angiebird@google.com>
date: Fri Mar 13 12:22:06 EDT 2020
Move member functions up in simple_encode.h Change-Id: I9c5c74ab52361bcd73aef110729c6e332066c2af
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -297,7 +297,7 @@
// 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 @@
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,7 +367,7 @@
// 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_;
@@ -365,13 +374,6 @@
// 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 @@
// frame appears?
// Reference frames info of the to-be-coded frame.
RefFrameInfo ref_frame_info_;
-
- void PostUpdateState(const EncodeFrameResult &encode_frame_result);
};
} // namespace vp9