Banuba SDK
BNBCameraComposer.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import <Foundation/Foundation.h>
5 @class BNBImage;
6 @class BNBVideo;
7 
8 
9 /** Class, which provide camera composer algorithms adjust interface. */
10 
11 #ifndef DJINNI_EXPORT
12  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
13 #endif
14 
16 @interface BNBCameraComposer : NSObject
17 
18 /**
19  * Pass empty path to reset background image.
20  * Supported extensions: jpg, jpeg, png, mp4, gif
21  * play and loop args only for video
22  */
23 - (void)setBackgroundImage:(nonnull NSString *)path
24  play:(BOOL)play
25  loop:(BOOL)loop;
26 
27 - (void)setBackgroundImageByFd:(int32_t)fd;
28 
29 - (void)setBackgroundVideoByFd:(int32_t)fd
30  play:(BOOL)play
31  loop:(BOOL)loop;
32 
33 - (nullable BNBImage *)getBackgroundImage;
34 
35 - (nullable BNBVideo *)getBackgroundVideo;
36 
37 - (void)enableBlur:(BOOL)enable;
38 
39 - (void)setBlurRadius:(int32_t)radius;
40 
41 - (void)setBgTransparencyFactor:(float)factor;
42 
43 - (void)setRotation:(float)degrees;
44 
45 - (void)setScale:(float)x
46  y:(float)y;
47 
48 - (void)setContentMode:(int32_t)mode;
49 
50 - (void)setBackgroundColor:(float)r
51  g:(float)g
52  b:(float)b
53  a:(float)a;
54 
55 /**
56  * Specifies the color of the area not covered by background texture (e.g. `contentMode` `FIT`).
57  * Black by default. Transparency (`a`) is a conventional argument only and currently ignored
58  * (use `1` for it).
59  */
60 - (void)setClearColor:(float)r
61  g:(float)g
62  b:(float)b
63  a:(float)a;
64 
65 @end
BNBImage
Definition: BNBImage.h:24
BNBVideo
Definition: BNBVideo.h:18
BNBCameraComposer
Definition: BNBCameraComposer.h:16
-[BNBCameraComposer getBackgroundVideo]
nullable BNBVideo * getBackgroundVideo()
-[BNBCameraComposer getBackgroundImage]
nullable BNBImage * getBackgroundImage()
DJINNI_EXPORT
#define DJINNI_EXPORT
Class, which provide camera composer algorithms adjust interface.
Definition: BNBCameraComposer.h:12