mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
When support for modifier-aware DMA_DRM formats was added in f1b75fc6,
the translation between Pipewire parameters and Gstreamer caps was kept
compatible with the] non-DMA_DRM/legacy API by reporting format/modifier
combinations with linear or invalid modifier both as `format` and
`drm-format`.
In cases when a linear modifier ends up being negotiated, this, however,
resurts in non-fixated caps, preventing the negotiation to succeed.
Add a helper that allows to fixate such caps.
24 lines
521 B
C
24 lines
521 B
C
/* GStreamer */
|
|
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef _GST_PIPEWIRE_FORMAT_H_
|
|
#define _GST_PIPEWIRE_FORMAT_H_
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <spa/pod/pod.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
GPtrArray * gst_caps_to_format_all (GstCaps *caps);
|
|
|
|
GstCaps * gst_caps_from_format (const struct spa_pod *format);
|
|
|
|
void gst_caps_sanitize (GstCaps **caps);
|
|
|
|
void gst_caps_maybe_fixate_dma_format (GstCaps *caps);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif
|