STRUCT GSC_FRAME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

struct gsc_frame β€” bestie, this is literally the source/target frame properties struct ✨

It's a manual page from the Kernel API Manual, and we're gonna get you so comfy with it 🫢


✨ SYNOPSIS

struct gsc_frame {
    u32 f_width;
    u32 f_height;
    struct v4l2_rect crop;
    unsigned long payload[VIDEO_MAX_PLANES];
    struct gsc_addr addr;
    const struct gsc_fmt *fmt;
    u32 colorspace;
    u8 alpha;
 };

No cap, that's the whole vibe. Now let's meet the members πŸ’–


πŸŽ€ Members

  • f_width β€” okay so width has two moods depending on where you are: on SRC it's SRCIMG_WIDTH, and on DST it's OUTPUTDMA_WHOLE_IMG_WIDTH. Same girl, different era πŸ’…
  • f_height β€” and height is matching energy fr fr: SRC : SRCIMG_HEIGHT, DST : OUTPUTDMA_WHOLE_IMG_HEIGHT πŸ¦‹
  • crop β€” the cropped size when you're the source, and the scaled size when you're the destination πŸŽ€ it's giving glow-up by scaling
  • payload β€” the image size in bytes (that's w x h x bpp, iykyk) and it's an array of VIDEO_MAX_PLANES of type unsigned long πŸ”₯
  • addr β€” the image frame buffer physical addresses, aka where the pixels actually live 🏠✨
  • fmt β€” a G-Scaler color format pointer, typed const struct gsc_fmt * πŸ‘‘
  • colorspace β€” a value indicating v4l2_colorspace 🌈
  • alpha β€” the frame's alpha value, a little u8 doing big things πŸ’œ

🌸 SEE ALSO

Peep the kernel file ./drivers/media/platform/samsung/exynos-gsc/gsc-core.h for the full lore, plus these iconic friends:

  • enum gsc_datapath(9)
  • struct gsc_fmt(9)
  • struct gsc_input_buf(9)
  • struct gsc_addr(9)
  • struct gsc_scaler(9)
  • struct gsc_m2m_device(9)
  • struct gsc_pix_max(9)
  • struct gsc_pix_min(9)
  • struct gsc_driverdata(9)
  • struct gsc_dev(9)
  • struct gsc_ctx(9)

And that's the whole page, bestie β€” you ate πŸ’…πŸ’–

Signing off with love from ./drivers/media/platform/samsu..., dated October 2026 ⭐ struct gsc_frame(9) out πŸŽ€βœ¨

πŸ“¦ where this page comes from