Home
last modified time | relevance | path

Searched refs:Camera (Results 1 – 25 of 93) sorted by relevance

1234

/external/eigen/demos/opengl/
Dcamera.cpp18 Camera::Camera() in Camera() function in Camera
34 Camera& Camera::operator=(const Camera& other) in operator =()
55 Camera::Camera(const Camera& other) in Camera() function in Camera
60 Camera::~Camera() in ~Camera()
65 void Camera::setViewport(uint offsetx, uint offsety, uint width, uint height) in setViewport()
75 void Camera::setViewport(uint width, uint height) in setViewport()
83 void Camera::setFovY(float value) in setFovY()
89 Vector3f Camera::direction(void) const in direction()
93 Vector3f Camera::up(void) const in up()
97 Vector3f Camera::right(void) const in right()
[all …]
Dcamera.h36 class Camera
41 Camera(void);
43 Camera(const Camera& other);
45 virtual ~Camera();
47 Camera& operator=(const Camera& other);
Dtrackball.h15 class Camera; variable
27 void setCamera(Camera* pCam) { mpCamera = pCam; } in setCamera()
35 Camera* mpCamera;
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java6 import android.hardware.Camera;
20 @Implements(Camera.class)
29 private Camera.Parameters parameters;
30 private Camera.PreviewCallback previewCallback;
34 private Camera.AutoFocusCallback autoFocusCallback;
37 private static Map<Integer, Camera.CameraInfo> cameras = new HashMap<>();
39 @RealObject private Camera realCamera;
49 protected static Camera open() { in open()
51 Camera camera = newInstanceOf(Camera.class); in open()
58 protected static Camera open(int cameraId) { in open()
[all …]
DShadowMediaRecorder.java3 import android.hardware.Camera;
29 private Camera camera;
83 protected void setCamera(Camera c) { in setCamera()
180 public Camera getCamera() { in getCamera()
/external/dynamic_depth/internal/dynamic_depth/
Dcamera.cc50 std::unique_ptr<Camera> ParseFields(const Deserializer& deserializer) { in ParseFields()
52 deserializer.ParseString(DynamicDepthConst::Camera(), kTrait, &trait_str); in ParseFields()
65 Pose::FromDeserializer(deserializer, DynamicDepthConst::Camera()); in ParseFields()
77 VendorInfo::FromDeserializer(deserializer, DynamicDepthConst::Camera()); in ParseFields()
80 AppInfo::FromDeserializer(deserializer, DynamicDepthConst::Camera()); in ParseFields()
91 return Camera::FromData(std::move(params)); in ParseFields()
97 Camera::Camera(std::unique_ptr<CameraParams> params) { in Camera() function in dynamic_depth::Camera
102 void Camera::GetNamespaces( in GetNamespaces()
108 ns_name_href_map->emplace(DynamicDepthConst::Camera(), kNamespaceHref); in GetNamespaces()
135 std::unique_ptr<Camera> Camera::FromDataForCamera0( in FromDataForCamera0()
[all …]
Dcameras.cc30 std::vector<std::unique_ptr<Camera>>* camera_list) { in FromCameraArray()
48 std::unique_ptr<Camera> camera = Camera::FromDeserializer(*deserializer); in FromDeserializer()
64 const std::vector<const Camera*> Cameras::GetCameras() const { in GetCameras()
65 std::vector<const Camera*> camera_list; in GetCameras()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraTest.java10 import android.hardware.Camera;
23 private Camera camera;
28 camera = Camera.open(); in setUp()
45 camera = Camera.open(12); in testOpenWithId()
67 Camera.Parameters parameters = camera.getParameters(); in testGetParameters()
75 Camera.Parameters parameters = camera.getParameters(); in testSetParameters()
199 camera = Camera.open(1); in testSetDisplayOrientationUpdatesCameraInfos()
202 Camera.CameraInfo cameraQuery = new Camera.CameraInfo(); in testSetDisplayOrientationUpdatesCameraInfos()
203 Camera.getCameraInfo(ShadowCamera.getLastOpenedCameraId(), cameraQuery); in testSetDisplayOrientationUpdatesCameraInfos()
249 assertThat(Camera.getNumberOfCameras()).isEqualTo(0); in testCameraInfoNoCameras()
[all …]
DShadowCameraParametersTest.java6 import android.hardware.Camera;
19 private Camera.Parameters parameters;
23 parameters = Shadow.newInstanceOf(Camera.Parameters.class); in setUp()
31 Camera.Size pictureSize = parameters.getPictureSize(); in testPictureSize()
62 Camera.Size size = parameters.getPreviewSize(); in testPreviewSize()
94 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); in testGetSupportedPictureSizes()
103 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes(); in testGetSupportedPreviewSizes()
121 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes(); in testAddSupportedPreviewSizes()
DShadowCameraSizeTest.java5 import android.hardware.Camera;
15 private Camera.Size cameraSize;
19 cameraSize = Shadow.newInstanceOf(Camera.class).new Size(480, 320); in setUp()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DCameraEnumerationAndroid.java117 String[] names = new String[android.hardware.Camera.getNumberOfCameras()]; in getDeviceNames()
118 for (int i = 0; i < android.hardware.Camera.getNumberOfCameras(); ++i) { in getDeviceNames()
126 return android.hardware.Camera.getNumberOfCameras(); in getDeviceCount()
132 android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo(); in getDeviceName()
134 android.hardware.Camera.getCameraInfo(index, info); in getDeviceName()
141 (info.facing == android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT) ? "front" : "back"; in getDeviceName()
149 return getNameOfDevice(android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in getNameOfFrontFacingDevice()
155 return getNameOfDevice(android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in getNameOfBackFacingDevice()
184 public static int[] getFramerateRange(android.hardware.Camera.Parameters parameters, in getFramerateRange()
195 return range[android.hardware.Camera.Parameters.PREVIEW_FPS_MIN_INDEX] in getFramerateRange()
[all …]
DVideoCapturerAndroid.java66 android.hardware.Camera.PreviewCallback,
72 private android.hardware.Camera camera; // Only non-null while capturing.
79 private android.hardware.Camera.CameraInfo info;
110 private final android.hardware.Camera.ErrorCallback cameraErrorCallback =
111 new android.hardware.Camera.ErrorCallback() {
113 public void onError(int error, android.hardware.Camera camera) {
115 if (error == android.hardware.Camera.CAMERA_ERROR_SERVER_DIED) {
239 if (android.hardware.Camera.getNumberOfCameras() < 2) { in switchCamera()
271 info.facing == android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in switchCamera()
353 if (deviceName == null || android.hardware.Camera.getNumberOfCameras() == 0) { in lookupDeviceName()
[all …]
DCameraEnumerator.java62 final android.hardware.Camera.Parameters parameters; in enumerateFormats()
63 android.hardware.Camera camera = null; in enumerateFormats()
66 camera = android.hardware.Camera.open(cameraId); in enumerateFormats()
86 minFps = range[android.hardware.Camera.Parameters.PREVIEW_FPS_MIN_INDEX]; in enumerateFormats()
87 maxFps = range[android.hardware.Camera.Parameters.PREVIEW_FPS_MAX_INDEX]; in enumerateFormats()
89 for (android.hardware.Camera.Size size : parameters.getSupportedPreviewSizes()) { in enumerateFormats()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/
DCameraConfigurationManager.java22 import android.hardware.Camera;
51 void initFromCameraParameters(Camera camera) { in initFromCameraParameters()
52 Camera.Parameters parameters = camera.getParameters(); in initFromCameraParameters()
71 void setDesiredCameraParameters(Camera camera) { in setDesiredCameraParameters()
72 Camera.Parameters parameters = camera.getParameters(); in setDesiredCameraParameters()
83 Camera.Parameters.FOCUS_MODE_AUTO, in setDesiredCameraParameters()
84 Camera.Parameters.FOCUS_MODE_MACRO); in setDesiredCameraParameters()
101 void setTorch(Camera camera, boolean newSetting) { in setTorch()
102 Camera.Parameters parameters = camera.getParameters(); in setTorch()
114 private static void initializeTorch(Camera.Parameters parameters, SharedPreferences prefs) { in initializeTorch()
[all …]
DCameraManager.java25 import android.hardware.Camera;
51 private Camera camera;
81 Camera theCamera = camera; in openDriver()
83 theCamera = Camera.open(); in openDriver()
124 Camera theCamera = camera; in startPreview()
152 Camera theCamera = camera; in requestPreviewFrame()
DAutoFocusCallback.java19 import android.hardware.Camera;
24 final class AutoFocusCallback implements Camera.AutoFocusCallback {
38 public void onAutoFocus(boolean success, Camera camera) { in onAutoFocus()
DPreviewCallback.java20 import android.hardware.Camera;
25 final class PreviewCallback implements Camera.PreviewCallback {
42 public void onPreviewFrame(byte[] data, Camera camera) { in onPreviewFrame()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DLegacyCameraConnectionFragment.java21 import android.hardware.Camera;
22 import android.hardware.Camera.CameraInfo;
40 private Camera camera;
42 private Camera.PreviewCallback imageListener;
51 final Camera.PreviewCallback imageListener, final int layout, final Size desiredSize) { in LegacyCameraConnectionFragment()
80 camera = Camera.open(index);
83 Camera.Parameters parameters = camera.getParameters();
86 && focusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE)) {
87 parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);
89 List<Camera.Size> cameraSizes = parameters.getSupportedPreviewSizes();
[all …]
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DLegacyCameraConnectionFragment.java21 import android.hardware.Camera;
22 import android.hardware.Camera.CameraInfo;
40 private Camera camera;
42 private Camera.PreviewCallback imageListener;
51 final Camera.PreviewCallback imageListener, final int layout, final Size desiredSize) { in LegacyCameraConnectionFragment()
80 camera = Camera.open(index);
83 Camera.Parameters parameters = camera.getParameters();
86 && focusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE)) {
87 parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);
89 List<Camera.Size> cameraSizes = parameters.getSupportedPreviewSizes();
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCameraFacade.java21 import android.hardware.Camera;
22 import android.hardware.Camera.AutoFocusCallback;
23 import android.hardware.Camera.Parameters;
24 import android.hardware.Camera.PictureCallback;
63 public Camera openCamera(int cameraId) throws Exception { in openCamera()
65 Camera result; in openCamera()
67 result = Camera.open(); in openCamera()
69 Method openCamera = Camera.class.getMethod("open", int.class); in openCamera()
70 result = (Camera) openCamera.invoke(null, cameraId); in openCamera()
78 Camera camera = openCamera(0); in CameraFacade()
[all …]
/external/dynamic_depth/includes/dynamic_depth/
Dcamera.h71 class Camera : public Element {
82 static std::unique_ptr<Camera> FromData(std::unique_ptr<CameraParams> params);
91 static std::unique_ptr<Camera> FromDataForCamera0(
97 static std::unique_ptr<Camera> FromDeserializer(
114 Camera(const Camera&) = delete;
115 void operator=(const Camera&) = delete;
118 explicit Camera(std::unique_ptr<CameraParams> params);
Dcameras.h30 std::vector<std::unique_ptr<Camera>>* camera_list);
38 const std::vector<const Camera*> GetCameras() const;
47 std::vector<std::unique_ptr<Camera>> camera_list_;
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/webcam/
DWebCamFacade.java23 import android.hardware.Camera;
24 import android.hardware.Camera.Parameters;
25 import android.hardware.Camera.PreviewCallback;
26 import android.hardware.Camera.Size;
107 private Camera mCamera;
115 public void onPreviewFrame(final byte[] data, final Camera camera) {
131 public void onPreviewFrame(final byte[] data, final Camera camera) {
279 mCamera = Camera.open(); in openCamera()
/external/autotest/client/site_tests/desktopui_CameraApp/
Dcontrol7 PURPOSE = "Verifies if the ToT Camera App works."
9 This test will fail if the webcam stream in the Camera App is not acquired,
18 This integration test verifies if the ToT version of the Camera App works fine.
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DVideoCapturerAndroidTestFixtures.java30 import android.hardware.Camera;
238 return (Camera.getNumberOfCameras() >= 2); in HaveTwoCameras()
420 Camera camera = Camera.open(capturer.getCurrentCameraId()); in startWhileCameraIsAlreadyOpen()
443 Camera camera = Camera.open(capturer.getCurrentCameraId()); in startWhileCameraIsAlreadyOpenAndCloseCamera()
468 Camera camera = Camera.open(capturer.getCurrentCameraId()); in startWhileCameraIsAlreadyOpenAndStop()

1234