| 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 |
| 11 #ifndef WEBRTC_VIDEO_VIE_ENCODER_H_ | 11 #ifndef WEBRTC_VIDEO_VIE_ENCODER_H_ |
| 12 #define WEBRTC_VIDEO_VIE_ENCODER_H_ | 12 #define WEBRTC_VIDEO_VIE_ENCODER_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/api/video/video_rotation.h" | 18 #include "webrtc/api/video/video_rotation.h" |
| 19 #include "webrtc/api/video_codecs/video_encoder.h" | |
| 20 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" |
| 21 #include "webrtc/base/event.h" | 20 #include "webrtc/base/event.h" |
| 22 #include "webrtc/base/sequenced_task_checker.h" | 21 #include "webrtc/base/sequenced_task_checker.h" |
| 23 #include "webrtc/base/task_queue.h" | 22 #include "webrtc/base/task_queue.h" |
| 24 #include "webrtc/call/call.h" | 23 #include "webrtc/call/call.h" |
| 25 #include "webrtc/common_types.h" | 24 #include "webrtc/common_types.h" |
| 26 #include "webrtc/common_video/include/video_bitrate_allocator.h" | 25 #include "webrtc/common_video/include/video_bitrate_allocator.h" |
| 27 #include "webrtc/media/base/videosinkinterface.h" | 26 #include "webrtc/media/base/videosinkinterface.h" |
| 28 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 27 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
| 29 #include "webrtc/modules/video_coding/utility/quality_scaler.h" | 28 #include "webrtc/modules/video_coding/utility/quality_scaler.h" |
| 30 #include "webrtc/modules/video_coding/video_coding_impl.h" | 29 #include "webrtc/modules/video_coding/video_coding_impl.h" |
| 31 #include "webrtc/system_wrappers/include/atomic32.h" | 30 #include "webrtc/system_wrappers/include/atomic32.h" |
| 32 #include "webrtc/typedefs.h" | 31 #include "webrtc/typedefs.h" |
| 33 #include "webrtc/video/overuse_frame_detector.h" | 32 #include "webrtc/video/overuse_frame_detector.h" |
| 33 #include "webrtc/video_encoder.h" |
| 34 #include "webrtc/video_send_stream.h" | 34 #include "webrtc/video_send_stream.h" |
| 35 | 35 |
| 36 namespace webrtc { | 36 namespace webrtc { |
| 37 | 37 |
| 38 class ProcessThread; | 38 class ProcessThread; |
| 39 class SendStatisticsProxy; | 39 class SendStatisticsProxy; |
| 40 class VideoBitrateAllocationObserver; | 40 class VideoBitrateAllocationObserver; |
| 41 | 41 |
| 42 // VieEncoder represent a video encoder that accepts raw video frames as input | 42 // VieEncoder represent a video encoder that accepts raw video frames as input |
| 43 // and produces an encoded bit stream. | 43 // and produces an encoded bit stream. |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // All public methods are proxied to |encoder_queue_|. It must must be | 245 // All public methods are proxied to |encoder_queue_|. It must must be |
| 246 // destroyed first to make sure no tasks are run that use other members. | 246 // destroyed first to make sure no tasks are run that use other members. |
| 247 rtc::TaskQueue encoder_queue_; | 247 rtc::TaskQueue encoder_queue_; |
| 248 | 248 |
| 249 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 249 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace webrtc | 252 } // namespace webrtc |
| 253 | 253 |
| 254 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 254 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
| OLD | NEW |