Lines Matching defs:hw_devices
28 static HWDevice **hw_devices;
35 if (hw_devices[i]->type == type) {
38 found = hw_devices[i];
48 if (!strcmp(hw_devices[i]->name, name))
49 return hw_devices[i];
57 err = av_reallocp_array(&hw_devices, nb_hw_devices + 1,
58 sizeof(*hw_devices));
63 hw_devices[nb_hw_devices] = av_mallocz(sizeof(HWDevice));
64 if (!hw_devices[nb_hw_devices])
66 return hw_devices[nb_hw_devices++];
292 av_freep(&hw_devices[i]->name);
293 av_buffer_unref(&hw_devices[i]->device_ref);
294 av_freep(&hw_devices[i]);
296 av_freep(&hw_devices);
561 dev = hw_devices[nb_hw_devices - 1];