OLD | NEW |
---|---|
(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 NS_ASSUME_NONNULL_BEGIN | |
16 | |
17 /** | |
18 * RTCVideoViewShader provides a way for apps to customize the OpenGL(ES) shader s used in | |
19 * rendering for the RTCEAGLVideoView/RTCNSGLVideoView. | |
20 */ | |
21 RTC_EXPORT | |
22 @protocol RTCVideoViewShader | |
daniela-webrtc
2017/05/26 13:48:28
It's common for protocols that encapsulate certain
magjed_webrtc
2017/05/28 10:26:07
Done.
| |
23 | |
24 /** Callback for I420 frames. Each plane is given as a texture. */ | |
25 - (void)applyShadingForFrameWithRotation:(RTCVideoRotation)rotation | |
26 yPlane:(GLuint)yPlane | |
27 uPlane:(GLuint)uPlane | |
28 vPlane:(GLuint)vPlane; | |
29 | |
30 /** Callback for NV12 frames. Each plane is given as a texture. */ | |
31 - (void)applyShadingForFrameWithRotation:(RTCVideoRotation)rotation | |
32 yPlane:(GLuint)yPlane | |
33 uvPlane:(GLuint)uvPlane; | |
34 | |
35 @end | |
36 | |
37 NS_ASSUME_NONNULL_END | |
OLD | NEW |