STRUCT PXA_CAMERA_FORMAT_XLATE(9)
π struct pxa_camera_format_xlate(9) β the kernel API glow-up
okay so bestie, let me put you onto struct pxa_camera_format_xlate from the kernel API manual β this is the little struct that plays matchmaker between your host and your sensor formats, and honestly? it's giving wingman energy π«Ά
β¨ NAME β¨
struct pxa_camera_format_xlate β the match between host and sensor formats π (yes it's literally a matchmaking struct, no cap)
πΈ SYNOPSIS πΈ
struct pxa_camera_format_xlate {
u32 code;
const struct pxa_mbus_pixelfmt *host_fmt;
};
two members, zero drama. look at her. so clean. β¨
π Members π
codeβ the code of a sensor provided format π this is the sensor's little name taghost_fmtβ the host format after host translation fromcodeπ¦ so this is whatcodeturns into once the host has done its thing
π Description π
okay so this is your host-and-sensor translation structure, fr fr. it gets used in the table of host and sensor format matchings inside pxa_camera_device β think of it as the group chat where every sensor format finds its host-format bestie π
and here's the fun part: a host can straight-up override the generic list generation by implementing get_formats, and then use it for format checks and format setup. main character behavior, honestly. the host said "i'll handle the roster myself" and slayed. π₯
π SEE ALSO π
y'all better go read these too, iykyk ππ
- Kernel file
./drivers/media/platform/intel/pxa_camera.c enum pxa_mbus_packing(9)enum pxa_mbus_order(9)enum pxa_mbus_layout(9)struct pxa_mbus_pixelfmt(9)struct pxa_mbus_lookup(9)pxa_init_dma_channel(9)pxa_dma_start_channels(9)pxa_camera_start_capture(9)pxa_camera_check_link_miss(9)
reminder bestie: this page lives in./drivers/media/platform/intel, it's dated October 2026, and it's titledstruct pxa_c...format_xlate(9)π (yes the title really is truncated like that, we don't make the rules)
k that's the whole page, go forth and translate some formats, you're gonna eat π β¨ππ
π¦ 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