michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #pragma once michael@0: michael@0: #include "CC_Common.h" michael@0: #include "ECC_Types.h" michael@0: michael@0: #include michael@0: #include michael@0: michael@0: namespace CSF michael@0: { michael@0: DECLARE_NS_PTR(VideoControl) michael@0: class ECC_API VideoControl michael@0: { michael@0: public: michael@0: NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VideoControl) michael@0: virtual ~VideoControl() {}; michael@0: michael@0: virtual void setVideoMode( bool enable ) = 0; michael@0: michael@0: // window type is platform-specific michael@0: virtual void setPreviewWindow( VideoWindowHandle window, int top, int left, int bottom, int right, RenderScaling style ) = 0; michael@0: virtual void showPreviewWindow( bool show ) = 0; michael@0: michael@0: // device names are in UTF-8 encoding michael@0: virtual std::vector getCaptureDevices() = 0; michael@0: michael@0: virtual std::string getCaptureDevice() = 0; michael@0: virtual bool setCaptureDevice( const std::string& name ) = 0; michael@0: }; michael@0: michael@0: }; // namespace