setVideoEffect method

void setVideoEffect(
  1. VideoEffect effect,
  2. List<double> value
)

Implementation

void setVideoEffect(VideoEffect effect, List<double> value) {
  final cv = calloc<Float>(value.length);
  for (int i = 0; i < value.length; ++i) {
    cv[i] = value[i];
  }
  _player.ref.setVideoEffect.asFunction<
          void Function(
              Pointer<mdkPlayer>, int, Pointer<Float>, Pointer<Void>)>()(
      _player.ref.object, effect.rawValue, cv.cast(), Pointer.fromAddress(0));
  calloc.free(cv);
}