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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h

Issue 3015433002: Allow passing null for RTCcodecSpecific info in encoder callback.
Patch Set: rebase Created 3 years, 3 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 | no next file » | 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 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
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 RTC_EXPORT 78 RTC_EXPORT
79 @interface RTCCodecSpecificInfoH264 : NSObject<RTCCodecSpecificInfo> 79 @interface RTCCodecSpecificInfoH264 : NSObject<RTCCodecSpecificInfo>
80 80
81 @property(nonatomic, assign) RTCH264PacketizationMode packetizationMode; 81 @property(nonatomic, assign) RTCH264PacketizationMode packetizationMode;
82 82
83 @end 83 @end
84 84
85 /** Callback block for encoder. */ 85 /** Callback block for encoder. */
86 typedef BOOL (^RTCVideoEncoderCallback)(RTCEncodedImage *frame, 86 typedef BOOL (^RTCVideoEncoderCallback)(RTCEncodedImage *frame,
87 id<RTCCodecSpecificInfo> info, 87 _Nullable id<RTCCodecSpecificInfo> info,
88 RTCRtpFragmentationHeader *header); 88 RTCRtpFragmentationHeader *header);
89 89
90 /** Callback block for decoder. */ 90 /** Callback block for decoder. */
91 typedef void (^RTCVideoDecoderCallback)(RTCVideoFrame *frame); 91 typedef void (^RTCVideoDecoderCallback)(RTCVideoFrame *frame);
92 92
93 typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) { 93 typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) {
94 RTCVideoCodecModeRealtimeVideo, 94 RTCVideoCodecModeRealtimeVideo,
95 RTCVideoCodecModeScreensharing, 95 RTCVideoCodecModeScreensharing,
96 }; 96 };
97 97
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 - (NSInteger)decode:(RTCEncodedImage *)encodedImage 175 - (NSInteger)decode:(RTCEncodedImage *)encodedImage
176 missingFrames:(BOOL)missingFrames 176 missingFrames:(BOOL)missingFrames
177 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader 177 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader
178 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info 178 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info
179 renderTimeMs:(int64_t)renderTimeMs; 179 renderTimeMs:(int64_t)renderTimeMs;
180 - (NSString *)implementationName; 180 - (NSString *)implementationName;
181 181
182 @end 182 @end
183 183
184 NS_ASSUME_NONNULL_END 184 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698