Skip to content

Commit

Permalink
docs(pixel-io-pfm): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 14, 2023
1 parent 40282d5 commit 6e1b52a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/pixel-io-pfm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ This project is part of the

Portable FloatMap image format support for [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel).

Similar to the [NetPBM format
support](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
Similar to the [NetPBM
formats](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
the [Portable FloatMap image format](https://pauldebevec.com/Research/HDR/PFM/)
is extremely simple, uncompressed and mainly interesting for development
purposes & interchange (e.g. for use with Intel's [Open Image Denoise CLI
Expand Down Expand Up @@ -54,7 +54,7 @@ For Node.js REPL:
const pixelIoPfm = await import("@thi.ng/pixel-io-pfm");
```

Package sizes (brotli'd, pre-treeshake): ESM: 626 bytes
Package sizes (brotli'd, pre-treeshake): ESM: 768 bytes

## Dependencies

Expand All @@ -67,10 +67,10 @@ Package sizes (brotli'd, pre-treeshake): ESM: 626 bytes

The package only provides 2 functions:

- [`asPFM(img: IntBuffer | FloatBuffer):
- [`asPFM(img: IntBuffer | FloatBuffer, littleEndian?: boolean, linearRGB?: boolean):
Uint8Array`](https://docs.thi.ng/umbrella/pixel-io-pfm/functions/asPFM.html):
Serializes an image to PFM and returns result as byte array
- [`readPFM(buf: Uint8Array):
- [`readPFM(buf: Uint8Array, linearRGB?: boolean):
FloatBuffer`](https://docs.thi.ng/umbrella/pixel-io-pfm/functions/readPFM.html):
Parses byte array as PFM image and returns it as
[`FloatBuffer`](https://docs.thi.ng/umbrella/pixel/classes/FloatBuffer.html)
Expand Down
8 changes: 4 additions & 4 deletions packages/pixel-io-pfm/tpl.readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

{{pkg.description}}

Similar to the [NetPBM format
support](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
Similar to the [NetPBM
formats](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
the [Portable FloatMap image format](https://pauldebevec.com/Research/HDR/PFM/)
is extremely simple, uncompressed and mainly interesting for development
purposes & interchange (e.g. for use with Intel's [Open Image Denoise CLI
Expand Down Expand Up @@ -39,10 +39,10 @@ tools](https://github.com/OpenImageDenoise/oidn)).

The package only provides 2 functions:

- [`asPFM(img: IntBuffer | FloatBuffer):
- [`asPFM(img: IntBuffer | FloatBuffer, littleEndian?: boolean, linearRGB?: boolean):
Uint8Array`](https://docs.thi.ng/umbrella/pixel-io-pfm/functions/asPFM.html):
Serializes an image to PFM and returns result as byte array
- [`readPFM(buf: Uint8Array):
- [`readPFM(buf: Uint8Array, linearRGB?: boolean):
FloatBuffer`](https://docs.thi.ng/umbrella/pixel-io-pfm/functions/readPFM.html):
Parses byte array as PFM image and returns it as
[`FloatBuffer`](https://docs.thi.ng/umbrella/pixel/classes/FloatBuffer.html)
Expand Down

0 comments on commit 6e1b52a

Please sign in to comment.