Lines Matching refs:dev

58 	ScanFolder("/dev/dvb");
91 device_info *dev = (device_info *)fDeviceList.ItemAt(n);
92 if (!dev)
94 *out_info = &dev->flavor;
104 device_info *dev = (device_info *)fDeviceList.ItemAt(info->internal_id);
105 if (!dev || dev->flavor.internal_id != info->internal_id) {
111 return new DVBMediaNode(this, dev->name, dev->flavor.internal_id, dev->card);
137 device_info *dev = (device_info *)fDeviceList.ItemAt(index);
138 if (!dev) {
144 *outInternalID = dev->flavor.internal_id;
145 *outNode = new DVBMediaNode(this, dev->name, dev->flavor.internal_id, dev->card);
213 device_info *dev = new device_info;
214 fDeviceList.AddItem(dev);
216 dev->card = card;
219 // snprintf(dev->name, sizeof(dev->name), "DVB-%s %s (%s)", dvbtype, dvbnumber, name);
220 // strlcpy(dev->info, info, sizeof(dev->info));
221 sprintf(dev->name, "DVB-%s %s %s", dvbtype, name, dvbnumber);
222 strcpy(dev->info, info);
225 memset(dev->formats, 0, sizeof(dev->formats));
226 dev->formats[0].type = B_MEDIA_RAW_VIDEO;
227 dev->formats[1].type = B_MEDIA_RAW_AUDIO;
228 dev->formats[2].type = B_MEDIA_ENCODED_VIDEO;
229 dev->formats[3].type = B_MEDIA_ENCODED_AUDIO;
230 dev->formats[4].type = B_MEDIA_MULTISTREAM;
233 dev->flavor.name = dev->name;
234 dev->flavor.info = dev->info;
235 dev->flavor.kinds = B_BUFFER_PRODUCER | B_CONTROLLABLE | B_PHYSICAL_INPUT;
236 dev->flavor.flavor_flags = B_FLAVOR_IS_GLOBAL;
237 dev->flavor.internal_id = fDeviceList.CountItems() - 1;
238 dev->flavor.possible_count = 1;
239 dev->flavor.in_format_count = 0;
240 dev->flavor.in_format_flags = 0;
241 dev->flavor.in_formats = 0;
242 dev->flavor.out_format_count = 5;
243 dev->flavor.out_format_flags = 0;
244 dev->flavor.out_formats = dev->formats;
251 device_info *dev;
252 while ((dev = (device_info *)fDeviceList.RemoveItem((int32)0))) {
253 delete dev->card;
254 delete dev;