mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
d3d11videosink: Specify d3d11 memory caps feature on sinkpad template
This commit is contained in:
parent
c17c1346ee
commit
a687f06b59
2 changed files with 9 additions and 5 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "gstd3d11format.h"
|
||||
#include "gstd3d11utils.h"
|
||||
#include "gstd3d11device.h"
|
||||
#include "gstd3d11memory.h"
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
#define GST_CAT_DEFAULT ensure_debug_category()
|
||||
|
@ -277,6 +278,9 @@ gst_d3d11_device_get_supported_caps_internal (GstD3D11Device * device,
|
|||
gst_caps_set_value (supported_caps, "format", &v_list);
|
||||
g_value_unset (&v_list);
|
||||
|
||||
gst_caps_set_features_simple (supported_caps,
|
||||
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY));
|
||||
|
||||
data->caps = supported_caps;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,14 +39,14 @@ enum
|
|||
#define DEFAULT_FORCE_ASPECT_RATIO TRUE
|
||||
#define DEFAULT_ENABLE_NAVIGATION_EVENTS TRUE
|
||||
|
||||
#define CAPS_FORMAT "{ BGRA, RGBA, RGB10A2_LE }"
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-raw, "
|
||||
"format = (string) { BGRA, RGBA, RGB10A2_LE }, "
|
||||
"framerate = (fraction) [ 0, MAX ], "
|
||||
"width = (int) [ 1, MAX ], " "height = (int) [ 1, MAX ]")
|
||||
);
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES
|
||||
(GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY, CAPS_FORMAT)
|
||||
));
|
||||
|
||||
GST_DEBUG_CATEGORY (d3d11_video_sink_debug);
|
||||
#define GST_CAT_DEFAULT d3d11_video_sink_debug
|
||||
|
|
Loading…
Reference in a new issue