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 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 | 54 |
55 /************************************************************************** | 55 /************************************************************************** |
56 * | 56 * |
57 * Incoming Streams | 57 * Incoming Streams |
58 * | 58 * |
59 *************************************************************************** / | 59 *************************************************************************** / |
60 | 60 |
61 /* | 61 /* |
62 * Add incoming render stream | 62 * Add incoming render stream |
63 */ | 63 */ |
64 virtual VideoRenderCallback | 64 virtual rtc::VideoSinkInterface<VideoFrame> |
65 * AddIncomingRenderStream(const uint32_t streamId, | 65 * AddIncomingRenderStream(const uint32_t streamId, |
66 const uint32_t zOrder, | 66 const uint32_t zOrder, |
67 const float left, const float top, | 67 const float left, const float top, |
68 const float right, const float bottom); | 68 const float right, const float bottom); |
69 /* | 69 /* |
70 * Delete incoming render stream | 70 * Delete incoming render stream |
71 */ | 71 */ |
72 virtual int32_t | 72 virtual int32_t |
73 DeleteIncomingRenderStream(const uint32_t streamId); | 73 DeleteIncomingRenderStream(const uint32_t streamId); |
74 | 74 |
75 /* | 75 /* |
76 * Add incoming render callback, used for external rendering | 76 * Add incoming render callback, used for external rendering |
77 */ | 77 */ |
78 virtual int32_t | 78 virtual int32_t |
79 AddExternalRenderCallback(const uint32_t streamId, | 79 AddExternalRenderCallback(const uint32_t streamId, |
80 VideoRenderCallback* renderObject); | 80 rtc::VideoSinkInterface<VideoFrame>* rende rObject); |
perkj_webrtc
2016/03/31 05:11:59
line length
| |
81 | 81 |
82 /* | 82 /* |
83 * Get the porperties for an incoming render stream | 83 * Get the porperties for an incoming render stream |
84 */ | 84 */ |
85 virtual int32_t | 85 virtual int32_t |
86 GetIncomingRenderStreamProperties(const uint32_t streamId, | 86 GetIncomingRenderStreamProperties(const uint32_t streamId, |
87 uint32_t& zOrder, | 87 uint32_t& zOrder, |
88 float& left, float& top, | 88 float& left, float& top, |
89 float& right, float& bottom) const ; | 89 float& right, float& bottom) const ; |
90 /* | 90 /* |
91 * Incoming frame rate for the specified stream. | 91 * Incoming frame rate for the specified stream. |
92 */ | 92 */ |
93 virtual uint32_t GetIncomingFrameRate(const uint32_t streamId); | 93 virtual uint32_t GetIncomingFrameRate(const uint32_t streamId); |
94 | 94 |
95 /* | 95 /* |
96 * Returns the number of incoming streams added to this render module | 96 * Returns the number of incoming streams added to this render module |
97 */ | 97 */ |
98 virtual uint32_t GetNumIncomingRenderStreams() const; | 98 virtual uint32_t GetNumIncomingRenderStreams() const; |
99 | 99 |
100 /* | 100 /* |
101 * Returns true if this render module has the streamId added, false otherw ise. | 101 * Returns true if this render module has the streamId added, false otherw ise. |
102 */ | 102 */ |
103 virtual bool HasIncomingRenderStream(const uint32_t streamId) const; | 103 virtual bool HasIncomingRenderStream(const uint32_t streamId) const; |
104 | 104 |
105 /* | 105 /* |
106 * | 106 * |
107 */ | 107 */ |
108 virtual int32_t | 108 virtual int32_t |
109 RegisterRawFrameCallback(const uint32_t streamId, | 109 RegisterRawFrameCallback(const uint32_t streamId, |
110 VideoRenderCallback* callbackObj); | 110 rtc::VideoSinkInterface<VideoFrame>* callba ckObj); |
perkj_webrtc
2016/03/31 05:11:59
line length
| |
111 | 111 |
112 virtual int32_t SetExpectedRenderDelay(uint32_t stream_id, | 112 virtual int32_t SetExpectedRenderDelay(uint32_t stream_id, |
113 int32_t delay_ms); | 113 int32_t delay_ms); |
114 | 114 |
115 /************************************************************************** | 115 /************************************************************************** |
116 * | 116 * |
117 * Start/Stop | 117 * Start/Stop |
118 * | 118 * |
119 *************************************************************************** / | 119 *************************************************************************** / |
120 | 120 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
206 bool _fullScreen; | 206 bool _fullScreen; |
207 | 207 |
208 IVideoRender* _ptrRenderer; | 208 IVideoRender* _ptrRenderer; |
209 typedef std::map<uint32_t, IncomingVideoStream*> IncomingVideoStreamMap; | 209 typedef std::map<uint32_t, IncomingVideoStream*> IncomingVideoStreamMap; |
210 IncomingVideoStreamMap _streamRenderMap; | 210 IncomingVideoStreamMap _streamRenderMap; |
211 }; | 211 }; |
212 | 212 |
213 } // namespace webrtc | 213 } // namespace webrtc |
214 | 214 |
215 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_VIDEO_RENDER_IMPL_H_ | 215 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_VIDEO_RENDER_IMPL_H_ |
OLD | NEW |