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