convert static method

Implementation

static Pointer<V2TXLiveVideoFrameStruct> convert(V2TXLiveVideoFrame frame) {
  final framePointer = calloc<V2TXLiveVideoFrameStruct>();
  framePointer.ref
    ..pixel_format = frame.pixelFormat.index
    ..buffer_type = frame.bufferType.index
    ..data = convertUint8ListToPointer(frame.data)
    ..width = frame.width
    ..height = frame.height
    ..rotation = frame.rotation.index;
  return framePointer;
}