Chromium Code Reviews

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

Issue 2869143002: iOS: Add interface for injecting custom shaders (Closed)
Patch Set: Address comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 /*
2 * Copyright 2017 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 <Foundation/Foundation.h>
12
13 #import <WebRTC/RTCVideoFrame.h>
14
15 #if TARGET_OS_IPHONE
16 @class RTCEAGLVideoView;
17 typedef RTCEAGLVideoView RTCVideoView;
18 #else
19 @class RTCNSGLVideoView;
20 typedef RTCNSGLVideoView RTCVideoView;
21 #endif
22
23 NS_ASSUME_NONNULL_BEGIN
24
25 /**
26 * RTCVideoViewShaderDelegate provides a way for apps to customize the OpenGL(ES ) shaders used in
27 * rendering for the RTCEAGLVideoView/RTCNSGLVideoView.
28 */
29 RTC_EXPORT
30 @protocol RTCVideoViewShaderDelegate
daniela-webrtc 2017/05/11 17:31:21 I'm bit on the fence here if this should be a dele
magjed_webrtc 2017/05/25 14:26:45 Yeah, I need your expertise here - what's the best
daniela-webrtc 2017/05/26 08:31:18 I see. If the video view is not relevant, we can d
magjed_webrtc 2017/05/26 12:05:26 Done.
31
32 /** Callback for I420 frames. Each plane is given as a texture. */
33 - (void)videoView:(RTCVideoView *)videoView
34 didReceiveFrameWithRotation:(RTCVideoRotation)rotation
daniela-webrtc 2017/05/11 17:31:21 didUpload seems like better naming, but see my pre
35 yPlane:(GLuint)yPlane
36 uPlane:(GLuint)uPlane
37 vPlane:(GLuint)vPlane;
38
39 /** Callback for NV12 frames. Each plane is given as a texture. */
40 - (void)videoView:(RTCVideoView *)videoView
41 didReceiveFrameWithRotation:(RTCVideoRotation)rotation
daniela-webrtc 2017/05/11 17:31:21 ^
42 yPlane:(GLuint)yPlane
43 uvPlane:(GLuint)uvPlane;
44
45 @end
46
47 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine