OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_I MPL_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_I MPL_H_ |
12 #define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_I MPL_H_ | 12 #define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_I MPL_H_ |
13 | 13 |
14 #include "webrtc/modules/include/module_common_types.h" | 14 #include "webrtc/modules/include/module_common_types.h" |
15 #include "webrtc/modules/video_render/i_video_render.h" | 15 #include "webrtc/modules/video_render/i_video_render.h" |
16 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 16 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 // Class definitions | 20 // Class definitions |
21 class VideoRenderExternalImpl: IVideoRender, public VideoRenderCallback | 21 class VideoRenderExternalImpl: IVideoRender, public rtc::VideoSinkInterface<Vide oFrame> |
perkj_webrtc
2016/03/31 05:11:58
line length.
nisse-webrtc
2016/03/31 07:07:20
Done.
| |
22 { | 22 { |
23 public: | 23 public: |
24 /* | 24 /* |
25 * Constructor/destructor | 25 * Constructor/destructor |
26 */ | 26 */ |
27 | 27 |
28 VideoRenderExternalImpl(const int32_t id, | 28 VideoRenderExternalImpl(const int32_t id, |
29 const VideoRenderType videoRenderType, | 29 const VideoRenderType videoRenderType, |
30 void* window, const bool fullscreen); | 30 void* window, const bool fullscreen); |
31 | 31 |
32 virtual ~VideoRenderExternalImpl(); | 32 virtual ~VideoRenderExternalImpl(); |
33 | 33 |
34 virtual int32_t Init(); | 34 virtual int32_t Init(); |
35 | 35 |
36 virtual int32_t ChangeWindow(void* window); | 36 virtual int32_t ChangeWindow(void* window); |
37 | 37 |
38 /************************************************************************** | 38 /************************************************************************** |
39 * | 39 * |
40 * Incoming Streams | 40 * Incoming Streams |
41 * | 41 * |
42 *************************************************************************** / | 42 *************************************************************************** / |
43 | 43 |
44 virtual VideoRenderCallback | 44 virtual rtc::VideoSinkInterface<VideoFrame> |
45 * AddIncomingRenderStream(const uint32_t streamId, | 45 * AddIncomingRenderStream(const uint32_t streamId, |
46 const uint32_t zOrder, | 46 const uint32_t zOrder, |
47 const float left, const float top, | 47 const float left, const float top, |
48 const float right, const float bottom); | 48 const float right, const float bottom); |
49 | 49 |
50 virtual int32_t | 50 virtual int32_t |
51 DeleteIncomingRenderStream(const uint32_t streamId); | 51 DeleteIncomingRenderStream(const uint32_t streamId); |
52 | 52 |
53 virtual int32_t | 53 virtual int32_t |
54 GetIncomingRenderStreamProperties(const uint32_t streamId, | 54 GetIncomingRenderStreamProperties(const uint32_t streamId, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 const uint32_t backgroundColorRef, | 106 const uint32_t backgroundColorRef, |
107 const float left, const float top, | 107 const float left, const float top, |
108 const float right, const float bottom); | 108 const float right, const float bottom); |
109 | 109 |
110 virtual int32_t SetBitmap(const void* bitMap, | 110 virtual int32_t SetBitmap(const void* bitMap, |
111 const uint8_t pictureId, | 111 const uint8_t pictureId, |
112 const void* colorKey, const float left, | 112 const void* colorKey, const float left, |
113 const float top, const float right, | 113 const float top, const float right, |
114 const float bottom); | 114 const float bottom); |
115 | 115 |
116 // VideoRenderCallback | 116 // rtc::VideoSinkInterface<VideoFrame> |
117 virtual int32_t RenderFrame(const uint32_t streamId, | 117 void OnFrame(const VideoFrame& videoFrame) override; |
118 const VideoFrame& videoFrame); | |
119 | 118 |
120 private: | 119 private: |
121 CriticalSectionWrapper& _critSect; | 120 CriticalSectionWrapper& _critSect; |
122 bool _fullscreen; | 121 bool _fullscreen; |
123 }; | 122 }; |
124 | 123 |
125 } // namespace webrtc | 124 } // namespace webrtc |
126 | 125 |
127 | 126 |
128 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNA L_IMPL_H_ | 127 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNA L_IMPL_H_ |
OLD | NEW |