| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/video/capture/android/video_capture_device_android.h" | 5 #include "media/video/capture/android/video_capture_device_android.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 << name.name() | 48 << name.name() |
| 49 << ", unique_id=" | 49 << ", unique_id=" |
| 50 << name.id() | 50 << name.id() |
| 51 << ", orientation " | 51 << ", orientation " |
| 52 << Java_ChromiumCameraInfo_getOrientation(env, ci.obj()); | 52 << Java_ChromiumCameraInfo_getOrientation(env, ci.obj()); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 // static | 56 // static |
| 57 void VideoCaptureDevice::GetDeviceSupportedFormats(const Name& device, | 57 void VideoCaptureDevice::GetDeviceSupportedFormats(const Name& device, |
| 58 VideoCaptureCapabilities* formats) { | 58 VideoCaptureFormats* formats) { |
| 59 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 const std::string VideoCaptureDevice::Name::GetModel() const { | 62 const std::string VideoCaptureDevice::Name::GetModel() const { |
| 63 // Android cameras are not typically USB devices, and this method is currently | 63 // Android cameras are not typically USB devices, and this method is currently |
| 64 // only used for USB model identifiers, so this implementation just indicates | 64 // only used for USB model identifiers, so this implementation just indicates |
| 65 // an unknown device model. | 65 // an unknown device model. |
| 66 return ""; | 66 return ""; |
| 67 } | 67 } |
| 68 | 68 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void VideoCaptureDeviceAndroid::SetErrorState(const std::string& reason) { | 258 void VideoCaptureDeviceAndroid::SetErrorState(const std::string& reason) { |
| 259 LOG(ERROR) << "VideoCaptureDeviceAndroid::SetErrorState: " << reason; | 259 LOG(ERROR) << "VideoCaptureDeviceAndroid::SetErrorState: " << reason; |
| 260 { | 260 { |
| 261 base::AutoLock lock(lock_); | 261 base::AutoLock lock(lock_); |
| 262 state_ = kError; | 262 state_ = kError; |
| 263 } | 263 } |
| 264 client_->OnError(); | 264 client_->OnError(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 } // namespace media | 267 } // namespace media |
| OLD | NEW |