INNER CODE UNIT · Dart
startdx
LeGoffMael/video_editor · lib/src/export/ffmpeg_export_config.dart:58
final startdx = controller.videoWidth * controller.minCrop.dx;
final startdy = controller.videoHeight * controller.minCrop.dy;
return "crop=${enddx - startdx}:${enddy - startdy}:$startdx:$startdy";
}
/// Convert the controller's [rotation] value into a [String]
/// used to provide crop values to FFmpeg ([see more](https://ffmpeg.org/ffmpeg-filters.html#transpose-1))
///
/// The result is in the format `transpose=2` (repeated for every 90 degrees rotations)
String get rotationCmd {
final count = controller.rotation / 90;
if (count <= 0 || count >= 4) return "";
final List<String> transpose = [];
for (int i = 0; i < controller.rotation / 90; i++) {
transpose.add("transpose=2");
}