OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 | 11 |
12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
14 | 14 |
15 #include <memory> | 15 #include <memory> |
16 #include <stack> | 16 #include <stack> |
17 #include <string> | 17 #include <string> |
18 #include <utility> | 18 #include <utility> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
| 21 #include "webrtc/base/atomicops.h" |
| 22 #include "webrtc/base/sequenced_task_checker.h" |
21 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 23 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
22 #include "webrtc/rtc_base/atomicops.h" | |
23 #include "webrtc/rtc_base/sequenced_task_checker.h" | |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 class SimulcastRateAllocator; | 27 class SimulcastRateAllocator; |
28 | 28 |
29 // TODO(brandtr): Remove this class and replace its use with a | 29 // TODO(brandtr): Remove this class and replace its use with a |
30 // WebRtcVideoEncoderFactory. | 30 // WebRtcVideoEncoderFactory. |
31 class VideoEncoderFactory { | 31 class VideoEncoderFactory { |
32 public: | 32 public: |
33 virtual VideoEncoder* Create() = 0; | 33 virtual VideoEncoder* Create() = 0; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 rtc::SequencedTaskChecker encoder_queue_; | 117 rtc::SequencedTaskChecker encoder_queue_; |
118 | 118 |
119 // Store encoders in between calls to Release and InitEncode, so they don't | 119 // Store encoders in between calls to Release and InitEncode, so they don't |
120 // have to be recreated. Remaining encoders are destroyed by the destructor. | 120 // have to be recreated. Remaining encoders are destroyed by the destructor. |
121 std::stack<VideoEncoder*> stored_encoders_; | 121 std::stack<VideoEncoder*> stored_encoders_; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace webrtc | 124 } // namespace webrtc |
125 | 125 |
126 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 126 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
OLD | NEW |