ENUM V4L2_JPEG_APP14_TF(9)
π enum v4l2_jpeg_app14_tf β the APP14 transform flag, bestie edition π
okay so this is a page from the Kernel API Manual, and it's literally all about one tiny enum that tells you what the APP14 segment is saying about colour encoding. grab a snack, we're decoding. π
β¨ NAME β¨
enum v4l2_jpeg_app14_tf β the APP14 transform flag. Per Rec. ITU-T T.872 (06/2012) 6.5.3, the APP14 segment exists for colour encoding, and it holds a transform flag. That flag can have the values 0, 1 and 2, and they get interpreted as follows: π
πΈ SYNOPSIS πΈ
enum v4l2_jpeg_app14_tf {
V4L2_JPEG_APP14_TF_CMYK_RGB ,
V4L2_JPEG_APP14_TF_YCBCR ,
V4L2_JPEG_APP14_TF_YCCK ,
V4L2_JPEG_APP14_TF_UNKNOWN
};
like, that's the whole enum, no cap. four constants, that's it, that's the vibe. π
π¦ Constants π¦
π the four icons themselves
V4L2_JPEG_APP14_TF_CMYK_RGBβ CMYK for images encoded with four components, and RGB for images encoded with three components. yes, it's one constant doing double duty, she contains multitudes. πV4L2_JPEG_APP14_TF_YCBCRβ an image encoded with three components using YCbCr. three components, YCbCr, slay. β¨V4L2_JPEG_APP14_TF_YCCKβ an image encoded with four components using YCCK. four components this time, okurrr. π«ΆV4L2_JPEG_APP14_TF_UNKNOWNβ indicates app14 is not present. the "no thoughts, head empty" option, literally. π
π₯ SEE ALSO π₯
kernel file ./include/media/v4l2-jpeg.h, plus the whole friend group:
struct v4l2_jpeg_reference(9)struct v4l2_jpeg_frame_component_spec(9)struct v4l2_jpeg_frame_header(9)struct v4l2_jpeg_scan_component_spec(9)struct v4l2_jpeg_scan_header(9)struct v4l2_jpeg_header(9)
go read them, iykyk. ππ
ngl, if you're poking at JPEG headers in the kernel, this enum is your main character energy. memorize the four constants and you're golden. πβ
and that's a wrap, bestie! this lil gem lives in ./include/media, and the page is dated October 2026 (yes, the future, we're just that ahead π
). bye, ily, go read your headers! π¦β¨ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms