| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license | |
| 5 * that can be found in the LICENSE file in the root of the source | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_LINUX_VIDEO_X11_RENDER_H_ | |
| 12 #define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_LINUX_VIDEO_X11_RENDER_H_ | |
| 13 | |
| 14 #include "webrtc/modules/video_render/video_render_defines.h" | |
| 15 | |
| 16 #include <X11/Xlib.h> | |
| 17 #include <map> | |
| 18 | |
| 19 namespace webrtc { | |
| 20 class CriticalSectionWrapper; | |
| 21 | |
| 22 class VideoX11Channel; | |
| 23 | |
| 24 class VideoX11Render | |
| 25 { | |
| 26 | |
| 27 public: | |
| 28 VideoX11Render(Window window); | |
| 29 ~VideoX11Render(); | |
| 30 | |
| 31 int32_t Init(); | |
| 32 int32_t ChangeWindow(Window window); | |
| 33 | |
| 34 VideoX11Channel* CreateX11RenderChannel(int32_t streamId, | |
| 35 int32_t zOrder, | |
| 36 const float left, | |
| 37 const float top, | |
| 38 const float right, | |
| 39 const float bottom); | |
| 40 | |
| 41 int32_t DeleteX11RenderChannel(int32_t streamId); | |
| 42 | |
| 43 int32_t GetIncomingStreamProperties(int32_t streamId, | |
| 44 uint32_t& zOrder, | |
| 45 float& left, float& top, | |
| 46 float& right, float& bottom); | |
| 47 | |
| 48 private: | |
| 49 Window _window; | |
| 50 CriticalSectionWrapper& _critSect; | |
| 51 std::map<int, VideoX11Channel*> _streamIdToX11ChannelMap; | |
| 52 | |
| 53 }; | |
| 54 | |
| 55 | |
| 56 } // namespace webrtc | |
| 57 | |
| 58 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_LINUX_VIDEO_X11_RENDER_H_ | |
| OLD | NEW |