- video_channel_context(int index, ogl_device& ogl, const video_format_desc& format_desc) \r
- : index(index)\r
- , format_desc(format_desc)\r
- , execution(print() + L"/execution")\r
- , destruction(print() + L"/destruction")\r
- , ogl(ogl)\r
- {\r
- execution.set_priority_class(above_normal_priority_class);\r
- destruction.set_priority_class(below_normal_priority_class);\r
- }\r
-\r
- const int index;\r
- video_format_desc format_desc;\r
- executor execution;\r
- executor destruction;\r
- ogl_device& ogl;\r
-\r
- std::wstring print() const\r
- {\r
- return L"video_channel[" + boost::lexical_cast<std::wstring>(index+1) + L"-" + format_desc.name + L"]";\r
- }\r
+\r
+public:\r
+ video_channel_context(int index, ogl_device& ogl, const video_format_desc& format_desc);\r
+\r
+ const int index() const;\r
+ video_format_desc get_format_desc();\r
+ void set_format_desc(const video_format_desc& format_desc);\r
+ executor& execution();\r
+ executor& destruction();\r
+ ogl_device& ogl();\r
+ std::wstring print() const;\r
+private:\r
+ struct implementation;\r
+ std::shared_ptr<implementation> impl_;\r