]> granicus.if.org Git - libvpx/commitdiff
Add namespace vp9
authorangiebird <angiebird@google.com>
Thu, 14 Nov 2019 20:35:13 +0000 (12:35 -0800)
committerangiebird <angiebird@google.com>
Wed, 20 Nov 2019 18:41:16 +0000 (10:41 -0800)
Change-Id: I29d05557becbfc5d55d1cd1bb709e519d27c928b

test/simple_encode_test.cc
vp9/simple_encode.cc
vp9/simple_encode.h

index 765ea04286bb6fc87e917a6e13f9192f0498dd12..58cfc4b299295489cf7a8482860bfb877d0efd9a 100644 (file)
@@ -4,7 +4,8 @@
 #include "third_party/googletest/src/include/gtest/gtest.h"
 #include "vp9/simple_encode.h"
 
-namespace {
+namespace vp9 {
+
 const int w = 352;
 const int h = 288;
 const int frame_rate_num = 30;
@@ -105,4 +106,4 @@ TEST(SimpleEncode, EncodeFrameWithQuantizeIndex) {
   simple_encode.EndEncode();
 }
 
-}  // namespace
+}  // namespace vp9
index 444fb2c735b800eeb89904af2345542091147333..20a4567dfbb1ba56684a4f67c390c18004e06ffb 100644 (file)
@@ -6,6 +6,8 @@
 #include "vp9/simple_encode.h"
 #include "vp9/vp9_cx_iface.h"
 
+namespace vp9 {
+
 // TODO(angiebird): Merge this function with vpx_img_plane_width()
 static int img_plane_width(const vpx_image_t *img, int plane) {
   if (plane > 0 && img->x_chroma_shift > 0)
@@ -288,3 +290,5 @@ SimpleEncode::~SimpleEncode() {
     fclose(this->file);
   }
 }
+
+}  // namespace vp9
index e4b107c0a2078df7b6f34355f2d8bf05a1732e59..42048be629b526549339da9e7c97572fb8c6a669 100644 (file)
@@ -13,6 +13,8 @@
 #include <memory>
 #include <vector>
 
+namespace vp9 {
+
 enum FrameType {
   kKeyFrame = 0,
   kInterFrame,
@@ -41,7 +43,7 @@ class SimpleEncode {
   SimpleEncode(SimpleEncode &&) = delete;
   SimpleEncode &operator=(SimpleEncode &&) = delete;
 
-  // Make encoder compute the first pass stats and store it internally for
+  // Makes encoder compute the first pass stats and store it internally for
   // future encode
   void ComputeFirstPassStats();
 
@@ -81,4 +83,6 @@ class SimpleEncode {
   FILE *file;
   std::unique_ptr<impl> pimpl;
 };
+
+}  // namespace vp9
 #endif  // VPX_VP9_SIMPLE_ENCODE