| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 bool internal_render_timing; | 44 bool internal_render_timing; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class VCMCodecDataBase { | 47 class VCMCodecDataBase { |
| 48 public: | 48 public: |
| 49 VCMCodecDataBase(VideoEncoderRateObserver* encoder_rate_observer, | 49 VCMCodecDataBase(VideoEncoderRateObserver* encoder_rate_observer, |
| 50 VCMEncodedFrameCallback* encoded_frame_callback); | 50 VCMEncodedFrameCallback* encoded_frame_callback); |
| 51 ~VCMCodecDataBase(); | 51 ~VCMCodecDataBase(); |
| 52 | 52 |
| 53 // Sender Side | 53 // Sender Side |
| 54 // Returns the number of supported codecs (or -1 in case of error). | |
| 55 static int NumberOfCodecs(); | |
| 56 | |
| 57 // Returns the default settings for the codec with id |list_id|. | |
| 58 static bool Codec(int list_id, VideoCodec* settings); | |
| 59 | |
| 60 // Returns the default settings for the codec with type |codec_type|. | 54 // Returns the default settings for the codec with type |codec_type|. |
| 61 static bool Codec(VideoCodecType codec_type, VideoCodec* settings); | 55 static void Codec(VideoCodecType codec_type, VideoCodec* settings); |
| 62 | 56 |
| 63 void ResetSender(); | 57 void ResetSender(); |
| 64 | 58 |
| 65 // Sets the sender side codec and initiates the desired codec given the | 59 // Sets the sender side codec and initiates the desired codec given the |
| 66 // VideoCodec struct. | 60 // VideoCodec struct. |
| 67 // Returns true if the codec was successfully registered, false otherwise. | 61 // Returns true if the codec was successfully registered, false otherwise. |
| 68 bool SetSendCodec(const VideoCodec* send_codec, | 62 bool SetSendCodec(const VideoCodec* send_codec, |
| 69 int number_of_cores, | 63 int number_of_cores, |
| 70 size_t max_payload_size); | 64 size_t max_payload_size); |
| 71 | 65 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 VCMEncodedFrameCallback* const encoded_frame_callback_; | 169 VCMEncodedFrameCallback* const encoded_frame_callback_; |
| 176 rtc::scoped_ptr<VCMGenericEncoder> ptr_encoder_; | 170 rtc::scoped_ptr<VCMGenericEncoder> ptr_encoder_; |
| 177 VCMGenericDecoder* ptr_decoder_; | 171 VCMGenericDecoder* ptr_decoder_; |
| 178 DecoderMap dec_map_; | 172 DecoderMap dec_map_; |
| 179 ExternalDecoderMap dec_external_map_; | 173 ExternalDecoderMap dec_external_map_; |
| 180 }; // VCMCodecDataBase | 174 }; // VCMCodecDataBase |
| 181 | 175 |
| 182 } // namespace webrtc | 176 } // namespace webrtc |
| 183 | 177 |
| 184 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_CODEC_DATABASE_H_ | 178 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_CODEC_DATABASE_H_ |
| OLD | NEW |