• Home
  • Raw
  • Download

Lines Matching refs:device

43 gst_vdp_device_open (GstVdpDevice * device, GError ** error)  in gst_vdp_device_open()  argument
56 {VDP_FUNC_ID_DEVICE_DESTROY, &device->vdp_device_destroy}, in gst_vdp_device_open()
58 &device->vdp_video_surface_create}, in gst_vdp_device_open()
60 &device->vdp_video_surface_destroy}, in gst_vdp_device_open()
62 &device->vdp_video_surface_query_capabilities}, in gst_vdp_device_open()
64 &device->vdp_video_surface_query_ycbcr_capabilities}, in gst_vdp_device_open()
66 &device->vdp_video_surface_get_bits_ycbcr}, in gst_vdp_device_open()
68 &device->vdp_video_surface_put_bits_ycbcr}, in gst_vdp_device_open()
70 &device->vdp_video_surface_get_parameters}, in gst_vdp_device_open()
71 {VDP_FUNC_ID_DECODER_CREATE, &device->vdp_decoder_create}, in gst_vdp_device_open()
72 {VDP_FUNC_ID_DECODER_RENDER, &device->vdp_decoder_render}, in gst_vdp_device_open()
73 {VDP_FUNC_ID_DECODER_DESTROY, &device->vdp_decoder_destroy}, in gst_vdp_device_open()
75 &device->vdp_decoder_query_capabilities}, in gst_vdp_device_open()
77 &device->vdp_decoder_get_parameters}, in gst_vdp_device_open()
78 {VDP_FUNC_ID_VIDEO_MIXER_CREATE, &device->vdp_video_mixer_create}, in gst_vdp_device_open()
79 {VDP_FUNC_ID_VIDEO_MIXER_DESTROY, &device->vdp_video_mixer_destroy}, in gst_vdp_device_open()
80 {VDP_FUNC_ID_VIDEO_MIXER_RENDER, &device->vdp_video_mixer_render}, in gst_vdp_device_open()
82 &device->vdp_video_mixer_set_feature_enables}, in gst_vdp_device_open()
84 &device->vdp_video_mixer_set_attribute_values}, in gst_vdp_device_open()
85 {VDP_FUNC_ID_OUTPUT_SURFACE_CREATE, &device->vdp_output_surface_create}, in gst_vdp_device_open()
86 {VDP_FUNC_ID_OUTPUT_SURFACE_DESTROY, &device->vdp_output_surface_destroy}, in gst_vdp_device_open()
88 &device->vdp_output_surface_query_capabilities}, in gst_vdp_device_open()
90 &device->vdp_output_surface_get_bits_native}, in gst_vdp_device_open()
92 &device->vdp_presentation_queue_target_create_x11}, in gst_vdp_device_open()
94 &device->vdp_presentation_queue_target_destroy}, in gst_vdp_device_open()
96 &device->vdp_presentation_queue_create}, in gst_vdp_device_open()
98 &device->vdp_presentation_queue_destroy}, in gst_vdp_device_open()
100 &device->vdp_presentation_queue_display}, in gst_vdp_device_open()
102 &device->vdp_presentation_queue_block_until_surface_idle}, in gst_vdp_device_open()
104 &device->vdp_presentation_queue_set_background_color}, in gst_vdp_device_open()
106 &device->vdp_presentation_queue_query_surface_status} in gst_vdp_device_open()
109 GST_DEBUG_OBJECT (device, "Opening the device for display '%s'", in gst_vdp_device_open()
110 device->display_name); in gst_vdp_device_open()
112 device->display = XOpenDisplay (device->display_name); in gst_vdp_device_open()
113 if (!device->display) in gst_vdp_device_open()
116 screen = DefaultScreen (device->display); in gst_vdp_device_open()
118 vdp_device_create_x11 (device->display, screen, &device->device, in gst_vdp_device_open()
119 &device->vdp_get_proc_address); in gst_vdp_device_open()
123 status = device->vdp_get_proc_address (device->device, in gst_vdp_device_open()
124 VDP_FUNC_ID_GET_ERROR_STRING, (void **) &device->vdp_get_error_string); in gst_vdp_device_open()
129 status = device->vdp_get_proc_address (device->device, in gst_vdp_device_open()
136 GST_DEBUG_OBJECT (device, "Succesfully opened the device"); in gst_vdp_device_open()
142 "Could not open X display with name: %s", device->display_name); in gst_vdp_device_open()
147 "Could not create VDPAU device for display: %s", device->display_name); in gst_vdp_device_open()
158 device->vdp_get_error_string (status)); in gst_vdp_device_open()
165 GstVdpDevice *device; in gst_vdp_device_new() local
167 device = g_object_new (GST_TYPE_VDP_DEVICE, "display", display_name, NULL); in gst_vdp_device_new()
169 if (!gst_vdp_device_open (device, error)) { in gst_vdp_device_new()
170 g_object_unref (device); in gst_vdp_device_new()
174 return device; in gst_vdp_device_new()
178 gst_vdp_device_init (GstVdpDevice * device) in gst_vdp_device_init() argument
180 device->display_name = NULL; in gst_vdp_device_init()
181 device->display = NULL; in gst_vdp_device_init()
182 device->device = VDP_INVALID_HANDLE; in gst_vdp_device_init()
183 device->vdp_decoder_destroy = NULL; in gst_vdp_device_init()
189 GstVdpDevice *device = (GstVdpDevice *) object; in gst_vdp_device_finalize() local
191 if (device->device != VDP_INVALID_HANDLE && device->vdp_decoder_destroy) { in gst_vdp_device_finalize()
192 device->vdp_device_destroy (device->device); in gst_vdp_device_finalize()
193 device->device = VDP_INVALID_HANDLE; in gst_vdp_device_finalize()
196 if (device->display) { in gst_vdp_device_finalize()
197 XCloseDisplay (device->display); in gst_vdp_device_finalize()
198 device->display = NULL; in gst_vdp_device_finalize()
201 g_free (device->display_name); in gst_vdp_device_finalize()
202 device->display_name = NULL; in gst_vdp_device_finalize()
211 GstVdpDevice *device; in gst_vdp_device_set_property() local
215 device = (GstVdpDevice *) object; in gst_vdp_device_set_property()
219 device->display_name = g_value_dup_string (value); in gst_vdp_device_set_property()
231 GstVdpDevice *device; in gst_vdp_device_get_property() local
235 device = (GstVdpDevice *) object; in gst_vdp_device_get_property()
239 g_value_set_string (value, device->display_name); in gst_vdp_device_get_property()
275 gpointer device; in device_destroyed_cb() local
282 while (g_hash_table_iter_next (&iter, NULL, &device)) { in device_destroyed_cb()
283 if (device == object) { in device_destroyed_cb()
297 GstVdpDevice *device; in gst_vdp_get_device() local
312 device = g_hash_table_lookup (device_cache.hash_table, display_name); in gst_vdp_get_device()
314 device = g_hash_table_lookup (device_cache.hash_table, ""); in gst_vdp_get_device()
316 if (!device) { in gst_vdp_get_device()
318 device = gst_vdp_device_new (display_name, error); in gst_vdp_get_device()
319 if (device) { in gst_vdp_get_device()
320 g_object_weak_ref (G_OBJECT (device), device_destroyed_cb, &device_cache); in gst_vdp_get_device()
323 device); in gst_vdp_get_device()
325 g_hash_table_insert (device_cache.hash_table, g_strdup (""), device); in gst_vdp_get_device()
329 g_object_ref (device); in gst_vdp_get_device()
333 return device; in gst_vdp_get_device()