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 29 matching lines...) Expand all Loading... |
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 explicit VCMCodecDataBase(VCMEncodedFrameCallback* encoded_frame_callback); | 47 explicit VCMCodecDataBase(VCMEncodedFrameCallback* encoded_frame_callback); |
48 ~VCMCodecDataBase(); | 48 ~VCMCodecDataBase(); |
49 | 49 |
50 // Sender Side | |
51 // Returns the default settings for the codec with type |codec_type|. | |
52 static void Codec(VideoCodecType codec_type, VideoCodec* settings); | |
53 | |
54 // Sets the sender side codec and initiates the desired codec given the | 50 // Sets the sender side codec and initiates the desired codec given the |
55 // VideoCodec struct. | 51 // VideoCodec struct. |
56 // Returns true if the codec was successfully registered, false otherwise. | 52 // Returns true if the codec was successfully registered, false otherwise. |
57 bool SetSendCodec(const VideoCodec* send_codec, | 53 bool SetSendCodec(const VideoCodec* send_codec, |
58 int number_of_cores, | 54 int number_of_cores, |
59 size_t max_payload_size); | 55 size_t max_payload_size); |
60 | 56 |
61 // Gets the current send codec. Relevant for internal codecs only. | 57 // Gets the current send codec. Relevant for internal codecs only. |
62 // Returns true if there is a send codec, false otherwise. | 58 // Returns true if there is a send codec, false otherwise. |
63 bool SendCodec(VideoCodec* current_send_codec) const; | 59 bool SendCodec(VideoCodec* current_send_codec) const; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 VCMEncodedFrameCallback* const encoded_frame_callback_; | 144 VCMEncodedFrameCallback* const encoded_frame_callback_; |
149 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; | 145 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; |
150 std::unique_ptr<VCMGenericDecoder> ptr_decoder_; | 146 std::unique_ptr<VCMGenericDecoder> ptr_decoder_; |
151 DecoderMap dec_map_; | 147 DecoderMap dec_map_; |
152 ExternalDecoderMap dec_external_map_; | 148 ExternalDecoderMap dec_external_map_; |
153 }; // VCMCodecDataBase | 149 }; // VCMCodecDataBase |
154 | 150 |
155 } // namespace webrtc | 151 } // namespace webrtc |
156 | 152 |
157 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ | 153 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ |
OLD | NEW |