MeiCam SDK For iOS  3.1.2
Instance Methods | Properties | List of all members
NvsLiveWindow Class Reference

Real-time shooting preview window. More...

#import <NvsLiveWindow.h>

Inheritance diagram for NvsLiveWindow:

Instance Methods

(instancetype) - init
 
(instancetype) - initWithFrame:
 
(instancetype) - initWithCoder:
 
(instancetype) - initWithFrame:context:
 
(CGPoint) - mapCanonicalToView:
 Timeline coordinates are converted to view coordinates. More...
 
(CGPoint) - mapViewToCanonical:
 View coordinates are converted to timeline coordinates. More...
 
(CGPoint) - mapNormalizedToView:
 Normalized coordinates are converted to view coordinates. More...
 
(CGPoint) - mapViewToNormalized:
 View coordinates are converted to normalized coordinates. More...
 
(void) - clearVideoFrame
 Clear LiveWindow video frames. More...
 
(UIImage *) - takeScreenShot
 Screen Shot. More...
 
(void) - setBackgroundColorWithRed:green:blue:
 Set the background color of LiveWindow. More...
 

Properties

NvsLiveWindowFillMode fillMode
 
NvsLiveWindowHDRDisplayMode hdrDisplayMode
 

Detailed Description

Real-time shooting preview window.

When shooting a video, connect the live window with the capture preview and preview the scene in real time. After the shooting is completed, the live window is connected to the created timeline. And the video which has shooted can edit as needed, and then compile and output a video .mov format file.

Warning
For NvsLiveWindow class,all public API must be implemented within UI thread!!!

Method Documentation

◆ clearVideoFrame

- (void) clearVideoFrame

Clear LiveWindow video frames.

◆ init

- (instancetype) init

◆ initWithCoder:

- (instancetype) initWithCoder: (NSCoder *)  aDecoder

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect)  frame

◆ initWithFrame:context:

- (instancetype) initWithFrame: (CGRect)  frame
context: (EAGLContext *)  context 

◆ mapCanonicalToView:

- (CGPoint) mapCanonicalToView: (CGPoint)  ptCanonical

Timeline coordinates are converted to view coordinates.

Parameters
ptCanonicalTimeline coordinates. Please refer to TimeLine and View Coordinate
Returns
Returns the converted view coordinate point CGPoint object
See also
- mapViewToCanonical:

◆ mapNormalizedToView:

- (CGPoint) mapNormalizedToView: (CGPoint)  ptNormalized

Normalized coordinates are converted to view coordinates.

Parameters
ptNormalizedNormalized coordinates
Returns
Returns the converted view coordinate point CGPoint object
See also
- mapViewToNormalized:

◆ mapViewToCanonical:

- (CGPoint) mapViewToCanonical: (CGPoint)  ptView

View coordinates are converted to timeline coordinates.

Parameters
ptViewView coordinates. Please refer to TimeLine and View Coordinate
Returns
Returns the converted timeline coordinate point CGPoint object
See also
- mapCanonicalToView:

◆ mapViewToNormalized:

- (CGPoint) mapViewToNormalized: (CGPoint)  ptView

View coordinates are converted to normalized coordinates.

Parameters
ptViewView coordinates
Returns
Returns the converted normalized coordinate point CGPoint object
See also
- mapNormalizedToView:

◆ setBackgroundColorWithRed:green:blue:

- (void) setBackgroundColorWithRed: (float)  red
green: (float)  green
blue: (float)  blue 

Set the background color of LiveWindow.

Parameters
redred(0~1)
greengreen(0~1)
blueblue(0~1)

◆ takeScreenShot

- (UIImage*) takeScreenShot

Screen Shot.

Property Documentation

◆ fillMode

- (NvsLiveWindowFillMode) fillMode
readwritenonatomicassign

◆ hdrDisplayMode

- (NvsLiveWindowHDRDisplayMode) hdrDisplayMode
readwritenonatomicassign

The documentation for this class was generated from the following file: