| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 int32_t SetTransportCallback(VCMPacketizationCallback* transport); | 48 int32_t SetTransportCallback(VCMPacketizationCallback* transport); |
| 49 /** | 49 /** |
| 50 * Set media Optimization | 50 * Set media Optimization |
| 51 */ | 51 */ |
| 52 void SetMediaOpt (media_optimization::MediaOptimization* mediaOpt); | 52 void SetMediaOpt (media_optimization::MediaOptimization* mediaOpt); |
| 53 | 53 |
| 54 void SetPayloadType(uint8_t payloadType) { _payloadType = payloadType; }; | 54 void SetPayloadType(uint8_t payloadType) { _payloadType = payloadType; }; |
| 55 void SetInternalSource(bool internalSource) { _internalSource = internalSour
ce; }; | 55 void SetInternalSource(bool internalSource) { _internalSource = internalSour
ce; }; |
| 56 | 56 |
| 57 void SetRotation(VideoRotation rotation) { _rotation = rotation; } | 57 void SetRotation(VideoRotation rotation) { _rotation = rotation; } |
| 58 void SignalLastEncoderImplementationUsed( |
| 59 const char* encoder_implementation_name); |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 VCMPacketizationCallback* _sendCallback; | 62 VCMPacketizationCallback* send_callback_; |
| 61 media_optimization::MediaOptimization* _mediaOpt; | 63 media_optimization::MediaOptimization* _mediaOpt; |
| 62 uint8_t _payloadType; | 64 uint8_t _payloadType; |
| 63 bool _internalSource; | 65 bool _internalSource; |
| 64 VideoRotation _rotation; | 66 VideoRotation _rotation; |
| 65 | 67 |
| 66 EncodedImageCallback* post_encode_callback_; | 68 EncodedImageCallback* post_encode_callback_; |
| 67 | 69 |
| 68 #ifdef DEBUG_ENCODER_BIT_STREAM | 70 #ifdef DEBUG_ENCODER_BIT_STREAM |
| 69 FILE* _bitStreamAfterEncoder; | 71 FILE* _bitStreamAfterEncoder; |
| 70 #endif | 72 #endif |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 140 |
| 139 void OnDroppedFrame(); | 141 void OnDroppedFrame(); |
| 140 | 142 |
| 141 bool SupportsNativeHandle() const; | 143 bool SupportsNativeHandle() const; |
| 142 | 144 |
| 143 int GetTargetFramerate(); | 145 int GetTargetFramerate(); |
| 144 | 146 |
| 145 private: | 147 private: |
| 146 VideoEncoder* const encoder_; | 148 VideoEncoder* const encoder_; |
| 147 VideoEncoderRateObserver* const rate_observer_; | 149 VideoEncoderRateObserver* const rate_observer_; |
| 148 VCMEncodedFrameCallback* vcm_encoded_frame_callback_; | 150 VCMEncodedFrameCallback* vcm_encoded_frame_callback_; |
| 149 uint32_t bit_rate_; | 151 mutable rtc::CriticalSection rates_lock_; |
| 150 uint32_t frame_rate_; | 152 uint32_t bit_rate_ GUARDED_BY(rates_lock_); |
| 153 uint32_t frame_rate_ GUARDED_BY(rates_lock_); |
| 151 const bool internal_source_; | 154 const bool internal_source_; |
| 152 mutable rtc::CriticalSection rates_lock_; | |
| 153 VideoRotation rotation_; | 155 VideoRotation rotation_; |
| 154 bool is_screenshare_; | 156 bool is_screenshare_; |
| 155 }; // end of VCMGenericEncoder class | 157 }; // end of VCMGenericEncoder class |
| 156 | 158 |
| 157 } // namespace webrtc | 159 } // namespace webrtc |
| 158 | 160 |
| 159 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 161 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
| OLD | NEW |