| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Identifier for an A/V synchronization group. Empty string to disable. | 173 // Identifier for an A/V synchronization group. Empty string to disable. |
| 174 // TODO(pbos): Synchronize streams in a sync group, not just video streams | 174 // TODO(pbos): Synchronize streams in a sync group, not just video streams |
| 175 // to one of the audio streams. | 175 // to one of the audio streams. |
| 176 std::string sync_group; | 176 std::string sync_group; |
| 177 | 177 |
| 178 // Called for each incoming video frame, i.e. in encoded state. E.g. used | 178 // Called for each incoming video frame, i.e. in encoded state. E.g. used |
| 179 // when | 179 // when |
| 180 // saving the stream to a file. 'nullptr' disables the callback. | 180 // saving the stream to a file. 'nullptr' disables the callback. |
| 181 EncodedFrameObserver* pre_decode_callback = nullptr; | 181 EncodedFrameObserver* pre_decode_callback = nullptr; |
| 182 | 182 |
| 183 // Called for each decoded frame. E.g. used when adding effects to the | |
| 184 // decoded | |
| 185 // stream. 'nullptr' disables the callback. | |
| 186 // TODO(tommi): This seems to be only used by a test or two. Consider | |
| 187 // removing it (and use an appropriate alternative in the tests) as well | |
| 188 // as the associated code in VideoStreamDecoder. | |
| 189 I420FrameCallback* pre_render_callback = nullptr; | |
| 190 | |
| 191 // Target delay in milliseconds. A positive value indicates this stream is | 183 // Target delay in milliseconds. A positive value indicates this stream is |
| 192 // used for streaming instead of a real-time call. | 184 // used for streaming instead of a real-time call. |
| 193 int target_delay_ms = 0; | 185 int target_delay_ms = 0; |
| 194 }; | 186 }; |
| 195 | 187 |
| 196 // Starts stream activity. | 188 // Starts stream activity. |
| 197 // When a stream is active, it can receive, process and deliver packets. | 189 // When a stream is active, it can receive, process and deliver packets. |
| 198 virtual void Start() = 0; | 190 virtual void Start() = 0; |
| 199 // Stops stream activity. | 191 // Stops stream activity. |
| 200 // When a stream is stopped, it can't receive, process or deliver packets. | 192 // When a stream is stopped, it can't receive, process or deliver packets. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 214 EnableEncodedFrameRecording(rtc::kInvalidPlatformFileValue, 0); | 206 EnableEncodedFrameRecording(rtc::kInvalidPlatformFileValue, 0); |
| 215 } | 207 } |
| 216 | 208 |
| 217 protected: | 209 protected: |
| 218 virtual ~VideoReceiveStream() {} | 210 virtual ~VideoReceiveStream() {} |
| 219 }; | 211 }; |
| 220 | 212 |
| 221 } // namespace webrtc | 213 } // namespace webrtc |
| 222 | 214 |
| 223 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 215 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |