PROP_SATURATION,
PROP_BRIGHTNESS,
PROP_CONTRAST,
+ PROP_VA_DISPLAY,
N_PROPERTIES
};
GstVaapiDisplay *display = GST_VAAPI_DISPLAY (object);
const GstVaapiProperty *prop;
+ if (property_id == PROP_VA_DISPLAY) {
+ g_value_set_pointer (value, gst_vaapi_display_get_display (display));
+ return;
+ }
+
if (!ensure_properties (display))
return;
"contrast",
"The display contrast value", 0.0, 2.0, 1.0, G_PARAM_READWRITE);
+ /**
+ * GstVaapiDisplay:va-display:
+ *
+ * The VA display handle, expressed as a #VADisplay.
+ */
+ g_properties[PROP_VA_DISPLAY] =
+ g_param_spec_pointer ("va-display", "VADisplay",
+ "VA Display handler", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+
g_object_class_install_properties (object_class, N_PROPERTIES, g_properties);
gst_type_mark_as_plugin_api (gst_vaapi_display_type_get_type (), 0);
}
structure = gst_context_writable_structure (context);
gst_structure_set (structure, GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME,
GST_TYPE_VAAPI_DISPLAY, display, NULL);
+ /* The outside user may access it as a generic Gobject. */
+ gst_structure_set (structure, "gst.vaapi.Display.GObject",
+ GST_TYPE_OBJECT, display, NULL);
}
GstContext *