Home | History | Annotate | Download | only in devices

Lines Matching refs:device

94   std::vector<Device> devices;
108 bool DeviceManager::GetAudioInputDevices(std::vector<Device>* devices) {
112 bool DeviceManager::GetAudioOutputDevices(std::vector<Device>* devices) {
116 bool DeviceManager::GetAudioInputDevice(const std::string& name, Device* out) {
120 bool DeviceManager::GetAudioOutputDevice(const std::string& name, Device* out) {
124 bool DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) {
127 // On Android and iOS, we treat the camera(s) as a single device. Even if
129 Device dev("camera", "1"); // name and ID
138 Device* out) {
139 // If the name is empty, return the default device.
144 std::vector<Device> devices;
149 for (std::vector<Device>::const_iterator it = devices.begin();
158 // return a fake video capturer device.
167 Device* out) const {
192 VideoCapturer* DeviceManager::CreateVideoCapturer(const Device& device) const {
193 VideoCapturer* capturer = MaybeConstructFakeVideoCapturer(device);
202 capturer = video_device_capturer_factory_->Create(device);
206 LOG(LS_INFO) << "Created VideoCapturer for " << device.name;
208 bool has_max = GetMaxFormat(device, &video_format);
217 const Device& device) const {
220 if (FileVideoCapturer::IsFileVideoCapturerDevice(device)) {
222 if (!capturer->Init(device)) {
226 LOG(LS_INFO) << "Created file video capturer " << device.name;
231 if (YuvFramesCapturer::IsYuvFramesCapturerDevice(device)) {
265 std::vector<Device>* devs) {
268 // Under Android, 0 is always required for the playout device and 0 is the
269 // default for the recording device.
270 devs->push_back(Device("default-device", 0));
274 // (desktop) or don't use device manager for audio devices (iOS).
280 Device* out) {
281 // If the name is empty, return the default device id.
283 *out = Device(name, -1);
287 std::vector<Device> devices;
303 bool DeviceManager::GetDefaultVideoCaptureDevice(Device* device) {
305 // We just return the first device.
306 std::vector<Device> devices;
309 *device = devices[0];
326 bool DeviceManager::GetMaxFormat(const Device& device,
328 // Match USB ID if available. Failing that, match device name.
330 if (GetUsbId(device, &usb_id) && IsInWhitelist(usb_id, video_format)) {
333 return IsInWhitelist(device.name, video_format);
346 LOG(LS_INFO) << "Ignoring device " << device_name;
354 bool DeviceManager::FilterDevices(std::vector<Device>* devices,
360 for (std::vector<Device>::iterator it = devices->begin();