MeiCam SDK For iOS  3.14.0
NvsLiveWindow.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright Meishe Co. Ltd, 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: Meishe video team
12 //================================================================================
13 #pragma once
14 
15 #import <UIKit/UIKit.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 
61 - (CGPoint)mapCanonicalToView:(CGPoint)ptCanonical;
62 
74 - (CGPoint)mapViewToCanonical:(CGPoint)ptView;
75 
87 - (CGPoint)mapNormalizedToView:(CGPoint)ptNormalized;
88 
100 - (CGPoint)mapViewToNormalized:(CGPoint)ptView;
101 
108 - (void)clearVideoFrame;
109 
116 - (UIImage*)takeScreenShot;
117 
130 - (void)setBackgroundColorWithRed:(float)red green:(float)green blue:(float)blue;
131 
146 - (void)setBackgroundColorWithRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha;
147 
148 @end
149 
-[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:327
NvsLiveWindow::delegate
id< NvsLiveWindowDrawDelegate > delegate
Definition: NvsLiveWindow.h:41
NvsLiveWindowFillMode
NvsLiveWindowFillMode
Live Window fill mode.
Definition: NvsCommonDef.h:282
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