From: angiebird Date: Mon, 18 Nov 2019 18:54:18 +0000 (-0800) Subject: Use indicative mood in comments of SimpleEncode X-Git-Tag: v1.8.2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f563d975c6d0b1b48f8dc1497cfc895ab523c312;p=libvpx Use indicative mood in comments of SimpleEncode Change-Id: I913e14994646945a7237c9ab65097647fb3a5b5c --- diff --git a/vp9/simple_encode.cc b/vp9/simple_encode.cc index c7bed7308..faafcc6ba 100644 --- a/vp9/simple_encode.cc +++ b/vp9/simple_encode.cc @@ -145,7 +145,7 @@ void SimpleEncode::ComputeFirstPassStats() { { int64_t time_stamp; int64_t time_end; - int flush = 1; // Make vp9_get_compressed_data process a frame + int flush = 1; // Makes vp9_get_compressed_data process a frame size_t size; unsigned int frame_flags = 0; ENCODE_FRAME_RESULT encode_frame_info; diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h index c78e57093..c370e4306 100644 --- a/vp9/simple_encode.h +++ b/vp9/simple_encode.h @@ -47,27 +47,27 @@ class SimpleEncode { // future encode void ComputeFirstPassStats(); - // Output the first pass stats + // Outputs the first pass stats std::vector> ObserveFirstPassStats(); - // Initialize the encoder for actual encoding + // Initializes the encoder for actual encoding // This funtion should be called after ComputeFirstPassStats() void StartEncode(); - // Free the encoder + // Frees the encoder // This funtion should be called after StartEncode() or EncodeFrame() void EndEncode(); - // Encode a frame + // Encodes a frame // This funtion should be called after StartEncode() before EndEncode() void EncodeFrame(EncodeFrameResult *encode_frame_result); - // Encode a frame with a specific quantize index + // Encodes a frame with a specific quantize index // This funtion should be called after StartEncode() before EndEncode() void EncodeFrameWithQuantizeIndex(EncodeFrameResult *encode_frame_result, int quantize_index); - // Get the number of coding frames for the video. The coding frames include + // Gets the number of coding frames for the video. The coding frames include // show frame and no show frame. // This funtion should be called after ComputeFirstPassStats() int GetCodingFrameNum();