toNative method
Implementation
Pointer<CameraFrameFfi> toNative(Arena arena) {
final ptr = arena<CameraFrameFfi>();
ptr.ref.pixels = pixels.toPointer(arena);
ptr.ref.size = size;
ptr.ref.width = width;
ptr.ref.height = height;
ptr.ref.timestamp = timestamp;
ptr.ref.orientation = orientation;
ptr.ref.textureId = textureId;
ptr.ref.bytesPerRow = bytesPerRow;
ptr.ref.pixelFormat = pixelFormat;
ptr.ref.isMirrored = isMirrored;
return ptr;
}