-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import the dither library 2.2.0 as wip/go-dither
dither is a library for dithering images in Go. It has many dithering algorithms built-in, and allows you to specify your own. Correctness is a top priority, as well as performance.
- Loading branch information
1 parent
bc4ca12
commit 9db6ebc
Showing
6 changed files
with
138 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dither is a library for dithering images in Go. It has many dithering | ||
algorithms built-in, and allows you to specify your own. Correctness is a | ||
top priority, as well as performance. It is designed to work well on its | ||
own, but also implements interfaces from the standard library, so that it | ||
can be integrated easily in a wide variety of situtations. It supports | ||
images that make use of the alpha channel, AKA transparency. |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# $NetBSD$ | ||
|
||
DISTNAME= go-dither-2.2.0 | ||
GITHUB_PROJECT= dither | ||
CATEGORIES= graphics | ||
MASTER_SITES= ${MASTER_SITE_GITHUB:=makeworld-the-better-one/} | ||
GITHUB_TAG= v${PKGVERSION_NOREV} | ||
|
||
MAINTAINER= [email protected] | ||
HOMEPAGE= https://github.com/makeworld-the-better-one/dither/ | ||
COMMENT= A fast, correct image dithering library in Go | ||
LICENSE= mpl-2.0 | ||
|
||
GO_DIST_BASE= ${GITHUB_PROJECT}-${PKGVERSION_NOREV} | ||
GO_SRCPATH= github.com/makeworld-the-better-one/dither | ||
|
||
.include "../../lang/go/go-package.mk" | ||
.include "../../mk/bsd.pkg.mk" |
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
@comment $NetBSD$ | ||
bin/gif_animation | ||
bin/gif_image | ||
gopkg/pkg/${GO_PLATFORM}/github.com/makeworld-the-better-one/dither.a | ||
gopkg/src/github.com/makeworld-the-better-one/dither/CHANGELOG.md | ||
gopkg/src/github.com/makeworld-the-better-one/dither/LICENSE | ||
gopkg/src/github.com/makeworld-the-better-one/dither/README.md | ||
gopkg/src/github.com/makeworld-the-better-one/dither/color_spaces.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/dither.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/dither_test.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/draw.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/error_diffusers.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/gif_animation/main.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/gif_image/main.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_001.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_002.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_003.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_004.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_005.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_006.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_007.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_008.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_009.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_010.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_011.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_012.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_013.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_014.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_015.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_016.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_017.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_018.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_019.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/input/ball_020.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/output/gif_animation.gif | ||
gopkg/src/github.com/makeworld-the-better-one/dither/examples/output/gif_image.gif | ||
gopkg/src/github.com/makeworld-the-better-one/dither/go.mod | ||
gopkg/src/github.com/makeworld-the-better-one/dither/go.sum | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/examples/david.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/examples/floyd-steinberg_david.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/examples/floyd-steinberg_peppers.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/examples/peppers_small.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/input/dice.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/input/gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/input/peppers.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDot4x4.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDot6x6.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDot6x6_2.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDot6x6_3.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDot8x8.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotDiagonal16x16_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotDiagonal6x6.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotDiagonal8x8.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotDiagonal8x8_2.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotDiagonal8x8_3.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotHorizontalLine.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotSpiral5x5.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/ClusteredDotVerticalLine.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/Horizontal3x5.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/Vertical5x3.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/alpha_bayer.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/alpha_floyd-steinberg.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_16x16_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_16x16_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_16x16_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_16x8_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_2x2_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_4x4_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/bayer_8x8_gradient.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_atkinson.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_floyd-steinberg.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_floyd-steinberg_serpentine.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_floyd-steinberg_strength_02.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_jarvis-judice-ninke.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_atkinson_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_atkinson_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_floyd-steinberg_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_floyd-steinberg_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_jarvis-judice-ninke_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_jarvis-judice-ninke_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_simpled2d_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_peppers_simpled2d_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_simple2d.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/edm_simple2d_serpentine.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/random_noise_grayscale.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/random_noise_rgb_red-green-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/images/output/random_noise_rgb_red-green-yellow-black.png | ||
gopkg/src/github.com/makeworld-the-better-one/dither/ordered_ditherers.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/parallel.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/pixelmappers.go | ||
gopkg/src/github.com/makeworld-the-better-one/dither/special.go |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# $NetBSD$ | ||
|
||
BUILDLINK_TREE+= go-dither | ||
|
||
.if !defined(GO_DITHER_BUILDLINK3_MK) | ||
GO_DITHER_BUILDLINK3_MK:= | ||
|
||
BUILDLINK_CONTENTS_FILTER.go-dither= ${EGREP} gopkg/ | ||
BUILDLINK_DEPMETHOD.go-dither?= build | ||
|
||
BUILDLINK_API_DEPENDS.go-dither+= go-dither>=2.2.0 | ||
BUILDLINK_PKGSRCDIR.go-dither?= ../../wip/go-dither | ||
|
||
.endif # GO_DITHER_BUILDLINK3_MK | ||
|
||
BUILDLINK_TREE+= -go-dither |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$NetBSD$ | ||
|
||
SHA1 (go-dither-2.2.0.tar.gz) = 4b24df0e6a56a3f82445d7f81fbebbfc82a45d7a | ||
RMD160 (go-dither-2.2.0.tar.gz) = 3405db3fc73be59daf563f594ec1b19b7220dca5 | ||
SHA512 (go-dither-2.2.0.tar.gz) = 679129dd2aaca0fe63706990f6ce5b47962db17aa40975e27aa8284155e1b8f5ae3664fd2b315bc662dd839d6f9c30d2eedf458aca51aa2eef95c5b54f6701ad | ||
Size (go-dither-2.2.0.tar.gz) = 2154942 bytes |