This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Future<String> generateVideo(String videoPath, List<StyleChangeRecord> videoChangeRecords, Function(data.Stack<ProgressItem> progress) callback) async { | |
| await _checkDirs(); | |
| _cleanBasePathWithFilter(".aac"); | |
| _pushProgress(ProgressItem("Transformation Step", 1, 4, "Clean folder.."), callback); | |
| List<Future> futures = <Future>[]; | |
| new Directory('$basePath/$_framesFolder').listSync().forEach((frame) async { | |
| if (FileSystemEntity.typeSync(frame.path) == FileSystemEntityType.file) { | |
| futures.add((frame as File).delete()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'dart:html' as html; | |
| import 'dart:ui' as ui; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. */ | |
| /****************************************************************************** | |
| * | |
| * You may not use the identified files except in compliance with the Apache | |
| * License, Version 2.0 (the "License.") | |
| * | |
| * You may obtain a copy of the License at | |
| * http://www.apache.org/licenses/LICENSE-2.0. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express') | |
| var multer = require('multer') | |
| var fs = require('fs'); | |
| var upload = multer({ dest: 'uploads/' }) | |
| var app = express() | |
| app.post('/upload', upload.single("picture"), function (req,res) { | |
| console.log("Received file" + req.file.originalname); | |
| var src = fs.createReadStream(req.file.path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class BlurView extends StatefulWidget { | |
| final String imagePath; | |
| const BlurView(this.imagePath, {Key key}) : super(key: key); | |
| @override | |
| _BlurViewState createState() => _BlurViewState(); | |
| } | |
| class _BlurViewState extends State<BlurView> { | |
| ui.Image image; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // imgLib -> Image package from https://pub.dartlang.org/packages/image | |
| import 'package:image/image.dart' as imglib; | |
| import 'package:camera/camera.dart'; | |
| Future<List<int>> convertImagetoPng(CameraImage image) async { | |
| try { | |
| imglib.Image img; | |
| if (image.format.group == ImageFormatGroup.yuv420) { | |
| img = _convertYUV420(image); | |
| } else if (image.format.group == ImageFormatGroup.bgra8888) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export 'app_bloc.dart'; | |
| export 'app_event.dart'; | |
| export 'app_state.dart'; | |
| export 'app_route.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////////////////////// | |
| // | |
| // 2019, roipeker.com | |
| // screencast - demo simple image: | |
| // https://youtu.be/EJyRH4_pY8I | |
| // | |
| // screencast - demo snapshot: | |
| // https://youtu.be/-LxPcL7T61E | |
| // | |
| ////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class NavigatorPage extends StatefulWidget { | |
| const NavigatorPage({ Key key, this.child }) : super(key: key); | |
| final Widget child; | |
| @override | |
| _NavigatorPageState createState() => _NavigatorPageState(); | |
| } |
NewerOlder