-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6de7d0
commit 2c50a9b
Showing
4 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.1.1 | ||
|
||
- Add dartdoc for classes. | ||
|
||
## 1.1.0 | ||
|
||
- Feat: Support MP.jpg format. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,46 @@ | ||
/// Support for doing something awesome. | ||
/// A library for support MVIMG or Motion Photo. | ||
/// It is a dart library, not a flutter plugin. | ||
/// | ||
/// More dartdocs go here. | ||
/// Just like this: | ||
/// - `MVIMG_XXXX.jpg` | ||
/// - `XXXX.MP.jpg` | ||
/// | ||
/// Example: | ||
/// | ||
/// ```dart | ||
/// import 'dart:io'; | ||
/// | ||
/// import 'package:buff/buff_io.dart'; | ||
/// import 'package:mvimg/mvimg.dart'; | ||
/// | ||
/// void main() { | ||
/// final mvimg = Mvimg(FileBufferInput.fromPath('assets/test.jpg')); | ||
/// mvimg.decode(); | ||
/// try { | ||
/// if (!mvimg.isMvimg()) { | ||
/// print('not mvimg'); | ||
/// return; | ||
/// } | ||
/// | ||
/// final img = mvimg.getImageBytes(); | ||
/// final video = mvimg.getVideoBytes(); | ||
/// | ||
/// final videoOutputPath = 'assets/split/output.mp4'; | ||
/// final imgOutputPath = 'assets/split/output.jpg'; | ||
/// | ||
/// final videoFile = File(videoOutputPath); | ||
/// final imgFile = File(imgOutputPath); | ||
/// | ||
/// videoFile.createSync(recursive: true); | ||
/// imgFile.createSync(recursive: true); | ||
/// | ||
/// videoFile.writeAsBytesSync(video); | ||
/// imgFile.writeAsBytesSync(img); | ||
/// } finally { | ||
/// mvimg.dispose(); | ||
/// } | ||
/// } | ||
/// ``` | ||
library mvimg; | ||
|
||
export 'src/mvimg_base.dart'; | ||
|
This file contains 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
This file contains 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