PipeWire: spa/param/video/h264.h Source File

PipeWire 1.6.5

Loading...
Searching...
No Matches
h264.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_VIDEO_H264_H
6#define SPA_VIDEO_H264_H
7
8#include <spa/param/format.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
18
19enum spa_h264_stream_format {
20 SPA_H264_STREAM_FORMAT_UNKNOWN = 0,
21 SPA_H264_STREAM_FORMAT_AVC,
22 SPA_H264_STREAM_FORMAT_AVC3,
23 SPA_H264_STREAM_FORMAT_BYTESTREAM
24};
25
26 enum spa_h264_alignment {
27 SPA_H264_ALIGNMENT_UNKNOWN = 0,
28 SPA_H264_ALIGNMENT_AU,
29 SPA_H264_ALIGNMENT_NAL
30};
31
32 struct spa_video_info_h264 {
33 struct spa_rectangle size;
34 struct spa_fraction framerate;
35 struct spa_fraction max_framerate;
36 enum spa_h264_stream_format stream_format;
37 enum spa_h264_alignment alignment;
38};
39
43
44#ifdef __cplusplus
45} /* extern "C" */
46#endif
47
48#endif /* SPA_VIDEO_H264_H */
spa_h264_alignment
spa_h264_alignment
Definition h264.h:31
spa_h264_stream_format
spa_h264_stream_format
Definition h264.h:24
SPA_H264_ALIGNMENT_UNKNOWN
@ SPA_H264_ALIGNMENT_UNKNOWN
Definition h264.h:32
SPA_H264_ALIGNMENT_NAL
@ SPA_H264_ALIGNMENT_NAL
Definition h264.h:34
SPA_H264_ALIGNMENT_AU
@ SPA_H264_ALIGNMENT_AU
Definition h264.h:33
SPA_H264_STREAM_FORMAT_UNKNOWN
@ SPA_H264_STREAM_FORMAT_UNKNOWN
Definition h264.h:25
SPA_H264_STREAM_FORMAT_BYTESTREAM
@ SPA_H264_STREAM_FORMAT_BYTESTREAM
Definition h264.h:28
SPA_H264_STREAM_FORMAT_AVC
@ SPA_H264_STREAM_FORMAT_AVC
Definition h264.h:26
SPA_H264_STREAM_FORMAT_AVC3
@ SPA_H264_STREAM_FORMAT_AVC3
Definition h264.h:27
format.h
spa/param/format.h
spa_fraction
Definition defs.h:137
spa_rectangle
Definition defs.h:116
spa_video_info_h264
Definition h264.h:37
spa_video_info_h264::alignment
enum spa_h264_alignment alignment
Definition h264.h:42
spa_video_info_h264::size
struct spa_rectangle size
Definition h264.h:38
spa_video_info_h264::framerate
struct spa_fraction framerate
Definition h264.h:39
spa_video_info_h264::stream_format
enum spa_h264_stream_format stream_format
Definition h264.h:41
spa_video_info_h264::max_framerate
struct spa_fraction max_framerate
Definition h264.h:40