mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-26 07:00:13 -05:00
improve format support
This commit is contained in:
parent
a973007a49
commit
ee17176faf
8 changed files with 222 additions and 91 deletions
|
|
@ -24,12 +24,12 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _SpaVideoInfoJPEG SpaVideoInfoJPEG;
|
||||
typedef struct _SpaVideoInfoMJPG SpaVideoInfoMJPG;
|
||||
|
||||
#include <spa/format.h>
|
||||
#include <spa/video/format.h>
|
||||
|
||||
struct _SpaVideoInfoJPEG {
|
||||
struct _SpaVideoInfoMJPG {
|
||||
SpaRectangle size;
|
||||
SpaFraction framerate;
|
||||
SpaFraction max_framerate;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ typedef enum {
|
|||
SPA_PROP_ID_VIDEO_COLOR_MATRIX,
|
||||
SPA_PROP_ID_VIDEO_TRANSFER_FUNCTION,
|
||||
SPA_PROP_ID_VIDEO_COLOR_PRIMARIES,
|
||||
SPA_PROP_ID_VIDEO_RAW_INFO,
|
||||
SPA_PROP_ID_VIDEO_INFO_RAW,
|
||||
SPA_PROP_ID_VIDEO_INFO_MJPG,
|
||||
} SpaPropIdVideo;
|
||||
|
||||
SpaResult spa_prop_info_fill_video (SpaPropInfo *info,
|
||||
|
|
@ -62,7 +63,7 @@ struct _SpaFormatVideo {
|
|||
SpaFormat format;
|
||||
union {
|
||||
SpaVideoInfoRaw raw;
|
||||
SpaVideoInfoJPEG jpeg;
|
||||
SpaVideoInfoMJPG mjpg;
|
||||
} info;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue