SDL_CameraSpec(3type)
π SDL_CameraSpec β the 3type glow-up π
okay bestie, welcome to the SDL3 DATATYPES corner of the manual, where we're decoding SDL_CameraSpec(3type) β and yes, she's giving struct energy π
β¨ NAME β¨
SDL_CameraSpec β literally the details of an output format for a camera device. that's it, that's the whole job description π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_camera.h>
typedef struct SDL_CameraSpec
{
SDL_PixelFormat format; /**< Frame format */
SDL_Colorspace colorspace; /**< Frame colorspace */
int width; /**< Frame width */
int height; /**< Frame height */
int framerate_numerator; /**< Frame rate numerator ((num / denom) == FPS, (denom / num) == duration in seconds) */
int framerate_denominator; /**< Frame rate denominator ((num / denom) == FPS, (denom / num) == duration in seconds) */
} SDL_CameraSpec;
likeβ¦ look at her. six fields, zero drama, all vibes π
β¨ DESCRIPTION β¨
so here's the tea β β cameras often support multiple formats, right? and every single one of them gets wrapped up all cozy inside this struct. one spec per format, no cap. π¦
β¨ AVAILABILITY β¨
this struct has been on the scene since SDL 3.2.0 β so if you're on anything older, bestie, she simply isn't there yet π
β¨ SEE ALSO β¨
go read those too, iykyk π
and that's the whole page, periodt. this lil' datatype page came to you courtesy of Simple Directmedia Layer, running SDL 3.4.18, and she's stamped with the date SDL_CameraSpec(3type) π stan a camera format struct, mwah πβ¨πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms