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
  • Method Details

    • 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