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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h

Issue 2989803002: ObjC style fix for injectable video codecs (Closed)
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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
11 #import "WebRTC/RTCVideoCodec.h" 11 #import "WebRTC/RTCVideoCodec.h"
12 12
13 #import "WebRTC/RTCVideoCodecH264.h" 13 #import "WebRTC/RTCVideoCodecH264.h"
14 14
15 #include "webrtc/common_video/include/video_frame.h" 15 #include "webrtc/common_video/include/video_frame.h"
16 #include "webrtc/media/base/codec.h" 16 #include "webrtc/media/base/codec.h"
17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 17 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
18 18
19 NS_ASSUME_NONNULL_BEGIN 19 NS_ASSUME_NONNULL_BEGIN
20 20
21 /* Interfaces for converting to/from internal C++ formats. */ 21 /* Interfaces for converting to/from internal C++ formats. */
22 @interface RTCEncodedImage () 22 @interface RTCEncodedImage ()
23 23
24 - (instancetype)initWithNativeEncodedImage:(webrtc::EncodedImage)encodedImage; 24 - (instancetype)initWithNativeEncodedImage:(webrtc::EncodedImage)encodedImage;
25 - (webrtc::EncodedImage)toCpp; 25 - (webrtc::EncodedImage)nativeEncodedImage;
26 26
27 @end 27 @end
28 28
29 @interface RTCVideoEncoderSettings () 29 @interface RTCVideoEncoderSettings ()
30 30
31 - (instancetype)initWithVideoCodec:(const webrtc::VideoCodec *__nullable)videoCo dec; 31 - (instancetype)initWithNativeVideoCodec:(const webrtc::VideoCodec *__nullable)v ideoCodec;
32 - (std::unique_ptr<webrtc::VideoCodec>)toCpp; 32 - (std::unique_ptr<webrtc::VideoCodec>)createNativeVideoEncoderSettings;
33 33
34 @end 34 @end
35 35
36 @interface RTCCodecSpecificInfoH264 () 36 @interface RTCCodecSpecificInfoH264 ()
37 37
38 - (webrtc::CodecSpecificInfo)toCpp; 38 - (webrtc::CodecSpecificInfo)nativeCodecSpecificInfo;
39 39
40 @end 40 @end
41 41
42 @interface RTCRtpFragmentationHeader () 42 @interface RTCRtpFragmentationHeader ()
43 43
44 - (instancetype)initWithFragmentationHeader: 44 - (instancetype)initWithNativeFragmentationHeader:
45 (const webrtc::RTPFragmentationHeader *__nullable)fragmentationHeader; 45 (const webrtc::RTPFragmentationHeader *__nullable)fragmentationHeader;
46 - (std::unique_ptr<webrtc::RTPFragmentationHeader>)toCpp; 46 - (std::unique_ptr<webrtc::RTPFragmentationHeader>)createNativeFragmentationHead er;
47 47
48 @end 48 @end
49 49
50 @interface RTCVideoCodecInfo () 50 @interface RTCVideoCodecInfo ()
51 51
52 - (instancetype)initWithVideoCodec:(cricket::VideoCodec)videoCodec; 52 - (instancetype)initWithNativeVideoCodec:(cricket::VideoCodec)videoCodec;
53 - (cricket::VideoCodec)toCpp; 53 - (cricket::VideoCodec)nativeVideoCodec;
54 54
55 @end 55 @end
56 56
57 NS_ASSUME_NONNULL_END 57 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698