]> granicus.if.org Git - libvpx/commitdiff
Use indicative mood in comments of SimpleEncode
authorangiebird <angiebird@google.com>
Mon, 18 Nov 2019 18:54:18 +0000 (10:54 -0800)
committerangiebird <angiebird@google.com>
Wed, 20 Nov 2019 18:41:16 +0000 (10:41 -0800)
Change-Id: I913e14994646945a7237c9ab65097647fb3a5b5c

vp9/simple_encode.cc
vp9/simple_encode.h

index c7bed73080dd81c20470fc0067d5e7666a276242..faafcc6ba76b0b0fef1a4064c08863828af78494 100644 (file)
@@ -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;
index c78e57093431bffeadd99afff7771f7ca5c6c221..c370e43065479d71c7d2e05a7c4a2e792b416370 100644 (file)
@@ -47,27 +47,27 @@ class SimpleEncode {
   // 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();