25 #ifndef SPA_VIDEO_RAW_UTILS_H 26 #define SPA_VIDEO_RAW_UTILS_H static int spa_format_video_raw_parse(const struct spa_pod *format, struct spa_video_info_raw *info)
Definition: video/raw-utils.h:47
#define SPA_POD_OPT_Id(val)
Definition: parser.h:540
#define SPA_POD_OPT_Long(val)
Definition: parser.h:544
#define SPA_POD_Int(val)
Definition: vararg.h:74
(Id enum spa_video_multiview_flags)
Definition: param/format.h:149
use the format modifier
Definition: video/raw.h:168
uint32_t denom
Definition: defs.h:141
static const struct spa_pod_prop * spa_pod_find_prop(const struct spa_pod *pod, const struct spa_pod_prop *start, uint32_t key)
Definition: iter.h:428
media type (Id enum spa_media_type)
Definition: param/format.h:112
/Id enum spa_video_color_matrix)
Definition: param/format.h:152
static int spa_pod_builder_add(struct spa_pod_builder *builder,...)
Definition: builder.h:667
/Id enum spa_video_color_range)
Definition: param/format.h:151
#define SPA_POD_OPT_Rectangle(val)
Definition: parser.h:556
uint32_t height
Definition: defs.h:120
/Id enum spa_video_transfer_function)
Definition: param/format.h:153
size (Rectangle)
Definition: param/format.h:142
struct spa_fraction max_framerate
the maximum framerate of the video.
Definition: video/raw.h:202
(Id enum spa_video_interlace_mode)
Definition: param/format.h:146
#define SPA_POD_OPT_Int(val)
Definition: parser.h:542
enum spa_video_multiview_mode multiview_mode
multiview mode
Definition: video/raw.h:207
Definition: param/format.h:48
media subtype (Id enum spa_media_subtype)
Definition: param/format.h:113
enum spa_video_transfer_function transfer_function
the transfer function.
Definition: video/raw.h:214
uint32_t flags
extra video flags
Definition: video/raw.h:197
number of views (Int)
Definition: param/format.h:145
enum spa_video_color_matrix color_matrix
the color matrix.
Definition: video/raw.h:212
static void * spa_pod_builder_pop(struct spa_pod_builder *builder, struct spa_pod_frame *frame)
Definition: builder.h:188
frame rate (Fraction)
Definition: param/format.h:143
uint32_t views
the number of views in this video
Definition: video/raw.h:204
enum spa_video_color_range color_range
the color range.
Definition: video/raw.h:210
#define SPA_POD_OPT_Fraction(val)
Definition: parser.h:558
enum spa_video_multiview_flags multiview_flags
multiview flags
Definition: video/raw.h:208
format modifier (Long) use only with DMA-BUF and omit for other buffer types
Definition: param/format.h:140
static struct spa_pod * spa_format_video_raw_build(struct spa_pod_builder *builder, uint32_t id, struct spa_video_info_raw *info)
Definition: video/raw-utils.h:75
uint32_t width
Definition: defs.h:119
Definition: spa/include/spa/utils/type.h:96
#define spa_pod_parse_object(pod, type, id,...)
Definition: parser.h:596
no flags
Definition: video/raw.h:164
enum spa_video_format format
the format
Definition: video/raw.h:196
video format (Id enum spa_video_format)
Definition: param/format.h:139
#define SPA_POD_Rectangle(val)
Definition: vararg.h:122
#define SPA_POD_Fraction(val)
Definition: vararg.h:131
static int spa_pod_builder_push_object(struct spa_pod_builder *builder, struct spa_pod_frame *frame, uint32_t type, uint32_t id)
Definition: builder.h:455
struct spa_fraction framerate
the framerate of the video, 0/1 means variable rate
Definition: video/raw.h:201
(Rectangle)
Definition: param/format.h:147
(Id enum spa_video_multiview_mode)
Definition: param/format.h:148
struct spa_fraction pixel_aspect_ratio
the pixel aspect ratio
Definition: video/raw.h:206
Definition: video/raw.h:64
Definition: video/raw.h:195
enum spa_video_interlace_mode interlace_mode
the interlace mode
Definition: video/raw.h:205
maximum frame rate (Fraction)
Definition: param/format.h:144
/Id enum spa_video_chroma_site)
Definition: param/format.h:150
/Id enum spa_video_color_primaries)
Definition: param/format.h:154
#define SPA_POD_Id(val)
Definition: vararg.h:69
enum spa_video_color_primaries color_primaries
color primaries.
Definition: video/raw.h:215
Definition: param/format.h:58
#define SPA_POD_Long(val)
Definition: vararg.h:85
struct spa_rectangle size
the frame size of the video
Definition: video/raw.h:200
uint64_t modifier
format modifier only used with DMA-BUF
Definition: video/raw.h:198
enum spa_video_chroma_site chroma_site
the chroma siting
Definition: video/raw.h:209