return gst_video_format_to_string
(gst_wayland_format_to_video_format (wl_format));
}
-
-gboolean
-gst_wayland_sink_format_from_caps (enum wl_shm_format * wl_format,
- GstCaps * caps)
-{
- GstVideoInfo info;
- GstVideoFormat fmt;
-
- gst_video_info_from_caps (&info, caps);
- fmt = GST_VIDEO_INFO_FORMAT (&info);
-
- *wl_format = gst_video_format_to_wayland_format (fmt);
-
- return (*wl_format != -1);
-}
const gchar *gst_wayland_format_to_string (enum wl_shm_format wl_format);
-gboolean gst_wayland_sink_format_from_caps (enum wl_shm_format * wl_format,
- GstCaps * caps);
-
#endif
}
void
-gst_wl_window_get_size (GstWlWindow * window, gint * w, gint * h)
-{
- g_return_if_fail (window != NULL);
-
- if (w)
- *w = window->width;
-
- if (h)
- *h = window->height;
-}
-
-void
gst_wl_window_set_size (GstWlWindow * window, gint w, gint h)
{
g_return_if_fail (window != NULL);
struct wl_surface *gst_wl_window_get_wl_surface (GstWlWindow * window);
gboolean gst_wl_window_is_toplevel (GstWlWindow *window);
-void gst_wl_window_get_size (GstWlWindow * window, gint * w, gint * h);
void gst_wl_window_set_size (GstWlWindow * window, gint w, gint h);
#endif /* __GST_WL_WINDOW_H__ */