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
Nested Classes Modifier and Type Interface Description static class
CameraComposer.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
enableBlur(boolean enable)
Image
getBackgroundImage()
Video
getBackgroundVideo()
void
setBackgroundColor(float r, float g, float b, float a)
void
setBackgroundImage(java.lang.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 Detail
-
setBackgroundImage
void setBackgroundImage(@NonNull java.lang.String path, boolean play, boolean loop)
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
@Nullable Image getBackgroundImage()
-
getBackgroundVideo
@Nullable Video 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).
-
-