Lines Matching refs:hw_devices
28 static HWDevice **hw_devices; variable
35 if (hw_devices[i]->type == type) { in hw_device_get_by_type()
38 found = hw_devices[i]; in hw_device_get_by_type()
48 if (!strcmp(hw_devices[i]->name, name)) in hw_device_get_by_name()
49 return hw_devices[i]; in hw_device_get_by_name()
57 err = av_reallocp_array(&hw_devices, nb_hw_devices + 1, in hw_device_add()
58 sizeof(*hw_devices)); in hw_device_add()
63 hw_devices[nb_hw_devices] = av_mallocz(sizeof(HWDevice)); in hw_device_add()
64 if (!hw_devices[nb_hw_devices]) in hw_device_add()
66 return hw_devices[nb_hw_devices++]; in hw_device_add()
278 av_freep(&hw_devices[i]->name); in hw_device_free_all()
279 av_buffer_unref(&hw_devices[i]->device_ref); in hw_device_free_all()
280 av_freep(&hw_devices[i]); in hw_device_free_all()
282 av_freep(&hw_devices); in hw_device_free_all()
537 dev = hw_devices[0]; in hw_device_setup_for_filter()