MeiCam SDK For iOS  3.10.0
NvsLiveWindow.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2016. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Dec 27. 2016
11 // Author: NewAuto video team
12 //================================================================================
13 #pragma once
14 
15 #import <GLKit/GLKit.h>
16 #import "NvsCommonDef.h"
17 
18 @class NvsLiveWindow;
19 @protocol NvsLiveWindowDrawDelegate <NSObject>
20 @optional
21 
22 -(void)liveWindowDidDrawVideoFrameFinished:(NvsLiveWindow*)liveWindow;
23 
24 @end
25 
39 NVS_EXPORT @interface NvsLiveWindow : UIView
40 
41 @property (nonatomic,weak) id<NvsLiveWindowDrawDelegate> delegate;
42 
43 @property (nonatomic) NvsLiveWindowFillMode fillMode;
45 
46 - (instancetype)init;
47 - (instancetype)initWithFrame:(CGRect)frame;
48 - (instancetype)initWithCoder:(NSCoder *)aDecoder;
49 - (instancetype)initWithFrame:(CGRect)frame context:(EAGLContext *)context;
50 
62 - (CGPoint)mapCanonicalToView:(CGPoint)ptCanonical;
63 
75 - (CGPoint)mapViewToCanonical:(CGPoint)ptView;
76 
88 - (CGPoint)mapNormalizedToView:(CGPoint)ptNormalized;
89 
101 - (CGPoint)mapViewToNormalized:(CGPoint)ptView;
102 
109 - (void)clearVideoFrame;
110 
117 - (UIImage*)takeScreenShot;
118 
131 - (void)setBackgroundColorWithRed:(float)red green:(float)green blue:(float)blue;
132 
133 @end
134 
-[NvsLiveWindow clearVideoFrame]
void clearVideoFrame()
Clear LiveWindow video frames.
-[NvsLiveWindow takeScreenShot]
UIImage * takeScreenShot()
Screen Shot.
-[NvsLiveWindow init]
instancetype init()
NvsLiveWindowHDRDisplayMode
NvsLiveWindowHDRDisplayMode
Live Window fill mode.
Definition: NvsCommonDef.h:258
NvsLiveWindow::delegate
id< NvsLiveWindowDrawDelegate > delegate
Definition: NvsLiveWindow.h:41
NvsLiveWindowFillMode
NvsLiveWindowFillMode
Live Window fill mode.
Definition: NvsCommonDef.h:213
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsLiveWindow
Real-time shooting preview window.
Definition: NvsLiveWindow.h:40
NvsLiveWindowDrawDelegate-p
Definition: NvsLiveWindow.h:19
NvsCommonDef.h
NvsLiveWindow::hdrDisplayMode
NvsLiveWindowHDRDisplayMode hdrDisplayMode
Definition: NvsLiveWindow.h:44
NvsLiveWindow::fillMode
NvsLiveWindowFillMode fillMode
Definition: NvsLiveWindow.h:43