OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 rtc::CritScope lock(&cs_); | 65 rtc::CritScope lock(&cs_); |
66 if (callback_) { | 66 if (callback_) { |
67 return callback_->OnEncodedImage(encoded_image, codec_specific_info, | 67 return callback_->OnEncodedImage(encoded_image, codec_specific_info, |
68 fragmentation); | 68 fragmentation); |
69 } | 69 } |
70 return Result(Result::ERROR_SEND_FAILED); | 70 return Result(Result::ERROR_SEND_FAILED); |
71 } | 71 } |
72 | 72 |
73 private: | 73 private: |
74 rtc::CriticalSection cs_; | 74 rtc::CriticalSection cs_; |
75 EncodedImageCallback* callback_ GUARDED_BY(cs_); | 75 EncodedImageCallback* callback_ RTC_GUARDED_BY(cs_); |
76 }; | 76 }; |
77 | 77 |
78 class VideoCodingModuleImpl : public VideoCodingModule { | 78 class VideoCodingModuleImpl : public VideoCodingModule { |
79 public: | 79 public: |
80 VideoCodingModuleImpl(Clock* clock, | 80 VideoCodingModuleImpl(Clock* clock, |
81 EventFactory* event_factory, | 81 EventFactory* event_factory, |
82 NackSender* nack_sender, | 82 NackSender* nack_sender, |
83 KeyFrameRequestSender* keyframe_request_sender, | 83 KeyFrameRequestSender* keyframe_request_sender, |
84 EncodedImageCallback* pre_decode_image_callback) | 84 EncodedImageCallback* pre_decode_image_callback) |
85 : VideoCodingModule(), | 85 : VideoCodingModule(), |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 // new jitter buffer is in place. | 274 // new jitter buffer is in place. |
275 VideoCodingModule* VideoCodingModule::Create(Clock* clock, | 275 VideoCodingModule* VideoCodingModule::Create(Clock* clock, |
276 EventFactory* event_factory) { | 276 EventFactory* event_factory) { |
277 RTC_DCHECK(clock); | 277 RTC_DCHECK(clock); |
278 RTC_DCHECK(event_factory); | 278 RTC_DCHECK(event_factory); |
279 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nullptr, | 279 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nullptr, |
280 nullptr); | 280 nullptr); |
281 } | 281 } |
282 | 282 |
283 } // namespace webrtc | 283 } // namespace webrtc |
OLD | NEW |