| 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_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
| 12 #define WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
| 13 | 13 |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
| 18 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 18 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
| 19 | 19 |
| 20 #include "webrtc/base/criticalsection.h" | 20 #include "webrtc/base/criticalsection.h" |
| 21 #include "webrtc/base/race_checker.h" | 21 #include "webrtc/base/race_checker.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 class CriticalSectionWrapper; | |
| 25 | 24 |
| 26 namespace media_optimization { | 25 namespace media_optimization { |
| 27 class MediaOptimization; | 26 class MediaOptimization; |
| 28 } // namespace media_optimization | 27 } // namespace media_optimization |
| 29 | 28 |
| 30 struct EncoderParameters { | 29 struct EncoderParameters { |
| 31 BitrateAllocation target_bitrate; | 30 BitrateAllocation target_bitrate; |
| 32 uint8_t loss_rate; | 31 uint8_t loss_rate; |
| 33 int64_t rtt; | 32 int64_t rtt; |
| 34 uint32_t input_frame_rate; | 33 uint32_t input_frame_rate; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; | 86 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; |
| 88 const bool internal_source_; | 87 const bool internal_source_; |
| 89 rtc::CriticalSection params_lock_; | 88 rtc::CriticalSection params_lock_; |
| 90 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); | 89 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); |
| 91 bool is_screenshare_; | 90 bool is_screenshare_; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace webrtc | 93 } // namespace webrtc |
| 95 | 94 |
| 96 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 95 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
| OLD | NEW |