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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCShader.h

Issue 2202823004: iOS: Add support for rendering native CVPixelBuffers directly (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Move guard. Created 4 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
(Empty)
1 /*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import "RTCOpenGLDefines.h"
12
13 @class RTCVideoFrame;
14
15 @protocol RTCShader <NSObject>
16
17 - (BOOL)drawFrame:(RTCVideoFrame *)frame;
18
19 @end
20
21 // Shader for non-native I420 frames.
22 @interface RTCI420Shader : NSObject <RTCShader>
23
24 - (instancetype)init NS_UNAVAILABLE;
25 - (instancetype)initWithContext:(GlContextType *)context NS_DESIGNATED_INITIALIZ ER;
26 - (BOOL)drawFrame:(RTCVideoFrame *)frame;
27
28 @end
29
30 // Native CVPixelBufferRef rendering is only supported on iPhone because it
31 // depends on CVOpenGLESTextureCacheCreate.
32 #if TARGET_OS_IPHONE
33
34 // Shader for native NV12 frames.
35 @interface RTCNativeNV12Shader : NSObject <RTCShader>
36
37 - (instancetype)init NS_UNAVAILABLE;
38 - (instancetype)initWithContext:(GlContextType *)context NS_DESIGNATED_INITIALIZ ER;
39 - (BOOL)drawFrame:(RTCVideoFrame *)frame;
40
41 @end
42
43 #endif // TARGET_OS_IPHONE
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm ('k') | webrtc/sdk/objc/Framework/Classes/RTCShader.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698