Unified · Split
| @@ -4,7 +4,8 @@ · 3 unmodified lines | ||
| 4 | 4 | #include "third_party/googletest/src/include/gtest/gtest.h" |
| 5 | 5 | #include "vp9/simple_encode.h" |
| 6 | 6 | |
| 7 | −namespace { | |
| 7 | +namespace vp9 { | |
| 8 | + | |
| 8 | 9 | const int w = 352; |
| 9 | 10 | const int h = 288; |
| 10 | 11 | const int frame_rate_num = 30; |
| @@ -105,4 +106,4 @@ TEST(SimpleEncode, EncodeFrameWithQuantizeIndex) { · 94 unmodified lines | ||
| 105 | 106 | simple_encode.EndEncode(); |
| 106 | 107 | } |
| 107 | 108 | |
| 108 | −} // namespace | |
| 109 | +} // namespace vp9 | |
| @@ -6,6 +6,8 @@ · 5 unmodified lines | ||
| 6 | 6 | #include "vp9/simple_encode.h" |
| 7 | 7 | #include "vp9/vp9_cx_iface.h" |
| 8 | 8 | |
| 9 | +namespace vp9 { | |
| 10 | + | |
| 9 | 11 | // TODO(angiebird): Merge this function with vpx_img_plane_width() |
| 10 | 12 | static int img_plane_width(const vpx_image_t *img, int plane) { |
| 11 | 13 | if (plane > 0 && img->x_chroma_shift > 0) |
| @@ -288,3 +290,5 @@ SimpleEncode::~SimpleEncode() { · 276 unmodified lines | ||
| 288 | 290 | fclose(this->file); |
| 289 | 291 | } |
| 290 | 292 | } |
| 293 | + | |
| 294 | +} // namespace vp9 | |
| @@ -13,6 +13,8 @@ · 12 unmodified lines | ||
| 13 | 13 | #include <memory> |
| 14 | 14 | #include <vector> |
| 15 | 15 | |
| 16 | +namespace vp9 { | |
| 17 | + | |
| 16 | 18 | enum FrameType { |
| 17 | 19 | kKeyFrame = 0, |
| 18 | 20 | kInterFrame, |
| @@ -41,7 +43,7 @@ class SimpleEncode { · 22 unmodified lines | ||
| 41 | 43 | SimpleEncode(SimpleEncode &&) = delete; |
| 42 | 44 | SimpleEncode &operator=(SimpleEncode &&) = delete; |
| 43 | 45 | |
| 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 | |
| 45 | 47 | // future encode |
| 46 | 48 | void ComputeFirstPassStats(); |
| 47 | 49 | |
| @@ -81,4 +83,6 @@ class SimpleEncode { · 33 unmodified lines | ||
| 81 | 83 | FILE *file; |
| 82 | 84 | std::unique_ptr<impl> pimpl; |
| 83 | 85 | }; |
| 86 | + | |
| 87 | +} // namespace vp9 | |
| 84 | 88 | #endif // VPX_VP9_SIMPLE_ENCODE |