Skip to main content
Version: 12 Dec 2024

YUVUtility

NameSpace: Android

Public Methods

int CalculateUVIndex

public static int CalculateUVIndex(
int x,
int y,
int pixelStride,
int rowStride
)

Parameters

TypeNameDescription
intx
inty
intpixelStride
introwStride

int CalculateYIndex

public static int CalculateYIndex(
int x,
int y,
int pixelStride,
int rowStride
)

Parameters

TypeNameDescription
intx
inty
intpixelStride
introwStride

JobHandle ConvertPlanesToRGBAsync

public static JobHandle ConvertPlanesToRGBAsync(
Allocator allocator,
NativeYUVPlanes yuvPlanes,
out NativeArray< Color32 > outRgb
)

Parameters

TypeNameDescription
Allocatorallocator
NativeYUVPlanesyuvPlanes
out NativeArray< Color32 >outRgb

Color32 ProcessPixel

public static Color32 ProcessPixel(
byte rawY,
byte rawU,
byte rawV
)

Parameters

TypeNameDescription
byterawY
byterawU
byterawV