image_metadata(3)
π 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 from1to65535.mmaxβ sets the master max luminance, in cd/m2 from1to65535.cllβ sets the max content light level, in cd/m2 from1to65535.fllβ the frame average light level, in cd/m2 from1to65535.
π 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
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms