mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
spa: specify SPA_FORMAT_VIDEO_MODIFIER as DMA-BUF only
SPA_FORMAT_VIDEO_MODIFIER is only valid with DMA-BUF transport. For using other types of buffers omit this property.
This commit is contained in:
parent
1f5396fedb
commit
07d0b14955
|
@ -120,7 +120,8 @@ enum spa_format {
|
|||
/* Video Format keys */
|
||||
SPA_FORMAT_START_Video = 0x20000,
|
||||
SPA_FORMAT_VIDEO_format, /**< video format (Id enum spa_video_format) */
|
||||
SPA_FORMAT_VIDEO_modifier, /**< format modifier (Long) */
|
||||
SPA_FORMAT_VIDEO_modifier, /**< format modifier (Long)
|
||||
* use only with DMA-BUF and omit for other buffer types */
|
||||
SPA_FORMAT_VIDEO_size, /**< size (Rectangle) */
|
||||
SPA_FORMAT_VIDEO_framerate, /**< frame rate (Fraction) */
|
||||
SPA_FORMAT_VIDEO_maxFramerate, /**< maximum frame rate (Fraction) */
|
||||
|
|
|
@ -177,7 +177,8 @@ enum spa_video_interlace_mode {
|
|||
*/
|
||||
struct spa_video_info_raw {
|
||||
enum spa_video_format format; /**< the format */
|
||||
int64_t modifier; /**< format modifier */
|
||||
int64_t modifier; /**< format modifier
|
||||
* only used with DMA-BUF */
|
||||
struct spa_rectangle size; /**< the frame size of the video */
|
||||
struct spa_fraction framerate; /**< the framerate of the video, 0/1 means variable rate */
|
||||
struct spa_fraction max_framerate; /**< the maximum framerate of the video. This is only valid when
|
||||
|
|
Loading…
Reference in a new issue