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