19 #ifndef ANBOX_SDK_CAMERA_PROCESSOR_H_
20 #define ANBOX_SDK_CAMERA_PROCESSOR_H_
CameraProcessor allows a plugin to respond to the camera actions triggered from Anobx and post video ...
virtual int close_device()
Close the camera device for not receiving video frames from the platform further.
virtual int get_device_specs(AnboxCameraSpec **specs, size_t *specs_len)
Get camera device specifications of the platform.
virtual int inject_frame(AnboxVideoFrame frame)
Inject a video frame into AnboxPlatform.
CameraProcessor()=default
CameraProcessor & operator=(const CameraProcessor &)=delete
virtual ~CameraProcessor()=default
virtual int open_device(AnboxCameraSpec spec, AnboxCameraOrientation orientation)
Open the camera device and being ready for posting video frames to Android container.
CameraProcessor(const CameraProcessor &)=delete
virtual int read_frame(AnboxVideoFrame *frame, int timeout)
Read next available video frame.
AnboxCameraSpec represents the camera specification.
AnboxVideoFrame represents a single complete video frame.
AnboxCameraOrientation
describes the orientations that Anbox supports in the camea processor