소스 검색

Package lines for `core:image`.

Jeroen van Rijn 4 일 전
부모
커밋
673358f8b9
7개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 1 1
      core/image/bmp/bmp.odin
  2. 2 3
      core/image/common.odin
  3. 1 0
      core/image/jpeg/jpeg.odin
  4. 2 0
      core/image/netpbm/doc.odin
  5. 1 1
      core/image/png/doc.odin
  6. 5 6
      core/image/qoi/qoi.odin
  7. 3 4
      core/image/tga/tga.odin

+ 1 - 1
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"

+ 2 - 3
core/image/common.odin

@@ -1,3 +1,5 @@
+package image
+
 /*
 	Copyright 2021 Jeroen van Rijn <[email protected]>.
 	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"

+ 1 - 0
core/image/jpeg/jpeg.odin

@@ -1,3 +1,4 @@
+// package jpeg implements a reader for baseline JPEG images.
 package jpeg
 
 import "core:bytes"

+ 2 - 0
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)

+ 1 - 1
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/ ]].
 

+ 5 - 6
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 <[email protected]>.
 	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"

+ 3 - 4
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 <[email protected]>.
 	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"