Home
last modified time | relevance | path

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

12345678

/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);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCamera.java8 import android.hardware.Camera;
18 @Implements(Camera.class)
24 private Camera.Parameters parameters;
25 private Camera.PreviewCallback previewCallback;
28 … private static Map<Integer, Camera.CameraInfo> cameras = new HashMap<Integer,Camera.CameraInfo>();
31 private Camera realCamera;
40 public static Camera open() { in open()
41 return Robolectric.newInstanceOf(Camera.class); in open()
55 public Camera.Parameters getParameters() { in getParameters()
57 parameters = Robolectric.newInstanceOf(Camera.Parameters.class); in getParameters()
[all …]
DShadowCameraParameters.java4 import android.hardware.Camera;
15 @Implements(Camera.Parameters.class)
28 public Camera.Size getPictureSize() { in getPictureSize()
29 Camera.Size pictureSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPictureSize()
52 public Camera.Size getPreviewSize() { in getPreviewSize()
53 Camera.Size previewSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPreviewSize()
60 public List<Camera.Size> getSupportedPictureSizes() { in getSupportedPictureSizes()
61 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPictureSizes()
102 public List<Camera.Size> getSupportedPreviewSizes() { in getSupportedPreviewSizes()
103 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPreviewSizes()
[all …]
DShadowCameraSize.java3 import android.hardware.Camera;
10 @Implements(Camera.Size.class)
12 @RealObject private Camera.Size realCameraSize;
14 public void __constructor__(Camera camera, int width, int height) { in __constructor__()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCameraTest.java7 import android.hardware.Camera;
28 private Camera camera;
33 camera = Camera.open(); in setUp()
64 Camera.Parameters parameters = camera.getParameters(); in testGetParameters()
72 Camera.Parameters parameters = camera.getParameters(); in testSetParameters()
177 assertThat(Camera.getNumberOfCameras(), equalTo(0)); in testCameraInfoNoCameras()
182 Camera.CameraInfo cameraQuery = new Camera.CameraInfo(); in testCameraInfoBackOnly()
185 Camera.getCameraInfo(0, cameraQuery); in testCameraInfoBackOnly()
187 assertThat(Camera.getNumberOfCameras(), equalTo(1)); in testCameraInfoBackOnly()
188 assertThat(cameraQuery.facing, equalTo(Camera.CameraInfo.CAMERA_FACING_BACK)); in testCameraInfoBackOnly()
[all …]
DCameraParametersTest.java5 import android.hardware.Camera;
23 private Camera.Parameters parameters;
28 parameters = Robolectric.newInstanceOf(Camera.Parameters.class); in setUp()
37 Camera.Size pictureSize = parameters.getPictureSize(); in testPictureSize()
68 Camera.Size size = parameters.getPreviewSize(); in testPreviewSize()
100 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); in testGetSupportedPictureSizes()
109 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes(); in testGetSupportedPreviewSizes()
/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 …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DTerrainLodControl.java39 import com.jme3.renderer.Camera;
71 private List<Camera> cameras;
79 public TerrainLodControl(Terrain terrain, Camera camera) { in TerrainLodControl()
80 List<Camera> cams = new ArrayList<Camera>(); in TerrainLodControl()
92 public TerrainLodControl(Terrain terrain, List<Camera> cameras) { in TerrainLodControl()
124 for (Camera c : cameras) // populate them in controlUpdate()
135 List<Camera> cameraClone = new ArrayList<Camera>(); in cloneForSpatial()
137 for (Camera c : cameras) { in cloneForSpatial()
148 public void setCamera(Camera camera) { in setCamera()
149 List<Camera> cams = new ArrayList<Camera>(); in setCamera()
[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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/cameras/
DCameraHelper.java4 import com.jme3.renderer.Camera;
44 public Camera toCamera(Structure structure) throws BlenderFileException { in toCamera()
62 public Camera toCamera250(Structure structure) throws BlenderFileException { in toCamera250()
63 Camera result = new Camera(DEFAULT_CAM_WIDTH, DEFAULT_CAM_HEIGHT); in toCamera250()
93 public Camera toCamera249(Structure structure) throws BlenderFileException { in toCamera249()
94 Camera result = new Camera(DEFAULT_CAM_WIDTH, DEFAULT_CAM_HEIGHT); in toCamera249()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/utils/
DDirectionalAnalyzer.java19 import com.badlogic.gdx.graphics.Camera;
31 public Camera analyze (DirectionalLight light, Camera out, Camera mainCamera); in analyze()
DLightFilter.java19 import com.badlogic.gdx.graphics.Camera;
30 public boolean filter (BaseLight light, Camera camera, Camera mainCamera); in filter()
DAllLightFilter.java19 import com.badlogic.gdx.graphics.Camera;
27 public boolean filter (BaseLight light, Camera camera, Camera mainCamera) { in filter()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
DCameraControl.java38 import com.jme3.renderer.Camera;
66 private Camera camera;
78 public CameraControl(Camera camera) { in CameraControl()
85 public CameraControl(Camera camera, ControlDirection controlDir) { in CameraControl()
90 public Camera getCamera() { in getCamera()
94 public void setCamera(Camera camera) { in setCamera()
DBillboardControl.java43 import com.jme3.renderer.Camera;
69 Camera, enumConstant
103 Camera cam = vp.getCamera(); in controlRender()
125 private void rotateBillboard(Camera cam) { in rotateBillboard()
136 case Camera: in rotateBillboard()
148 private void rotateCameraAligned(Camera camera) { in rotateCameraAligned()
189 private void rotateScreenAligned(Camera camera) { in rotateScreenAligned()
211 private void rotateAxial(Camera camera, Vector3f axis) { in rotateAxial()
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/
DReflectionProcessor.java9 import com.jme3.renderer.Camera;
23 private Camera reflectionCam;
33 …public ReflectionProcessor(Camera reflectionCam, FrameBuffer reflectionBuffer, Plane reflectionCli… in ReflectionProcessor()
98 public Camera getReflectionCam() { in getReflectionCam()
106 public void setReflectionCam(Camera reflectionCam) { in setReflectionCam()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DCameraNode.java34 import com.jme3.renderer.Camera;
54 public CameraNode(String name, Camera camera) { in CameraNode()
76 public void setCamera(Camera camera) { in setCamera()
84 public Camera getCamera() { in getCamera()
/external/jmonkeyengine/engine/src/test/jme3test/renderer/
DTestMultiViews.java39 import com.jme3.renderer.Camera;
69 Camera cam2 = cam.clone(); in simpleInitApp()
79 Camera cam3 = cam.clone(); in simpleInitApp()
89 Camera cam4 = cam.clone(); in simpleInitApp()
102 Camera guiCam2 = guiViewPort.getCamera().clone(); in simpleInitApp()
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DFastOctnode.java36 import com.jme3.renderer.Camera;
71 …vate void generateRenderSetNoCheck(Geometry[] globalGeomList, Set<Geometry> renderSet, Camera cam){ in generateRenderSetNoCheck()
100 …public void generateRenderSet(Geometry[] globalGeomList, Set<Geometry> renderSet, Camera cam, Boun… in generateRenderSet()
112 Camera.FrustumIntersect result = cam.contains(tempBox); in generateRenderSet()
113 if (result != Camera.FrustumIntersect.Outside){ in generateRenderSet()
133 if (result == Camera.FrustumIntersect.Inside){ in generateRenderSet()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/
DCameraGroupStrategy.java22 import com.badlogic.gdx.graphics.Camera;
94 Camera camera;
98 public CameraGroupStrategy (final Camera camera) { in CameraGroupStrategy()
109 public CameraGroupStrategy (Camera camera, Comparator<Decal> sorter) { in CameraGroupStrategy()
116 public void setCamera (Camera camera) { in setCamera()
120 public Camera getCamera () { in getCamera()
/external/jmonkeyengine/engine/src/core/com/jme3/effect/
DParticleComparator.java35 import com.jme3.renderer.Camera;
41 private Camera cam;
43 public void setCamera(Camera cam){ in setCamera()

12345678