| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 uint8_t payload_type); | 91 uint8_t payload_type); |
| 92 | 92 |
| 93 bool DecoderRegistered() const; | 93 bool DecoderRegistered() const; |
| 94 | 94 |
| 95 bool RegisterReceiveCodec(const VideoCodec* receive_codec, | 95 bool RegisterReceiveCodec(const VideoCodec* receive_codec, |
| 96 int number_of_cores, | 96 int number_of_cores, |
| 97 bool require_key_frame); | 97 bool require_key_frame); |
| 98 | 98 |
| 99 bool DeregisterReceiveCodec(uint8_t payload_type); | 99 bool DeregisterReceiveCodec(uint8_t payload_type); |
| 100 | 100 |
| 101 // Get current receive side codec. Relevant for internal codecs only. | |
| 102 bool ReceiveCodec(VideoCodec* current_receive_codec) const; | |
| 103 | |
| 104 // Get current receive side codec type. Relevant for internal codecs only. | |
| 105 VideoCodecType ReceiveCodec() const; | |
| 106 | |
| 107 // Returns a decoder specified by |payload_type|. The decoded frame callback | 101 // Returns a decoder specified by |payload_type|. The decoded frame callback |
| 108 // of the encoder is set to |decoded_frame_callback|. If no such decoder | 102 // of the encoder is set to |decoded_frame_callback|. If no such decoder |
| 109 // already exists an instance will be created and initialized. | 103 // already exists an instance will be created and initialized. |
| 110 // NULL is returned if no encoder with the specified payload type was found | 104 // NULL is returned if no encoder with the specified payload type was found |
| 111 // and the function failed to create one. | 105 // and the function failed to create one. |
| 112 VCMGenericDecoder* GetDecoder( | 106 VCMGenericDecoder* GetDecoder( |
| 113 const VCMEncodedFrame& frame, | 107 const VCMEncodedFrame& frame, |
| 114 VCMDecodedFrameCallback* decoded_frame_callback); | 108 VCMDecodedFrameCallback* decoded_frame_callback); |
| 115 | 109 |
| 116 // Deletes the memory of the decoder instance |decoder|. Used to delete | 110 // Deletes the memory of the decoder instance |decoder|. Used to delete |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 VCMEncodedFrameCallback* const encoded_frame_callback_; | 150 VCMEncodedFrameCallback* const encoded_frame_callback_; |
| 157 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; | 151 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; |
| 158 VCMGenericDecoder* ptr_decoder_; | 152 VCMGenericDecoder* ptr_decoder_; |
| 159 DecoderMap dec_map_; | 153 DecoderMap dec_map_; |
| 160 ExternalDecoderMap dec_external_map_; | 154 ExternalDecoderMap dec_external_map_; |
| 161 }; // VCMCodecDataBase | 155 }; // VCMCodecDataBase |
| 162 | 156 |
| 163 } // namespace webrtc | 157 } // namespace webrtc |
| 164 | 158 |
| 165 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ | 159 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ |
| OLD | NEW |