Package com.banuba.sdk.scene
Interface CameraTexture
-
- All Known Implementing Classes:
CameraTexture.CppProxy
public interface CameraTexture
Special class, which represent web or phone camera image textures. Because of different platfroms can provide YUV, or RGBA camera texture representations camera texture can be represented in Y, UV, RGBA formats, depends on platfrom. Subclass of image
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CameraTexture.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Image
asImage()
CameraTextureFormat
getFormat()
void
setFormat(CameraTextureFormat format)
set camera texture format for current texture.
-
-
-
Method Detail
-
getFormat
@NonNull CameraTextureFormat getFormat()
- Returns:
- camera texture format (camera_texture_format). Can be Y, UV, or RGBA.
-
setFormat
void setFormat(@NonNull CameraTextureFormat format)
set camera texture format for current texture.- Parameters:
format
- (camera_texture_format). Can be Y, UV, or RGBA.
-
asImage
@Nullable Image asImage()
- Returns:
- upcast to base type
-
-