mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
Including C headers inside of `extern "C"` breaks use from C++. Hoist the includes of standard C headers above the block so we don't try to mangle the stdlib. I initially tried to scope this with a targeted change but it's too hard to do correctly that way. This way, we avoid whack-a-mole. Firefox is working around this in their e21461b7b8b39cc31ba53c47d4f6f310c673ff2f commit. Bug: https://bugzilla.mozilla.org/1953080
48 lines
858 B
C
48 lines
858 B
C
/* Simple Plugin API */
|
|
/* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef SPA_VIDEO_H264_H
|
|
#define SPA_VIDEO_H264_H
|
|
|
|
#include <spa/param/format.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* \addtogroup spa_param
|
|
* \{
|
|
*/
|
|
|
|
enum spa_h264_stream_format {
|
|
SPA_H264_STREAM_FORMAT_UNKNOWN = 0,
|
|
SPA_H264_STREAM_FORMAT_AVC,
|
|
SPA_H264_STREAM_FORMAT_AVC3,
|
|
SPA_H264_STREAM_FORMAT_BYTESTREAM
|
|
};
|
|
|
|
enum spa_h264_alignment {
|
|
SPA_H264_ALIGNMENT_UNKNOWN = 0,
|
|
SPA_H264_ALIGNMENT_AU,
|
|
SPA_H264_ALIGNMENT_NAL
|
|
};
|
|
|
|
struct spa_video_info_h264 {
|
|
struct spa_rectangle size;
|
|
struct spa_fraction framerate;
|
|
struct spa_fraction max_framerate;
|
|
enum spa_h264_stream_format stream_format;
|
|
enum spa_h264_alignment alignment;
|
|
};
|
|
|
|
/**
|
|
* \}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* SPA_VIDEO_H264_H */
|