shithub: libvpx

Download patch

ref: f563d975c6d0b1b48f8dc1497cfc895ab523c312
parent: 3afd6e8270d8cb5f03b620c653ff5bfe7157ce64
author: angiebird <angiebird@google.com>
date: Mon Nov 18 05:54:18 EST 2019

Use indicative mood in comments of SimpleEncode

Change-Id: I913e14994646945a7237c9ab65097647fb3a5b5c

--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -145,7 +145,7 @@
       {
         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;
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -47,27 +47,27 @@
   // future encode
   void ComputeFirstPassStats();
 
-  // Output the first pass stats
+  // Outputs the first pass stats
   std::vector<std::vector<double>> 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();