nal_h264_color_primaries(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nal_h264_color_primaries(9) β€” Kernel API Manual, bestie edition πŸ¦‹

okay so welcome to the Kernel API Manual, where this little function is legit the main character of color-space translation. stay with me, it's giving short-and-iconic πŸ’…

✨ NAME ✨

nal_h264_color_primaries β€” Get color_primaries for v4l2 colorspace πŸ’–

🌸 SYNOPSIS 🌸

int nal_h264_color_primaries (enum v4l2_colorspace colorspace );

that's the whole call, no cap 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • colorspace β€” the color space as enum v4l2_colorspace 🎨✨

πŸ’« DESCRIPTION πŸ’«

okay so this one is lowkey a translator bestie: it converts the enum v4l2_colorspace to color_primaries as specified in Rec. ITU-T H.264 (04/2017) E.2.1. that's the spec, and it ate. fr fr.

πŸ”₯ RETURN πŸ”₯

it hands back the color_primaries value for the passed colorspace. iconic return behavior, ngl πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, your Unix bestie 🫢 β€” source/version ./drivers/media/platform/alleg..., date October 2026. periodt πŸ’–

πŸ“¦ where this page comes from