136cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org/* 236cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 336cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * 436cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * Use of this source code is governed by a BSD-style license 536cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * that can be found in the LICENSE file in the root of the source 636cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * tree. An additional intellectual property rights grant can be found 736cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * in the file PATENTS. All contributing project authors may 836cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org * be found in the AUTHORS file in the root of the source tree. 936cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org */ 1036cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 1136cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#ifndef WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 1236cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#define WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 1336cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 1436cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#import <UIKit/UIKit.h> 1536cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#import <QuartzCore/QuartzCore.h> 1636cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 1736cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#include "webrtc/modules/video_render/ios/open_gles20.h" 1836cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 19e68102e04666338b7de9d5bc50fc42da197d1c55fischman@webrtc.org@interface VideoRenderIosView : UIView 2036cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 2136cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org- (BOOL)createContext; 2236cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org- (BOOL)presentFramebuffer; 234765070b8d6f024509c717c04d9b708750666927Miguel Casas-Sanchez- (BOOL)renderFrame:(webrtc::VideoFrame*)frameToRender; 2436cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org- (BOOL)setCoordinatesForZOrder:(const float)zOrder 2536cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org Left:(const float)left 2636cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org Top:(const float)top 2736cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org Right:(const float)right 2836cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org Bottom:(const float)bottom; 2936cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 3036cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org@property(nonatomic, retain) EAGLContext* context; 3136cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 3236cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org@end 3336cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org 3436cf4d2309c394cf458c72c672862223faca008efischman@webrtc.org#endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_RENDER_VIEW_H_ 35