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

Side by Side Diff: talk/app/webrtc/objc/public/RTCI420Frame.h

Issue 1921493004: Revert of Delete cricket::VideoFrame methods GetYPlane and GetYPitch. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 | « talk/app/webrtc/objc/RTCI420Frame.mm ('k') | webrtc/api/java/jni/peerconnection_jni.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 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #import <Foundation/Foundation.h> 28 #import <Foundation/Foundation.h>
29 29
30 // RTCI420Frame is an ObjectiveC version of cricket::VideoFrame. 30 // RTCI420Frame is an ObjectiveC version of cricket::VideoFrame.
31 // TODO(nisse): It appears it doesn't support any VideoFrame methods,
32 // so let it wrap an webrtc::VideoFrameBuffer instead?
33 @interface RTCI420Frame : NSObject 31 @interface RTCI420Frame : NSObject
34 32
35 @property(nonatomic, readonly) NSUInteger width; 33 @property(nonatomic, readonly) NSUInteger width;
36 @property(nonatomic, readonly) NSUInteger height; 34 @property(nonatomic, readonly) NSUInteger height;
37 @property(nonatomic, readonly) NSUInteger chromaWidth; 35 @property(nonatomic, readonly) NSUInteger chromaWidth;
38 @property(nonatomic, readonly) NSUInteger chromaHeight; 36 @property(nonatomic, readonly) NSUInteger chromaHeight;
39 // These can return NULL if the object is not backed by a buffer. 37 // These can return NULL if the object is not backed by a buffer.
40 @property(nonatomic, readonly) const uint8_t* yPlane; 38 @property(nonatomic, readonly) const uint8_t* yPlane;
41 @property(nonatomic, readonly) const uint8_t* uPlane; 39 @property(nonatomic, readonly) const uint8_t* uPlane;
42 @property(nonatomic, readonly) const uint8_t* vPlane; 40 @property(nonatomic, readonly) const uint8_t* vPlane;
43 @property(nonatomic, readonly) NSInteger yPitch; 41 @property(nonatomic, readonly) NSInteger yPitch;
44 @property(nonatomic, readonly) NSInteger uPitch; 42 @property(nonatomic, readonly) NSInteger uPitch;
45 @property(nonatomic, readonly) NSInteger vPitch; 43 @property(nonatomic, readonly) NSInteger vPitch;
46 44
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS 45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 // Disallow init and don't add to documentation 46 // Disallow init and don't add to documentation
49 - (id)init __attribute__(( 47 - (id)init __attribute__((
50 unavailable("init is not a supported initializer for this class."))); 48 unavailable("init is not a supported initializer for this class.")));
51 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 49 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
52 50
53 @end 51 @end
OLDNEW
« no previous file with comments | « talk/app/webrtc/objc/RTCI420Frame.mm ('k') | webrtc/api/java/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698