JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce_android_CameraDevice.h File Reference

Classes

class  AndroidRunnable
 
struct  AndroidRunnable::Owner
 
struct  CameraDevice::Pimpl
 
struct  CameraDevice::Pimpl::CaptureSessionMode< Mode >
 
struct  CameraDevice::Pimpl::CaptureSessionModeBase
 
struct  CameraDevice::Pimpl::CaptureSessionPreviewMode
 
struct  CameraDevice::Pimpl::CaptureSessionVideoRecordingMode
 
class  CameraDevice::Pimpl::DeviceOrientationChangeListener
 
class  CameraDevice::Pimpl::ImageReader
 
struct  CameraDevice::Pimpl::ImageReader::ImageBuffer
 
class  CameraDevice::Pimpl::MediaRecorder
 
class  CameraDevice::Pimpl::PreviewDisplay
 
struct  CameraDevice::Pimpl::PreviewDisplay::Listener
 
class  CameraDevice::Pimpl::ScopedCameraDevice
 
class  CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession
 
struct  CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::ConfiguredCallback
 
class  CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::StillPictureTaker
 
class  CameraDevice::Pimpl::StreamConfigurationMap
 
struct  CameraDevice::ViewerComponent
 
class  ImageReaderOnImageAvailableListener
 
struct  ImageReaderOnImageAvailableListener::Owner
 
class  MediaRecorderOnErrorListener
 
struct  MediaRecorderOnErrorListener::Owner
 
class  MediaRecorderOnInfoListener
 
struct  MediaRecorderOnInfoListener::Owner
 
class  TextureViewSurfaceTextureListener
 
struct  TextureViewSurfaceTextureListener::Owner
 

Macros

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)   STATICMETHOD (valueOf, "valueOf", "(Ljava/lang/String;)Landroid/graphics/Bitmap$CompressFormat;")
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)   METHOD (getBuffer, "getBuffer", "()Ljava/nio/ByteBuffer;")
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)   METHOD (constructor, "<init>", "(Landroid/graphics/SurfaceTexture;)V")
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)   METHOD (setDefaultBufferSize, "setDefaultBufferSize", "(II)V")
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)   METHOD (getName, "getName", "()Ljava/lang/String;")
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK)
 
#define PRINT_ELEMENTS(elem_type, array_type, fun_name_middle)
 

Variables

static const uint8 CameraSupportByteCode []
 

Macro Definition Documentation

◆ JNI_CLASS_MEMBERS [1/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)    STATICMETHOD (valueOf, "valueOf", "(Ljava/lang/String;)Landroid/graphics/Bitmap$CompressFormat;")

◆ JNI_CLASS_MEMBERS [2/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (close, "close", "()V") \
METHOD (createCaptureRequest, "createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;") \
METHOD (createCaptureSession, "createCaptureSession", "(Ljava/util/List;Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/os/Handler;)V")

◆ JNI_CLASS_MEMBERS [3/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (close, "close", "()V") \
METHOD (getPlanes, "getPlanes", "()[Landroid/media/Image$Plane;")

◆ JNI_CLASS_MEMBERS [4/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)    METHOD (getBuffer, "getBuffer", "()Ljava/nio/ByteBuffer;")

◆ JNI_CLASS_MEMBERS [5/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (acquireLatestImage, "acquireLatestImage", "()Landroid/media/Image;") \
METHOD (close, "close", "()V") \
METHOD (getSurface, "getSurface", "()Landroid/view/Surface;") \
METHOD (setOnImageAvailableListener, "setOnImageAvailableListener", "(Landroid/media/ImageReader$OnImageAvailableListener;Landroid/os/Handler;)V") \
STATICMETHOD (newInstance, "newInstance", "(IIII)Landroid/media/ImageReader;")

◆ JNI_CLASS_MEMBERS [6/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "()V") \
METHOD (getSurface, "getSurface", "()Landroid/view/Surface;") \
METHOD (prepare, "prepare", "()V") \
METHOD (release, "release", "()V") \
METHOD (setAudioEncoder, "setAudioEncoder", "(I)V") \
METHOD (setAudioSource, "setAudioSource", "(I)V") \
METHOD (setOnErrorListener, "setOnErrorListener", "(Landroid/media/MediaRecorder$OnErrorListener;)V") \
METHOD (setOnInfoListener, "setOnInfoListener", "(Landroid/media/MediaRecorder$OnInfoListener;)V") \
METHOD (setOrientationHint, "setOrientationHint", "(I)V") \
METHOD (setOutputFile, "setOutputFile", "(Ljava/lang/String;)V") \
METHOD (setOutputFormat, "setOutputFormat", "(I)V") \
METHOD (setVideoEncoder, "setVideoEncoder", "(I)V") \
METHOD (setVideoEncodingBitRate, "setVideoEncodingBitRate", "(I)V") \
METHOD (setVideoFrameRate, "setVideoFrameRate", "(I)V") \
METHOD (setVideoSize, "setVideoSize", "(II)V") \
METHOD (setVideoSource, "setVideoSource", "(I)V") \
METHOD (start, "start", "()V") \
METHOD (stop, "stop", "()V")

◆ JNI_CLASS_MEMBERS [7/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "(Landroid/content/Context;)V") \
METHOD (getSurfaceTexture, "getSurfaceTexture", "()Landroid/graphics/SurfaceTexture;") \
METHOD (isAvailable, "isAvailable", "()Z") \
METHOD (setSurfaceTextureListener, "setSurfaceTextureListener", "(Landroid/view/TextureView$SurfaceTextureListener;)V") \
METHOD (setTransform, "setTransform", "(Landroid/graphics/Matrix;)V")

◆ JNI_CLASS_MEMBERS [8/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)    METHOD (constructor, "<init>", "(Landroid/graphics/SurfaceTexture;)V")

◆ JNI_CLASS_MEMBERS [9/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)    METHOD (setDefaultBufferSize, "setDefaultBufferSize", "(II)V")

◆ JNI_CLASS_MEMBERS [10/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (getOutputSizesForClass, "getOutputSizes", "(Ljava/lang/Class;)[Landroid/util/Size;") \
METHOD (getOutputSizesForFormat, "getOutputSizes", "(I)[Landroid/util/Size;") \
METHOD (isOutputSupportedFor, "isOutputSupportedFor", "(I)Z") \
METHOD (isOutputSupportedForSurface, "isOutputSupportedFor", "(Landroid/view/Surface;)Z")

◆ JNI_CLASS_MEMBERS [11/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "()V") \
METHOD (toByteArray, "toByteArray", "()[B") \
METHOD (size, "size", "()I")

◆ JNI_CLASS_MEMBERS [12/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (abortCaptures, "abortCaptures", "()V") \
METHOD (capture, "capture", "(Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)I") \
METHOD (close, "close", "()V") \
METHOD (setRepeatingRequest, "setRepeatingRequest", "(Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)I") \
METHOD (stopRepeating, "stopRepeating", "()V")

◆ JNI_CLASS_MEMBERS [13/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (get, "get", "(Landroid/hardware/camera2/CameraCharacteristics$Key;)Ljava/lang/Object;") \
METHOD (getKeys, "getKeys", "()Ljava/util/List;") \
STATICFIELD (CONTROL_AF_AVAILABLE_MODES, "CONTROL_AF_AVAILABLE_MODES", "Landroid/hardware/camera2/CameraCharacteristics$Key;") \
STATICFIELD (LENS_FACING, "LENS_FACING", "Landroid/hardware/camera2/CameraCharacteristics$Key;") \
STATICFIELD (SCALER_STREAM_CONFIGURATION_MAP, "SCALER_STREAM_CONFIGURATION_MAP", "Landroid/hardware/camera2/CameraCharacteristics$Key;") \
STATICFIELD (SENSOR_ORIENTATION, "SENSOR_ORIENTATION", "Landroid/hardware/camera2/CameraCharacteristics$Key;")

◆ JNI_CLASS_MEMBERS [14/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)    METHOD (getName, "getName", "()Ljava/lang/String;")

◆ JNI_CLASS_MEMBERS [15/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (getCameraCharacteristics, "getCameraCharacteristics", "(Ljava/lang/String;)Landroid/hardware/camera2/CameraCharacteristics;") \
METHOD (getCameraIdList, "getCameraIdList", "()[Ljava/lang/String;") \
METHOD (openCamera, "openCamera", "(Ljava/lang/String;Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/os/Handler;)V")

◆ JNI_CLASS_MEMBERS [16/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
STATICFIELD (CONTROL_AE_PRECAPTURE_TRIGGER, "CONTROL_AE_PRECAPTURE_TRIGGER", "Landroid/hardware/camera2/CaptureRequest$Key;") \
STATICFIELD (CONTROL_AF_MODE, "CONTROL_AF_MODE", "Landroid/hardware/camera2/CaptureRequest$Key;") \
STATICFIELD (CONTROL_AF_TRIGGER, "CONTROL_AF_TRIGGER", "Landroid/hardware/camera2/CaptureRequest$Key;") \
STATICFIELD (CONTROL_MODE, "CONTROL_MODE", "Landroid/hardware/camera2/CaptureRequest$Key;")

◆ JNI_CLASS_MEMBERS [17/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (addTarget, "addTarget", "(Landroid/view/Surface;)V") \
METHOD (build, "build", "()Landroid/hardware/camera2/CaptureRequest;") \
METHOD (set, "set", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V")

◆ JNI_CLASS_MEMBERS [18/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (get, "get", "(Landroid/hardware/camera2/CaptureResult$Key;)Ljava/lang/Object;") \
STATICFIELD (CONTROL_AE_STATE, "CONTROL_AE_STATE", "Landroid/hardware/camera2/CaptureResult$Key;") \
STATICFIELD (CONTROL_AF_STATE, "CONTROL_AF_STATE", "Landroid/hardware/camera2/CaptureResult$Key;")

◆ JNI_CLASS_MEMBERS [19/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "(JZ)V") \
CALLBACK (cameraCaptureSessionCaptureCompletedCallback, "cameraCaptureSessionCaptureCompleted", "(JZLandroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V") \
CALLBACK (cameraCaptureSessionCaptureFailedCallback, "cameraCaptureSessionCaptureFailed", "(JZLandroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureFailure;)V") \
CALLBACK (cameraCaptureSessionCaptureProgressedCallback, "cameraCaptureSessionCaptureProgressed", "(JZLandroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureResult;)V") \
CALLBACK (cameraCaptureSessionCaptureStartedCallback, "cameraCaptureSessionCaptureStarted", "(JZLandroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;JJ)V") \
CALLBACK (cameraCaptureSessionCaptureSequenceAbortedCallback, "cameraCaptureSessionCaptureSequenceAborted", "(JZLandroid/hardware/camera2/CameraCaptureSession;I)V") \
CALLBACK (cameraCaptureSessionCaptureSequenceCompletedCallback, "cameraCaptureSessionCaptureSequenceCompleted", "(JZLandroid/hardware/camera2/CameraCaptureSession;IJ)V")

◆ JNI_CLASS_MEMBERS [20/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "(J)V") \
CALLBACK(cameraCaptureSessionActiveCallback, "cameraCaptureSessionActive", "(JLandroid/hardware/camera2/CameraCaptureSession;)V") \
CALLBACK(cameraCaptureSessionClosedCallback, "cameraCaptureSessionClosed", "(JLandroid/hardware/camera2/CameraCaptureSession;)V") \
CALLBACK(cameraCaptureSessionConfigureFailedCallback, "cameraCaptureSessionConfigureFailed", "(JLandroid/hardware/camera2/CameraCaptureSession;)V") \
CALLBACK(cameraCaptureSessionConfiguredCallback, "cameraCaptureSessionConfigured", "(JLandroid/hardware/camera2/CameraCaptureSession;)V") \
CALLBACK(cameraCaptureSessionReadyCallback, "cameraCaptureSessionReady", "(JLandroid/hardware/camera2/CameraCaptureSession;)V")

◆ JNI_CLASS_MEMBERS [21/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (constructor, "<init>", "(J)V") \
CALLBACK (cameraDeviceStateClosedCallback, "cameraDeviceStateClosed", "(JLandroid/hardware/camera2/CameraDevice;)V") \
CALLBACK (cameraDeviceStateDisconnectedCallback, "cameraDeviceStateDisconnected", "(JLandroid/hardware/camera2/CameraDevice;)V") \
CALLBACK (cameraDeviceStateErrorCallback, "cameraDeviceStateError", "(JLandroid/hardware/camera2/CameraDevice;I)V") \
CALLBACK (cameraDeviceStateOpenedCallback, "cameraDeviceStateOpened", "(JLandroid/hardware/camera2/CameraDevice;)V")

◆ JNI_CLASS_MEMBERS [22/22]

#define JNI_CLASS_MEMBERS (   METHOD,
  STATICMETHOD,
  FIELD,
  STATICFIELD,
  CALLBACK 
)
Value:
METHOD (canDetectOrientation, "canDetectOrientation", "()Z") \
METHOD (constructor, "<init>", "(JLandroid/content/Context;I)V") \
METHOD (disable, "disable", "()V") \
METHOD (enable, "enable", "()V") \
CALLBACK (deviceOrientationChanged, "deviceOrientationChanged", "(JI)V")

◆ PRINT_ELEMENTS

#define PRINT_ELEMENTS (   elem_type,
  array_type,
  fun_name_middle 
)
Value:
{ \
elem_type* elements = env->Get##fun_name_middle##ArrayElements ((array_type) keyValue.get(), 0); \
int size = env->GetArrayLength ((array_type) keyValue.get()); \
\
for (int i = 0; i < size - 1; ++i) \
result << String (elements[i]) << " "; \
\
if (size > 0) \
result << String (elements[size - 1]); \
\
env->Release##fun_name_middle##ArrayElements ((array_type) keyValue.get(), elements, 0); \
}

Referenced by CameraDevice::Pimpl::printPrimitiveArrayElements().

Variable Documentation

◆ CameraSupportByteCode

const uint8 CameraSupportByteCode[]
static