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

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

Issue 2869143002: iOS: Add interface for injecting custom shaders (Closed)
Patch Set: Clean Created 3 years, 7 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 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
31
32 /** Callback for I420 frames. Each plane is given as a texture. */
33 - (void)videoView:(RTCVideoView *)videoView
34 didReceiveFrameWithRotation:(RTCVideoRotation)rotation
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
42 yPlane:(GLuint)yPlane
43 uvPlane:(GLuint)uvPlane;
44
45 @end
46
47 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698