Skip to content

Commit

Permalink
[dart]补充完善图片格式测试案例
Browse files Browse the repository at this point in the history
  • Loading branch information
蔡嘉健 authored and 0xZOne committed Jun 25, 2024
1 parent d75fb9f commit 85d82f8
Show file tree
Hide file tree
Showing 47 changed files with 22,979 additions and 57 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
4. [ohos]允许业务自己实现页面出栈逻辑
5. [dart]优化PlatformView示例代码
6. [dart]增加隐藏platformview的示例代码
7. [dart]补充完善图片格式测试案例

## 4.5.11
1. [dart]添加`SystemChrome.setPreferredOrientations`测试案例
Expand Down
Binary file added example/images/sample_bmp.bmp
Binary file not shown.
Binary file added example/images/sample_cur.cur
Binary file not shown.
Binary file added example/images/sample_dds.dds
Binary file not shown.
Binary file added example/images/sample_dng.dng
Binary file not shown.
Binary file added example/images/sample_erf.erf
Binary file not shown.
Binary file added example/images/sample_exr.exr
Binary file not shown.
Binary file added example/images/sample_fts.fts
Binary file not shown.
Binary file added example/images/sample_gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/images/sample_ico.ico
Binary file not shown.
Binary file added example/images/sample_jfif.jfif
Binary file not shown.
Binary file added example/images/sample_jp2.jp2
Binary file not shown.
Binary file added example/images/sample_jpe.jpe
Binary file not shown.
Binary file added example/images/sample_jpeg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/images/sample_jpg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/images/sample_jps.jps
Binary file not shown.
Binary file added example/images/sample_mng.mng
Binary file not shown.
Binary file added example/images/sample_nef.nef
Binary file not shown.
Binary file added example/images/sample_nrw.nrw
Binary file not shown.
Binary file added example/images/sample_orf.orf
Binary file not shown.
5,150 changes: 5,150 additions & 0 deletions example/images/sample_pam.pam

Large diffs are not rendered by default.

Binary file added example/images/sample_pbm.pbm
Binary file not shown.
Binary file added example/images/sample_pcd.pcd
Binary file not shown.
Binary file added example/images/sample_pcx.pcx
Binary file not shown.
Binary file added example/images/sample_pef.pef
Binary file not shown.
Binary file added example/images/sample_pes.pes
Binary file not shown.
Binary file added example/images/sample_pfm.pfm
Binary file not shown.
1,735 changes: 1,735 additions & 0 deletions example/images/sample_pgm.pgm

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions example/images/sample_picon.picon
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* XPM */
static char *sample_640×426[] = {
/* columns rows colors chars-per-pixel */
"48 32 30 1",
" c black",
". c DarkSlateGray",
"X c #7E7E7E",
"o c firebrick",
"O c red",
"+ c sienna",
"@ c tomato",
"# c green",
"$ c LimeGreen",
"% c SeaGreen",
"& c orange",
"* c peru",
"= c gold",
"- c yellow",
"; c navy",
": c blue",
"> c #800080",
", c magenta",
"< c SlateGray",
"1 c DodgerBlue",
"2 c cyan",
"3 c tan",
"4 c PaleGreen",
"5 c wheat",
"6 c violet",
"7 c SkyBlue",
"8 c gainsboro",
"9 c LemonChiffon",
"0 c lavender",
"q c white",
/* pixels */
"XXX>X>X..>..>.>...>...X>..+.>>.X>.X.X>X><<X>XX>X",
"3XX>+XX>+..+.X.+.+>.>.+.>.....>..X.>.X>XX><XX>XX",
"X@<XX..+>X.>>+...X..>..>.>.>X.X.X>X>XXXXXXXXX66X",
"6>XXXX>X.X+..X>.+.>+.+..+.X..>X+>XXX>X><6>X6X6X<",
"6+3X>+X>+.>X>X>..>X.+>X+X..X>>XX>X6>>66<X636<663",
"X6X>XXXXX>X...X+.X>X.X>.>>X>XXX>XXXXXXX>6X<66X<6",
"3XXXXX>XXX+X+X>XX+X.X.XXX.X6X><X><6>6X<6X6X336<3",
"366+6X+XX>XX>XXX>X>X>X>X>X>X<<<>6X<<6<6<6<666886",
"3X6X3>3<XX@XXXX>>XXXXXXXXXXXXXX<<6<6<66<73733663",
"636@XXX@6>XXX>>333>>X>XXX36>6>X63X6<<67366668883",
"533X366X6X6+X@X>X><X>3X>66XX636XX638838636886<. ",
"6363<3@@X@X63X6363@XX66XXX63X366686668688763. + ",
"5553366333336+@XX6X@6X33<6638836856385853X. . ",
"533533336333363633X633633336633865888683.oo + +",
"3533333333363633333536366885658880888X. . ",
"+X+53533@33533335563558355585880803X+ + . . .o",
" *3*@333333535335553555555888953. + . ",
"+.. .+.++3*3335535335555559833 + .. . . .",
"XXX.+ o.+**3353.XX555.++. .. + . . .<",
"<<<X<XX+.+o.. .. ++++ *3* +. o . .+.+.XX<><>",
">.<<<<:1<1<<<<<....><..o.XXXXXX.<:<<<<<<<<<1<<<<",
";.;;;..<<;<;>;:<:<7<<..+*X<<<<<<<<<<6<<1<11<1<1<",
";. .;11;;;:;;<<771<>; + .++$X<<<<<<<:<<><X<X>X<<",
" .;;;<;<<>1<1>11<;;; . . ..+.X<;<:<:111;>..>>...",
".>;<<1<<<1<1<1;>>.. . ....++.+.+ ...<<11<<;.;..",
"<<<<:.1::1:>;;.; . . + . +$++....+....>:1<1<::",
":;.;.::<;.. . .+ +...++........;>:;<",
"1;:<<1<;.> .. . +o o . .. +. .++.+ +.+.....",
";11>:;. . . o .. o. + + .+..+$+....+ ",
";;;;;. . . . . . o . . . . . .++.+.....",
"..;. . . o . + .+ + ..++ .. . .+.",
" . .. o . . . . .....+. +. +..."
};
Binary file added example/images/sample_pict.pict
Binary file not shown.
Binary file added example/images/sample_png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,146 changes: 5,146 additions & 0 deletions example/images/sample_pnm.pnm

Large diffs are not rendered by default.

5,146 changes: 5,146 additions & 0 deletions example/images/sample_ppm.ppm

Large diffs are not rendered by default.

Binary file added example/images/sample_psd.psd
Binary file not shown.
Binary file added example/images/sample_raf.raf
Binary file not shown.
Binary file added example/images/sample_ras.ras
Binary file not shown.
Binary file added example/images/sample_rw2.rw2
Binary file not shown.
Binary file added example/images/sample_sgi.sgi
Binary file not shown.
1,707 changes: 1,707 additions & 0 deletions example/images/sample_svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/images/sample_tga.tga
Binary file not shown.
2,844 changes: 2,844 additions & 0 deletions example/images/sample_xbm.xbm

Large diffs are not rendered by default.

688 changes: 688 additions & 0 deletions example/images/sample_xpm.xpm

Large diffs are not rendered by default.

Binary file added example/images/sample_xwd.xwd
Binary file not shown.
57 changes: 0 additions & 57 deletions example/lib/case/asset_image_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ class AssetImageRoute extends StatefulWidget {
class _AssetImageRouteState extends State<AssetImageRoute> {
late Image image1;
late Image image2;
late Image sample_hdr;
late Image sample_heic;
late Image sample_heif;
late Image sample_tiff;
late Image sample_wbmp;
late Image sample_webp;
static const int seconds = 3;
bool isTimerFinished = false;
Timer? timer;
Expand Down Expand Up @@ -51,12 +45,6 @@ class _AssetImageRouteState extends State<AssetImageRoute> {
}
image1 = Image.asset("images/picture1.jpg");
image2 = Image.asset("images/picture2.jpg");
sample_hdr = Image.asset("images/sample_hdr.hdr");
sample_heic = Image.asset("images/sample_heic.heic");
sample_heif = Image.asset("images/sample_heif.heif");
sample_tiff = Image.asset("images/sample_tiff.tiff");
sample_wbmp = Image.asset("images/sample_wbmp.wbmp");
sample_webp = Image.asset("images/sample_webp.webp");
if (kDebugMode) {
print('#initState, $this');
}
Expand Down Expand Up @@ -132,51 +120,6 @@ class _AssetImageRouteState extends State<AssetImageRoute> {
),
],
),
const SizedBox(
height: 25,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('HDR')),
Expanded(flex: 5, child: sample_hdr)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('HEIC')),
Expanded(flex: 5, child: sample_heic)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('HEIF')),
Expanded(flex: 5, child: sample_heif)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('TIFF')),
Expanded(flex: 5, child: sample_tiff)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('WBMP')),
Expanded(flex: 5, child: sample_wbmp)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(flex: 1, child: const Text('WEBP')),
Expanded(flex: 5, child: sample_webp)
],
),
],
)))
: Container(
Expand Down
Loading

0 comments on commit 85d82f8

Please sign in to comment.