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

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

Issue 2993923002: Removing VCMCodecDataBase::Codec and VideoCodingModule::Codec. (Closed)
Patch Set: Remove deprate - let sprang handle when method is removed Created 3 years, 4 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 | « webrtc/modules/video_coding/BUILD.gn ('k') | 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 29 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698