This commit is contained in:
esimov
2025-04-27 10:41:15 +03:00
3 changed files with 13 additions and 9 deletions

View File

@@ -24,6 +24,8 @@ var (
errs = make(chan error)
)
var _ SeamCarver = (*Processor)(nil)
// worker struct contains all the information needed for transferring the resized image to the Gio GUI.
type worker struct {
img *image.NRGBA
@@ -32,8 +34,6 @@ type worker struct {
done bool
}
var _ SeamCarver = (*Processor)(nil)
// shrinkFn is a generic function used to shrink an image.
type shrinkFn func(*image.NRGBA) (*image.NRGBA, error)