FingerImage.fromYuvPlanes Method¶
Module: FingerImage
Definition¶
Creates an Image from the specified YUV planes.
@staticmethod
from_yuv_planes(y_plane: bytearray, u_plane: bytearray, v_plane: bytearray, y_width: int, y_height: int, uv_pixel_stride: int, uv_row_stride: int, dst_pixel_format: PixelFormat) -> FingerImage
Parameters
y_plane
bytearrayin A buffer that contains the Y plane.u_plane
bytearrayin A buffer that contains the U plane.v_plane
bytearrayin A buffer that contains the V plane.y_width
intin The width, in pixels, of the Y plane.y_height
intin The height, in pixels, of the Y plane.uv_pixel_stride
intin The pixel-level stride, in pixels, of the U and V planes.uv_row_stride
intin The row-level stride, in pixels, of the U and V planes.dst_pixel_format
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
static FingerImage fromYuvPlanes(Uint8List? yPlane, Uint8List? uPlane, Uint8List? vPlane, int yWidth, int yHeight, int uvPixelStride, int uvRowStride, PixelFormat dstPixelFormat)
Parameters
yPlane
Uint8Listin A buffer that contains the Y plane.uPlane
Uint8Listin A buffer that contains the U plane.vPlane
Uint8Listin A buffer that contains the V plane.yWidth
intin The width, in pixels, of the Y plane.yHeight
intin The height, in pixels, of the Y plane.uvPixelStride
intin The pixel-level stride, in pixels, of the U and V planes.uvRowStride
intin The row-level stride, in pixels, of the U and V planes.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static FingerImage FromYuvPlanes(byte[] yPlane, byte[] uPlane, byte[] vPlane, int yWidth, int yHeight, int uvPixelStride, int uvRowStride, PixelFormat dstPixelFormat)
Parameters
yPlane
byte[]in A buffer that contains the Y plane.uPlane
byte[]in A buffer that contains the U plane.vPlane
byte[]in A buffer that contains the V plane.yWidth
intin The width, in pixels, of the Y plane.yHeight
intin The height, in pixels, of the Y plane.uvPixelStride
intin The pixel-level stride, in pixels, of the U and V planes.uvRowStride
intin The row-level stride, in pixels, of the U and V planes.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static FingerImage fromYuvPlanes(byte[] yPlane, byte[] uPlane, byte[] vPlane, int yWidth, int yHeight, int uvPixelStride, int uvRowStride, PixelFormat dstPixelFormat) throws FingerException
Parameters
yPlane
byte[]in A buffer that contains the Y plane.uPlane
byte[]in A buffer that contains the U plane.vPlane
byte[]in A buffer that contains the V plane.yWidth
intin The width, in pixels, of the Y plane.yHeight
intin The height, in pixels, of the Y plane.uvPixelStride
intin The pixel-level stride, in pixels, of the U and V planes.uvRowStride
intin The row-level stride, in pixels, of the U and V planes.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static func fromYuvPlanes(yPlane: [UInt8], uPlane: [UInt8], vPlane: [UInt8], yWidth: Int32, yHeight: Int32, uvPixelStride: Int32, uvRowStride: Int32, dstPixelFormat: PixelFormat) throws -> FingerImage
Parameters
yPlane
[UInt8]in A buffer that contains the Y plane.uPlane
[UInt8]in A buffer that contains the U plane.vPlane
[UInt8]in A buffer that contains the V plane.yWidth
Int32in The width, in pixels, of the Y plane.yHeight
Int32in The height, in pixels, of the Y plane.uvPixelStride
Int32in The pixel-level stride, in pixels, of the U and V planes.uvRowStride
Int32in The row-level stride, in pixels, of the U and V planes.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerImage_FromYuvPlanes (
ID3_FINGER_IMAGE hFingerImage,
unsigned char * yPlane,
int yPlaneSize,
unsigned char * uPlane,
int uPlaneSize,
unsigned char * vPlane,
int vPlaneSize,
int yWidth,
int yHeight,
int uvPixelStride,
int uvRowStride,
id3FingerPixelFormat eDstPixelFormat)
Parameters
hFingerImage
ID3_FINGER_IMAGEin Handle to the FingerImage object.yPlane
unsigned char *in A buffer that contains the Y plane.yPlaneSize
intin Size of the ‘yPlane’ buffer.uPlane
unsigned char *in A buffer that contains the U plane.uPlaneSize
intin Size of the ‘uPlane’ buffer.vPlane
unsigned char *in A buffer that contains the V plane.vPlaneSize
intin Size of the ‘vPlane’ buffer.yWidth
intin The width, in pixels, of the Y plane.yHeight
intin The height, in pixels, of the Y plane.uvPixelStride
intin The pixel-level stride, in pixels, of the U and V planes.uvRowStride
intin The row-level stride, in pixels, of the U and V planes.eDstPixelFormat
id3FingerPixelFormatin The pixel format into which to convert the input image.
Returns