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 // Receiver Side | 91 // Receiver Side |
92 void ResetReceiver(); | 92 void ResetReceiver(); |
93 | 93 |
94 // Deregisters an external decoder object specified by |payload_type|. | 94 // Deregisters an external decoder object specified by |payload_type|. |
95 bool DeregisterExternalDecoder(uint8_t payload_type); | 95 bool DeregisterExternalDecoder(uint8_t payload_type); |
96 | 96 |
97 // Registers an external decoder object to the payload type |payload_type|. | 97 // Registers an external decoder object to the payload type |payload_type|. |
98 // |internal_render_timing| is set to true if the |external_decoder| has | 98 // |internal_render_timing| is set to true if the |external_decoder| has |
99 // built in rendering which is able to obey the render timestamps of the | 99 // built in rendering which is able to obey the render timestamps of the |
100 // encoded frames. | 100 // encoded frames. |
101 bool RegisterExternalDecoder(VideoDecoder* external_decoder, | 101 void RegisterExternalDecoder(VideoDecoder* external_decoder, |
102 uint8_t payload_type, | 102 uint8_t payload_type, |
103 bool internal_render_timing); | 103 bool internal_render_timing); |
104 | 104 |
105 bool DecoderRegistered() const; | 105 bool DecoderRegistered() const; |
106 | 106 |
107 bool RegisterReceiveCodec(const VideoCodec* receive_codec, | 107 bool RegisterReceiveCodec(const VideoCodec* receive_codec, |
108 int number_of_cores, | 108 int number_of_cores, |
109 bool require_key_frame); | 109 bool require_key_frame); |
110 | 110 |
111 bool DeregisterReceiveCodec(uint8_t payload_type); | 111 bool DeregisterReceiveCodec(uint8_t payload_type); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 VCMEncodedFrameCallback* const encoded_frame_callback_; | 169 VCMEncodedFrameCallback* const encoded_frame_callback_; |
170 rtc::scoped_ptr<VCMGenericEncoder> ptr_encoder_; | 170 rtc::scoped_ptr<VCMGenericEncoder> ptr_encoder_; |
171 VCMGenericDecoder* ptr_decoder_; | 171 VCMGenericDecoder* ptr_decoder_; |
172 DecoderMap dec_map_; | 172 DecoderMap dec_map_; |
173 ExternalDecoderMap dec_external_map_; | 173 ExternalDecoderMap dec_external_map_; |
174 }; // VCMCodecDataBase | 174 }; // VCMCodecDataBase |
175 | 175 |
176 } // namespace webrtc | 176 } // namespace webrtc |
177 | 177 |
178 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ | 178 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ |
OLD | NEW |