Unity.XR.XREAL.ImageEncoder
Inheritance diagram for Unity.XR.XREAL.ImageEncoder:
Public Member Functions | |
void | Commit (RenderTexture rt, ulong timestamp) |
void | Config (CameraParameters param) |
void | Start () |
void | Stop () |
void | Release () |
void | Commit (CaptureTask task) |
byte[] | Encode (int width, int height, PhotoCaptureFileOutputFormat format) |
void | Commit (RenderTexture rt, UInt64 timestamp) |
Static Public Member Functions | |
static Texture2D | ScaleTexture (Texture2D source, int targetWidth, int targetHeight) |
Detailed Description
An image encoder.
Member Function Documentation
◆ Commit() [1/2]
void Unity.XR.XREAL.ImageEncoder.Commit | ( | CaptureTask | task | ) |
Commits the given task.
- Parameters
-
task The task.
◆ Commit() [2/2]
void Unity.XR.XREAL.ImageEncoder.Commit | ( | RenderTexture | rt, |
ulong | timestamp ) |
Commits.
- Parameters
-
rt The right. timestamp The timestamp.
◆ Config()
void Unity.XR.XREAL.ImageEncoder.Config | ( | CameraParameters | param | ) |
Configurations the given parameter.
- Parameters
-
param The parameter.
Implements Unity.XR.XREAL.IEncoder.
◆ Encode()
byte[] Unity.XR.XREAL.ImageEncoder.Encode | ( | int | width, |
int | height, | ||
PhotoCaptureFileOutputFormat | format ) |
Encodes.
- Parameters
-
width The width. height The height. format Describes the format to use.
- Returns
- A byte[].
◆ ScaleTexture()
|
static |
Scale texture.
- Parameters
-
source Source for the. targetWidth Width of the target. targetHeight Height of the target.
- Returns
- A Texture2D.