image_metadata(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’– NAME πŸ’–

image_metadata β€” set / update image contents metadata, bestie ✨

okay so real talk, this page is from the Arcan Lua API, section 3, and it's literally all about attaching the ~lore~ to your pixels πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

bool:ok
image_metadata( vid:tgt, string:model=drmv1, numtbl[8]:coords,
number:mmin, number:mmax, number:cll, number:fll, string:eotf )

πŸ¦‹ DESCRIPTION πŸ¦‹

HDR rendering, computer vision, compression and similar processes all can benefit about added information about what the pixels represent or other kind of contextual detail such as motion vectors. like, they thrive on context, no cap 🫢

This function is used to attach/update/define a metadata model for the target vid. The currently supported model is "drmv1", used for HDR scanout β€” if the tgt is mapped to a display supporting it, the metadata will be forwarded to that screen accordingly. it's giving "pass the note along" energy 😭✨


🌸 the drmv1 deets 🌸

The arguments for model=drmv1 are 8 coordinates for red, green, blue chromaticities and whitepoint. These coordinates will be clamped to range from 0 to 1.3107. hello, boundaries πŸ’€

  • mmin β€” sets the master minimum luminance, in cd/m2 from 1 to 65535.
  • mmax β€” sets the master max luminance, in cd/m2 from 1 to 65535.
  • cll β€” sets the max content light level, in cd/m2 from 1 to 65535.
  • fll β€” the frame average light level, in cd/m2 from 1 to 65535.

πŸ“‹ and the eotf (electro-optical transfer function)? she should be one out of:

  • 'sdr' (sRGB) ⭐
  • 'hdr' (linear) πŸ”₯
  • 'pq' πŸ‘‘
  • 'hlg' 🌈

and it corresponds to the CTA-861-G. periodt. πŸ’…


that's the whole vibe, bestie β€” go forth and annotate those pixels πŸ§šβ€β™€οΈπŸ’œ

~ cute lil sign-off ~ this page came from image and it's dated October 2026 πŸŽ€ see u in the next image_metadata(3) era πŸ¦‹

πŸ“¦ where this page comes from