Skip to content

Commit

Permalink
docs(pixel-io-pfm): add format ref links
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 13, 2023
1 parent 9f15bb6 commit 9ff802b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions packages/pixel-io-pfm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ Portable FloatMap image format support for [@thi.ng/pixel](https://github.com/th

Similar to the [NetPBM format
support](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
the Portable FloatMap image format is extremely simple, uncompressed and mainly
interesting for development purposes & interchange (e.g. for use with Intel's
[Open Image Denoise CLI tools](https://github.com/OpenImageDenoise/oidn)).
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
tools](https://github.com/OpenImageDenoise/oidn)).

## Status

Expand Down
3 changes: 3 additions & 0 deletions packages/pixel-io-pfm/src/read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const __error = (msg?: string) => {
* Parses given byte array as PFM image and returns it as thi.ng/pixel
* [`FloatBuffer`](https://docs.thi.ng/umbrella/pixel/classes/FloatBuffer.html).
*
* @remarks
* Format reference: https://pauldebevec.com/Research/HDR/PFM/
*
* @param src
*/
export const readPFM = (src: Uint8Array) => {
Expand Down
7 changes: 4 additions & 3 deletions packages/pixel-io-pfm/tpl.readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

Similar to the [NetPBM format
support](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-io-netpbm),
the Portable FloatMap image format is extremely simple, uncompressed and mainly
interesting for development purposes & interchange (e.g. for use with Intel's
[Open Image Denoise CLI tools](https://github.com/OpenImageDenoise/oidn)).
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
tools](https://github.com/OpenImageDenoise/oidn)).

{{meta.status}}

Expand Down

0 comments on commit 9ff802b

Please sign in to comment.