INNER CODE UNIT · Dart

count

LeGoffMael/video_editor · lib/src/export/ffmpeg_export_config.dart:69

    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");
    }
    return transpose.isNotEmpty ? transpose.join(',') : "";
  }

  /// [see FFmpeg doc](https://ffmpeg.org/ffmpeg-filters.html#scale)
  ///
  /// The result is in format `scale=width*scale:height*scale`
  String get scaleCmd => scale == 1.0 ? "" : "scale=iw*$scale:ih*$scale";

  /// Returns the list of all the active filters
  List<String> getExportFilters() {
    if (!isFiltersEnabled) return [];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…