Package com.banuba.sdk.scene
Interface CameraComposer
- All Known Implementing Classes:
CameraComposer.CppProxy
public interface CameraComposer
Class, which provide camera composer algorithms adjust interface.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enableBlur
(boolean enable) void
setBackgroundColor
(float r, float g, float b, float a) void
setBackgroundImage
(String path, boolean play, boolean loop) Pass empty path to reset background image.void
setBackgroundImageByFd
(int fd) void
setBackgroundVideoByFd
(int fd, boolean play, boolean loop) void
setBgTransparencyFactor
(float factor) void
setBlurRadius
(int radius) void
setClearColor
(float r, float g, float b, float a) Specifies the color of the area not covered by background texture (e.g.void
setContentMode
(int mode) void
setRotation
(float degrees) void
setScale
(float x, float y)
-
Method Details
-
setBackgroundImage
Pass empty path to reset background image. Supported extensions: jpg, jpeg, png, mp4, gif play and loop args only for video -
setBackgroundImageByFd
void setBackgroundImageByFd(int fd) -
setBackgroundVideoByFd
void setBackgroundVideoByFd(int fd, boolean play, boolean loop) -
getBackgroundImage
-
getBackgroundVideo
-
enableBlur
void enableBlur(boolean enable) -
setBlurRadius
void setBlurRadius(int radius) -
setBgTransparencyFactor
void setBgTransparencyFactor(float factor) -
setRotation
void setRotation(float degrees) -
setScale
void setScale(float x, float y) -
setContentMode
void setContentMode(int mode) -
setBackgroundColor
void setBackgroundColor(float r, float g, float b, float a) -
setClearColor
void setClearColor(float r, float g, float b, float a) Specifies the color of the area not covered by background texture (e.g. `contentMode` `FIT`). Black by default. Transparency (`a`) is a conventional argument only and currently ignored (use `1` for it).
-