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 26 matching lines...) Expand all Loading... |
37 public: | 37 public: |
38 VCMExtDecoderMapItem(VideoDecoder* external_decoder_instance, | 38 VCMExtDecoderMapItem(VideoDecoder* external_decoder_instance, |
39 uint8_t payload_type); | 39 uint8_t payload_type); |
40 | 40 |
41 uint8_t payload_type; | 41 uint8_t payload_type; |
42 VideoDecoder* external_decoder_instance; | 42 VideoDecoder* external_decoder_instance; |
43 }; | 43 }; |
44 | 44 |
45 class VCMCodecDataBase { | 45 class VCMCodecDataBase { |
46 public: | 46 public: |
47 VCMCodecDataBase(VideoEncoderRateObserver* encoder_rate_observer, | 47 explicit VCMCodecDataBase(VCMEncodedFrameCallback* encoded_frame_callback); |
48 VCMEncodedFrameCallback* encoded_frame_callback); | |
49 ~VCMCodecDataBase(); | 48 ~VCMCodecDataBase(); |
50 | 49 |
51 // Sender Side | 50 // Sender Side |
52 // Returns the default settings for the codec with type |codec_type|. | 51 // Returns the default settings for the codec with type |codec_type|. |
53 static void Codec(VideoCodecType codec_type, VideoCodec* settings); | 52 static void Codec(VideoCodecType codec_type, VideoCodec* settings); |
54 | 53 |
55 // Sets the sender side codec and initiates the desired codec given the | 54 // Sets the sender side codec and initiates the desired codec given the |
56 // VideoCodec struct. | 55 // VideoCodec struct. |
57 // Returns true if the codec was successfully registered, false otherwise. | 56 // Returns true if the codec was successfully registered, false otherwise. |
58 bool SetSendCodec(const VideoCodec* send_codec, | 57 bool SetSendCodec(const VideoCodec* send_codec, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 int number_of_cores_; | 147 int number_of_cores_; |
149 size_t max_payload_size_; | 148 size_t max_payload_size_; |
150 bool periodic_key_frames_; | 149 bool periodic_key_frames_; |
151 bool pending_encoder_reset_; | 150 bool pending_encoder_reset_; |
152 VideoCodec send_codec_; | 151 VideoCodec send_codec_; |
153 VideoCodec receive_codec_; | 152 VideoCodec receive_codec_; |
154 uint8_t encoder_payload_type_; | 153 uint8_t encoder_payload_type_; |
155 VideoEncoder* external_encoder_; | 154 VideoEncoder* external_encoder_; |
156 bool internal_source_; | 155 bool internal_source_; |
157 VideoEncoderRateObserver* const encoder_rate_observer_; | |
158 VCMEncodedFrameCallback* const encoded_frame_callback_; | 156 VCMEncodedFrameCallback* const encoded_frame_callback_; |
159 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; | 157 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; |
160 VCMGenericDecoder* ptr_decoder_; | 158 VCMGenericDecoder* ptr_decoder_; |
161 DecoderMap dec_map_; | 159 DecoderMap dec_map_; |
162 ExternalDecoderMap dec_external_map_; | 160 ExternalDecoderMap dec_external_map_; |
163 }; // VCMCodecDataBase | 161 }; // VCMCodecDataBase |
164 | 162 |
165 } // namespace webrtc | 163 } // namespace webrtc |
166 | 164 |
167 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ | 165 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ |
OLD | NEW |