Home | History | Annotate | Download | only in camera

Lines Matching refs:camera

18  * Contains code that is used to capture video frames from a camera device
19 * on Linux. This code uses V4L2 API to work with camera devices, and requires
26 #include "android/camera/camera-capture.h"
27 #include "android/camera/camera-format-converters.h"
31 #define D(...) VERBOSE_PRINT(camera,__VA_ARGS__)
32 #define D_ACTIVE VERBOSE_CHECK(camera)
38 #define T(...) VERBOSE_PRINT(camera,__VA_ARGS__)
46 * Instances of this descriptor are created during camera device enumeration, and
47 * an instance of this structure describing pixel format chosen for the camera
48 * emulation is saved by the camera factory service to represent an emulating
49 * camera properties.
80 * Describes a connection to an actual camera device.
86 /* Camera device name. (default is /dev/video0) */
92 * Set by the framework after initializing camera connection.
95 /* Handle to the opened camera device. */
112 * conversion between the camera supported formats, and formats that are
113 * supported by camera framework in the guest system. Currently, guest supports
125 /* Native format for the emulated camera: no conversion at all. */
168 * This routine is used to choose a pixel format for a camera device. The idea
169 * is that when the camera service enumerates all pixel formats for all cameras
171 * appropriate for camera emulation. To do that, the camera service will run
176 * formats - Array containing list of pixel formats, supported by the camera
285 /* Resets camera device after capturing.
287 * reset camera device by reopening its handle. Otherwise attempts to set up new
489 /* Opens camera device.
491 * cd - Camera device descriptor to open the camera for.
512 E("%s: Cannot open camera device '%s': %s",
518 E("%s: Camera '%s' is not a V4L2 device",
524 E("%s: Unable to query capabilities for camera device '%s'",
532 /* Make sure that camera supports minimal requirements. */
534 E("%s: Camera '%s' is not a video capture device",
546 * cd - Opened camera device descriptor.
580 * camera framework), we need to calculate how many array entries
662 * cd - Opened camera device descriptor.
744 /* Collects information about an opened camera device.
746 * supported by the device, and list of frame dimensions supported by the camera
749 * cd - Opened camera device descriptor.
750 * cis - Upon success contains information collected from the camera device.
765 /* Lets see if camera supports preferred formats */
773 /* Camera doesn't support any of the chosen formats. Then it doesn't
840 E("%s: Invalid camera device descriptor", __FUNCTION__);
845 E("%s: Camera device is not opened", __FUNCTION__);
858 E("%s: Camera '%s' does not support pixel format '%s' with dimensions %dx%d",
916 E("%s: VIDIOC_STREAMON on camera '%s' has failed: %s",
933 E("%s: Invalid camera device descriptor", __FUNCTION__);
938 E("%s: Camera device is not opened", __FUNCTION__);
951 E("%s: VIDIOC_STREAMOFF on camera '%s' has failed: %s",
982 E("%s: Invalid camera device descriptor", __FUNCTION__);
987 E("%s: Camera device is not opened", __FUNCTION__);
1006 E("%s: Unable to read from the camera device '%s': %s",
1035 E("%s: VIDIOC_DQBUF on camera '%s' has failed: %s",
1052 W("%s: VIDIOC_QBUF on camera '%s' has failed: %s",
1070 E("%s: Invalid camera device descriptor", __FUNCTION__);