]> git.sesse.net Git - casparcg/blobdiff - modules/ffmpeg/producer/input.cpp
2.0. Updated namespaces.
[casparcg] / modules / ffmpeg / producer / input.cpp
index 513d909e792628782b80e83817c0acf38feb915e..c8b32cd4a0fc9f8b3d03b6d9ef2827a3ae5706c3 100644 (file)
@@ -55,11 +55,11 @@ extern "C"
 #pragma warning (pop)\r
 #endif\r
 \r
-namespace caspar {\r
+namespace caspar { namespace ffmpeg {\r
 \r
-static const size_t MAX_BUFFER_COUNT = 32;\r
+static const size_t MAX_BUFFER_COUNT = 100;\r
 static const size_t MIN_BUFFER_COUNT = 4;\r
-static const size_t MAX_BUFFER_SIZE  = 32 * 1000000;\r
+static const size_t MAX_BUFFER_SIZE  = 16 * 1000000;\r
        \r
 struct input::implementation : boost::noncopyable\r
 {              \r
@@ -116,8 +116,8 @@ public:
                        read_next_packet();\r
                                                \r
                graph_->set_color("seek", diagnostics::color(1.0f, 0.5f, 0.0f));        \r
-               graph_->set_color("buffer-count", diagnostics::color(0.4f, 0.8f, 0.8f));\r
-               graph_->set_color("buffer-size", diagnostics::color(0.2f, 0.4f, 0.8f)); \r
+               graph_->set_color("buffer-count", diagnostics::color(0.7f, 0.4f, 0.4f));\r
+               graph_->set_color("buffer-size", diagnostics::color(1.0f, 1.0f, 0.0f)); \r
 \r
                thread_ = boost::thread([this]{run();});\r
        }\r
@@ -290,4 +290,4 @@ bool input::try_pop(std::shared_ptr<AVPacket>& packet){return impl_->try_pop(pac
 safe_ptr<AVFormatContext> input::context(){return make_safe(impl_->format_context_);}\r
 size_t input::nb_frames() const {return impl_->nb_frames();}\r
 size_t input::nb_loops() const {return impl_->nb_loops();}\r
-}
\ No newline at end of file
+}}
\ No newline at end of file