fourccAsync static method

Future<int> fourccAsync(
  1. String cc
)

Implementation

static Future<int> fourccAsync(String cc) async {
  final cc_ = ascii.encode(cc);
  if (cc_.length != 4) return -1;
  return cvRunAsync(
    (callback) => cffi.VideoWriter_Fourcc_Async(cc_[0], cc_[1], cc_[2], cc_[3], callback),
    intCompleter,
  );
}