| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 bool internal_source); | 64 bool internal_source); |
| 65 ~VCMGenericEncoder(); | 65 ~VCMGenericEncoder(); |
| 66 int32_t Release(); | 66 int32_t Release(); |
| 67 int32_t InitEncode(const VideoCodec* settings, | 67 int32_t InitEncode(const VideoCodec* settings, |
| 68 int32_t number_of_cores, | 68 int32_t number_of_cores, |
| 69 size_t max_payload_size); | 69 size_t max_payload_size); |
| 70 int32_t Encode(const VideoFrame& frame, | 70 int32_t Encode(const VideoFrame& frame, |
| 71 const CodecSpecificInfo* codec_specific, | 71 const CodecSpecificInfo* codec_specific, |
| 72 const std::vector<FrameType>& frame_types); | 72 const std::vector<FrameType>& frame_types); |
| 73 | 73 |
| 74 const char* ImplementationName() const; | |
| 75 | |
| 76 void SetEncoderParameters(const EncoderParameters& params); | 74 void SetEncoderParameters(const EncoderParameters& params); |
| 77 EncoderParameters GetEncoderParameters() const; | 75 EncoderParameters GetEncoderParameters() const; |
| 78 | 76 |
| 79 int32_t SetPeriodicKeyFrames(bool enable); | 77 int32_t SetPeriodicKeyFrames(bool enable); |
| 80 int32_t RequestFrame(const std::vector<FrameType>& frame_types); | 78 int32_t RequestFrame(const std::vector<FrameType>& frame_types); |
| 81 bool InternalSource() const; | 79 bool InternalSource() const; |
| 82 void OnDroppedFrame(); | 80 void OnDroppedFrame(); |
| 83 bool SupportsNativeHandle() const; | 81 bool SupportsNativeHandle() const; |
| 84 | 82 |
| 85 private: | 83 private: |
| 86 rtc::RaceChecker race_checker_; | 84 rtc::RaceChecker race_checker_; |
| 87 | 85 |
| 88 VideoEncoder* const encoder_ GUARDED_BY(race_checker_); | 86 VideoEncoder* const encoder_ GUARDED_BY(race_checker_); |
| 89 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; | 87 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; |
| 90 const bool internal_source_; | 88 const bool internal_source_; |
| 91 rtc::CriticalSection params_lock_; | 89 rtc::CriticalSection params_lock_; |
| 92 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); | 90 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); |
| 93 bool is_screenshare_; | 91 bool is_screenshare_; |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace webrtc | 94 } // namespace webrtc |
| 97 | 95 |
| 98 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 96 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
| OLD | NEW |