Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: webrtc/modules/video_coding/codec_database.h

Issue 2741853008: Remove ReceiveCodec() getters from VideoCodingModule. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698