mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
vdpau: Add VdpVideoSurface caps feature
This commit is contained in:
parent
99c1dce8db
commit
37352509eb
2 changed files with 9 additions and 3 deletions
|
@ -342,9 +342,13 @@ gst_vdp_decoder_class_init (GstVdpDecoderClass * klass)
|
||||||
video_decoder_class->decide_allocation = gst_vdp_decoder_decide_allocation;
|
video_decoder_class->decide_allocation = gst_vdp_decoder_decide_allocation;
|
||||||
|
|
||||||
GST_FIXME ("Actually create srcpad template from hw capabilities");
|
GST_FIXME ("Actually create srcpad template from hw capabilities");
|
||||||
src_caps = gst_caps_from_string ("video/x-raw,format={ YV12 }");
|
src_caps =
|
||||||
src_template = gst_pad_template_new (GST_VIDEO_DECODER_SRC_NAME,
|
gst_caps_from_string (GST_VIDEO_CAPS_MAKE_WITH_FEATURES
|
||||||
GST_PAD_SRC, GST_PAD_ALWAYS, src_caps);
|
(GST_CAPS_FEATURE_MEMORY_VDPAU,
|
||||||
|
"{ YV12 }") ";" GST_VIDEO_CAPS_MAKE ("{ YV12 }"));
|
||||||
|
src_template =
|
||||||
|
gst_pad_template_new (GST_VIDEO_DECODER_SRC_NAME, GST_PAD_SRC,
|
||||||
|
GST_PAD_ALWAYS, src_caps);
|
||||||
|
|
||||||
gst_element_class_add_pad_template (element_class, src_template);
|
gst_element_class_add_pad_template (element_class, src_template);
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,8 @@ struct _GstVdpVideoMemory
|
||||||
|
|
||||||
#define GST_VDP_VIDEO_MEMORY_ALLOCATOR "VdpVideoMemory"
|
#define GST_VDP_VIDEO_MEMORY_ALLOCATOR "VdpVideoMemory"
|
||||||
|
|
||||||
|
#define GST_CAPS_FEATURE_MEMORY_VDPAU "memory:VdpVideoSurface"
|
||||||
|
|
||||||
void gst_vdp_video_memory_init (void);
|
void gst_vdp_video_memory_init (void);
|
||||||
|
|
||||||
GstMemory *
|
GstMemory *
|
||||||
|
|
Loading…
Reference in a new issue