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 22 matching lines...) Expand all Loading... |
33 uint32_t input_frame_rate; | 33 uint32_t input_frame_rate; |
34 }; | 34 }; |
35 | 35 |
36 class VCMEncodedFrameCallback : public EncodedImageCallback { | 36 class VCMEncodedFrameCallback : public EncodedImageCallback { |
37 public: | 37 public: |
38 VCMEncodedFrameCallback(EncodedImageCallback* post_encode_callback, | 38 VCMEncodedFrameCallback(EncodedImageCallback* post_encode_callback, |
39 media_optimization::MediaOptimization* media_opt); | 39 media_optimization::MediaOptimization* media_opt); |
40 virtual ~VCMEncodedFrameCallback(); | 40 virtual ~VCMEncodedFrameCallback(); |
41 | 41 |
42 // Implements EncodedImageCallback. | 42 // Implements EncodedImageCallback. |
43 int32_t Encoded(const EncodedImage& encoded_image, | 43 EncodedImageCallback::Result OnEncodedImage( |
44 const CodecSpecificInfo* codec_specific, | 44 const EncodedImage& encoded_image, |
45 const RTPFragmentationHeader* fragmentation_header) override; | 45 const CodecSpecificInfo* codec_specific_info, |
| 46 const RTPFragmentationHeader* fragmentation) override; |
46 void SetInternalSource(bool internal_source) { | 47 void SetInternalSource(bool internal_source) { |
47 internal_source_ = internal_source; | 48 internal_source_ = internal_source; |
48 } | 49 } |
49 | 50 |
50 private: | 51 private: |
51 bool internal_source_; | 52 bool internal_source_; |
52 EncodedImageCallback* const post_encode_callback_; | 53 EncodedImageCallback* const post_encode_callback_; |
53 media_optimization::MediaOptimization* const media_opt_; | 54 media_optimization::MediaOptimization* const media_opt_; |
54 }; | 55 }; |
55 | 56 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; | 88 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; |
88 const bool internal_source_; | 89 const bool internal_source_; |
89 rtc::CriticalSection params_lock_; | 90 rtc::CriticalSection params_lock_; |
90 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); | 91 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); |
91 bool is_screenshare_; | 92 bool is_screenshare_; |
92 }; | 93 }; |
93 | 94 |
94 } // namespace webrtc | 95 } // namespace webrtc |
95 | 96 |
96 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ | 97 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ |
OLD | NEW |