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

Side by Side Diff: webrtc/video_encoder.h

Issue 1187573004: iOS HW H264 support. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Move unittest file. Created 5 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 19 matching lines...) Expand all
30 30
31 // Callback function which is called when an image has been encoded. 31 // Callback function which is called when an image has been encoded.
32 virtual int32_t Encoded(const EncodedImage& encoded_image, 32 virtual int32_t Encoded(const EncodedImage& encoded_image,
33 const CodecSpecificInfo* codec_specific_info, 33 const CodecSpecificInfo* codec_specific_info,
34 const RTPFragmentationHeader* fragmentation) = 0; 34 const RTPFragmentationHeader* fragmentation) = 0;
35 }; 35 };
36 36
37 class VideoEncoder { 37 class VideoEncoder {
38 public: 38 public:
39 enum EncoderType { 39 enum EncoderType {
40 kH264,
40 kVp8, 41 kVp8,
41 kVp9, 42 kVp9,
42 kUnsupportedCodec, 43 kUnsupportedCodec,
43 }; 44 };
44 45
45 static VideoEncoder* Create(EncoderType codec_type); 46 static VideoEncoder* Create(EncoderType codec_type);
46 47
47 static VideoCodecVP8 GetDefaultVp8Settings(); 48 static VideoCodecVP8 GetDefaultVp8Settings();
48 static VideoCodecVP9 GetDefaultVp9Settings(); 49 static VideoCodecVP9 GetDefaultVp9Settings();
49 static VideoCodecH264 GetDefaultH264Settings(); 50 static VideoCodecH264 GetDefaultH264Settings();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 155
155 private: 156 private:
156 const EncoderType encoder_type_; 157 const EncoderType encoder_type_;
157 webrtc::VideoEncoder* const encoder_; 158 webrtc::VideoEncoder* const encoder_;
158 159
159 rtc::scoped_ptr<webrtc::VideoEncoder> fallback_encoder_; 160 rtc::scoped_ptr<webrtc::VideoEncoder> fallback_encoder_;
160 EncodedImageCallback* callback_; 161 EncodedImageCallback* callback_;
161 }; 162 };
162 } // namespace webrtc 163 } // namespace webrtc
163 #endif // WEBRTC_VIDEO_ENCODER_H_ 164 #endif // WEBRTC_VIDEO_ENCODER_H_
OLDNEW
« talk/examples/objc/AppRTCDemo/ARDSDPUtils.m ('K') | « webrtc/video_decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698