VKGLES2View Class Reference

Inherits from UIView
Declared in VKGLES2View.h

Overview

VideoKit uses opengl framework to render pictures & make color conversion fastly. VKGLES2View is a subclass of UIView and its opengl settings are ready for opengl rendering.

– initGLWithDecodeManager:bounds:

Initialize openGL view with DecodeManager

- (int)initGLWithDecodeManager:(VKDecodeManager *)decoder bounds:(CGRect)bounds

Parameters

decoder

VKDecodeManager object to be feed from

bounds

bounds of the render view

Return Value

0 for succes and non-zero for failure

Declared In

VKGLES2View.h

– enableRetina:

Enable-disable retina frames if device has retina support, default is YES

- (void)enableRetina:(BOOL)value

Parameters

value

Specify YES for enabling or NO for disabling Retina

Declared In

VKGLES2View.h

– snapshot

Get snapshot of glview in UIImage format

- (UIImage *)snapshot

Return Value

UIImage object

Declared In

VKGLES2View.h

– shutdown

destroy openGL view

- (void)shutdown

Declared In

VKGLES2View.h

  fillScreen

Specify YES to fit video frames fill to the glview, default is NO

@property (nonatomic, assign) BOOL fillScreen

Declared In

VKGLES2View.h

  stopUpdateGLSize

Specify YES to to avoid calling layoutsubviews method of glView when layout changes

@property (nonatomic, assign) BOOL stopUpdateGLSize

Declared In

VKGLES2View.h