STRUCT GB_CAMERA_STREAM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct gb_camera_stream β€” the lil struct that represents a greybus camera stream, bestie. That's it, that's the vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct gb_camera_stream {
    unsigned int width;
    unsigned int height;
    enum v4l2_mbus_pixelcode pixel_code;
    unsigned int vc;
    unsigned int dt[2];
    unsigned int max_size;
 };

πŸ¦‹ MEMBERS πŸ¦‹

Okay so here's the cast of characters, and honestly every single one of them is doing their job perfectly πŸ‘‘

  • width β€” the stream width, in pixels. That's the horizontal situation, iykyk πŸ“
  • height β€” the stream height, in pixels. Vertical era πŸ’…
  • pixel_code β€” the media bus pixel code. The whole personality of the pixels, fr.
  • vc β€” the MIPI CSI virtual channel. Think of it as the stream's own little lane πŸ›£οΈ
  • dt β€” the MIPI CSI data types. Listen: most formats only use a single data type, and in that case the second element will be ignored. So don't come for dt[1] if it's not pulling its weight β€” it was literally told to sit this one out πŸ™ˆ
  • max_size β€” maximum size of a frame in bytes. And the camera module guarantees that all data between the Frame Start and Frame End packet for the associated virtual channel and data type(s) will not exceed this size. Like, guaranteed guaranteed. No cap. πŸ”₯

🌸 SEE ALSO 🌸

  • Kernel file ./drivers/staging/greybus/gb-camera.h struct
  • gb_camera_csi_params(9)
  • struct gb_camera_ops(9)
  • struct gb_camera_module(9)

go read those other structs too, they're all in the group chat πŸ’œ

this page lives in ./drivers/staging/greybus, dated October 2026 β€” mwah, kisses, bye bestie 🫢✨

πŸ“¦ where this page comes from