History

Add namespace vp9

angiebird committed 7 years ago

Commit 38b63601 parent 9b79c513 files · +12 −3Browse files

Unified · Split

3 files
  1. test/simple_encode_test.cc +3 −2
  2. vp9/simple_encode.cc +4 −0
  3. vp9/simple_encode.h +5 −1
test/simple_encode_test.cc+3−2
@@ -4,7 +4,8 @@ · 3 unmodified lines
44 #include "third_party/googletest/src/include/gtest/gtest.h"
55 #include "vp9/simple_encode.h"
66
7−namespace {
7+namespace vp9 {
8+
89 const int w = 352;
910 const int h = 288;
1011 const int frame_rate_num = 30;
@@ -105,4 +106,4 @@ TEST(SimpleEncode, EncodeFrameWithQuantizeIndex) { · 94 unmodified lines
105106 simple_encode.EndEncode();
106107 }
107108
108−} // namespace
109+} // namespace vp9
vp9/simple_encode.cc+4−0
@@ -6,6 +6,8 @@ · 5 unmodified lines
66 #include "vp9/simple_encode.h"
77 #include "vp9/vp9_cx_iface.h"
88
9+namespace vp9 {
10+
911 // TODO(angiebird): Merge this function with vpx_img_plane_width()
1012 static int img_plane_width(const vpx_image_t *img, int plane) {
1113 if (plane > 0 && img->x_chroma_shift > 0)
@@ -288,3 +290,5 @@ SimpleEncode::~SimpleEncode() { · 276 unmodified lines
288290 fclose(this->file);
289291 }
290292 }
293+
294+} // namespace vp9
vp9/simple_encode.h+5−1
@@ -13,6 +13,8 @@ · 12 unmodified lines
1313 #include <memory>
1414 #include <vector>
1515
16+namespace vp9 {
17+
1618 enum FrameType {
1719 kKeyFrame = 0,
1820 kInterFrame,
@@ -41,7 +43,7 @@ class SimpleEncode { · 22 unmodified lines
4143 SimpleEncode(SimpleEncode &&) = delete;
4244 SimpleEncode &operator=(SimpleEncode &&) = delete;
4345
44− // Make encoder compute the first pass stats and store it internally for
46+ // Makes encoder compute the first pass stats and store it internally for
4547 // future encode
4648 void ComputeFirstPassStats();
4749
@@ -81,4 +83,6 @@ class SimpleEncode { · 33 unmodified lines
8183 FILE *file;
8284 std::unique_ptr<impl> pimpl;
8385 };
86+
87+} // namespace vp9
8488 #endif // VPX_VP9_SIMPLE_ENCODE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t