aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-10-09 17:18:51 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-10-09 17:18:51 +0200
commit673358f8b9e2b8daf95790e75b17204eeeb7dd82 (patch)
tree4cd6deb71763d0faeec2d1d7739d995a42816c42 /core
parent51cd08296f618a8c2b25aa4f31f584d98024896a (diff)
Package lines for `core:image`.
Diffstat (limited to 'core')
-rw-r--r--core/image/bmp/bmp.odin2
-rw-r--r--core/image/common.odin5
-rw-r--r--core/image/jpeg/jpeg.odin1
-rw-r--r--core/image/netpbm/doc.odin2
-rw-r--r--core/image/png/doc.odin2
-rw-r--r--core/image/qoi/qoi.odin11
-rw-r--r--core/image/tga/tga.odin7
7 files changed, 15 insertions, 15 deletions
diff --git a/core/image/bmp/bmp.odin b/core/image/bmp/bmp.odin
index d5a094e83..189e371de 100644
--- a/core/image/bmp/bmp.odin
+++ b/core/image/bmp/bmp.odin
@@ -1,4 +1,4 @@
-// package bmp implements a Microsoft BMP image reader
+// package bmp implements a Microsoft BMP image reader and writer.
package core_image_bmp
import "core:image"
diff --git a/core/image/common.odin b/core/image/common.odin
index 4014e2ae6..11212953e 100644
--- a/core/image/common.odin
+++ b/core/image/common.odin
@@ -1,3 +1,5 @@
+package image
+
/*
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
Made available under Odin's BSD-3 license.
@@ -7,9 +9,6 @@
Ginger Bill: Cosmetic changes.
*/
-// package image implements a general 2D image library to be used with other image related packages
-package image
-
import "core:bytes"
import "core:mem"
import "core:io"
diff --git a/core/image/jpeg/jpeg.odin b/core/image/jpeg/jpeg.odin
index 818bd13d5..b95f6ef99 100644
--- a/core/image/jpeg/jpeg.odin
+++ b/core/image/jpeg/jpeg.odin
@@ -1,3 +1,4 @@
+// package jpeg implements a reader for baseline JPEG images.
package jpeg
import "core:bytes"
diff --git a/core/image/netpbm/doc.odin b/core/image/netpbm/doc.odin
index 7106e023e..720a7dc2a 100644
--- a/core/image/netpbm/doc.odin
+++ b/core/image/netpbm/doc.odin
@@ -1,4 +1,6 @@
/*
+package netpbm implements readers and writers for PBM, PGM, PPM, PAM and PFM images.
+
Formats:
PBM (P1, P4): Portable Bit Map, stores black and white images (1 channel)
diff --git a/core/image/png/doc.odin b/core/image/png/doc.odin
index 623c13077..6b402dcb2 100644
--- a/core/image/png/doc.odin
+++ b/core/image/png/doc.odin
@@ -1,5 +1,5 @@
/*
-package png implements a PNG image reader
+package png implements a PNG image reader.
The PNG specification is at [[ https://www.w3.org/TR/PNG/ ]].
diff --git a/core/image/qoi/qoi.odin b/core/image/qoi/qoi.odin
index ded8d7971..8e4ff03e0 100644
--- a/core/image/qoi/qoi.odin
+++ b/core/image/qoi/qoi.odin
@@ -1,3 +1,8 @@
+// package qoi implements a QOI image reader.
+//
+// The QOI specification is at [[ https://qoiformat.org ]].
+package qoi
+
/*
Copyright 2022 Jeroen van Rijn <nom@duclavier.com>.
Made available under Odin's BSD-3 license.
@@ -6,12 +11,6 @@
Jeroen van Rijn: Initial implementation.
*/
-
-// package qoi implements a QOI image reader
-//
-// The QOI specification is at [[ https://qoiformat.org ]].
-package qoi
-
import "core:image"
import "core:compress"
import "core:bytes"
diff --git a/core/image/tga/tga.odin b/core/image/tga/tga.odin
index 5fda803c5..f2e34484b 100644
--- a/core/image/tga/tga.odin
+++ b/core/image/tga/tga.odin
@@ -1,3 +1,6 @@
+// package tga implements a TGA image reader and writer for 8-bit RGB and RGBA images.
+package tga
+
/*
Copyright 2022 Jeroen van Rijn <nom@duclavier.com>.
Made available under Odin's BSD-3 license.
@@ -7,10 +10,6 @@
Benoit Jacquier: tga loader
*/
-
-// package tga implements a TGA image writer for 8-bit RGB and RGBA images.
-package tga
-
import "core:mem"
import "core:image"
import "core:bytes"