-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert the basic decoding/encoding examples into Snippets, and repla…
…ce BasicEncoding test image with more professionally appropriate example
- Loading branch information
1 parent
c00a7fb
commit ca3091b
Showing
29 changed files
with
2,896 additions
and
71 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -15,8 +15,6 @@ let package:Package = .init(name: "swift-png", | |
.executable(name: "compression-benchmark", targets: ["PNGCompressionBenchmarks"]), | ||
.executable(name: "decompression-benchmark", targets: ["PNGDecompressionBenchmarks"]), | ||
|
||
.executable(name: "decode-basic", targets: ["PNGDecodeBasic"]), | ||
.executable(name: "encode-basic", targets: ["PNGEncodeBasic"]), | ||
.executable(name: "indexing", targets: ["PNGIndexing"]), | ||
.executable(name: "iphone-optimized", targets: ["PNGiPhoneOptimized"]), | ||
.executable(name: "metadata", targets: ["PNGMetadata"]), | ||
|
@@ -106,40 +104,7 @@ let package:Package = .init(name: "swift-png", | |
], | ||
path: "Benchmarks/Decompression/Swift"), | ||
|
||
.executableTarget(name: "PNGDecodeBasic", | ||
dependencies: | ||
[ | ||
.target(name: "PNG"), | ||
], | ||
path: "Examples/decode-basic", | ||
exclude: | ||
[ | ||
"example.png.rgba", | ||
"example.png.v.png", | ||
"example.png.rgba.png", | ||
"example.png", | ||
"example.png.v", | ||
"example.png.va.png", | ||
"example.png.va", | ||
]), | ||
.executableTarget(name: "PNGEncodeBasic", | ||
dependencies: | ||
[ | ||
.target(name: "PNG"), | ||
], | ||
path: "Examples/encode-basic", | ||
exclude: | ||
[ | ||
"[email protected]", | ||
"[email protected]", | ||
"example-color-v.png", | ||
"[email protected]", | ||
"example-color-rgb.png", | ||
"example-luminance-rgb.png", | ||
"example.rgba", | ||
"[email protected]", | ||
"example-luminance-v.png", | ||
]), | ||
|
||
.executableTarget(name: "PNGIndexing", | ||
dependencies: | ||
[ | ||
|
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
39 changes: 23 additions & 16 deletions
39
Examples/decode-basic/main.swift → Snippets/BasicDecoding.swift
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
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
34 changes: 19 additions & 15 deletions
34
Examples/encode-basic/main.swift → Snippets/BasicEncoding.swift
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.