37 #ifndef _ARGUS_STREAM_H
38 #define _ARGUS_STREAM_H
55 DEFINE_UUID(StreamMode, STREAM_MODE_MAILBOX, 33661d40,3ee2,11e6,bdf4,08,00,20,0c,9a,66);
56 DEFINE_UUID(StreamMode, STREAM_MODE_FIFO, 33661d41,3ee2,11e6,bdf4,08,00,20,0c,9a,66);
93 DEFINE_UUID(InterfaceID, IID_STREAM, 8f50dade,cc26,4ec6,9d2e,d9,d0,19,2a,ef,06);
143 DEFINE_UUID(InterfaceID, IID_OUTPUT_STREAM_SETTINGS, 52f2b830,3d52,11e6,bdf4,08,00,20,0c,9a,66);
217 virtual StreamMode
getMode()
const = 0;
243 #endif // _ARGUS_STREAM_H
virtual EGLDisplay getEGLDisplay() const =0
Returns the EGLDisplay the stream's EGLStream belongs to.
static const InterfaceID & id()
The base interface for a class that provides libargus Interfaces.
virtual bool supportsOutputStreamFormat(const SensorMode *sensorMode, const PixelFormat &outputFormat) const =0
Returns True if the output pixel format is supported by the CaptureSession for the queried sensor mod...
virtual Status setCameraDevice(CameraDevice *device)=0
Set the camera device to use as the source for this stream.
virtual CameraDevice * getCameraDevice() const =0
Output streams are created and owned by CaptureSessions, and they maintain a connection with an EGLSt...
Status
Status values returned by API function calls.
The top-level interface class.
virtual void disconnect()=0
Disconnects the stream from the underlying EGLStream.
virtual Status waitUntilConnected(uint64_t timeout=TIMEOUT_INFINITE) const =0
Waits until both the producer and consumer endpoints of the stream are connected. ...
virtual Status setFifoLength(uint32_t fifoLength)=0
Sets the FIFO queue length of the stream.
virtual PixelFormat getPixelFormat() const =0
virtual EGLStreamKHR getEGLStream() const =0
Returns the EGLStream backing the stream.
virtual Size2D< uint32_t > getResolution() const =0
Returns the image resolution of the stream, in pixels.
virtual PixelFormat getPixelFormat() const =0
Returns the format of the stream.
DEFINE_UUID(ExtensionName, EXT_BAYER_SHARPNESS_MAP, 7d5e0470, 4ea6, 11e6, bdf4, 08, 00, 20, 0c, 9a, 66)
The Ext::BayerSharpnessMap extension adds internally-generated sharpness metrics to CaptureMetadata r...
An object representing the sensor mode of a CameraDevice.
static const InterfaceID & id()
virtual Status setResolution(const Size2D< uint32_t > &resolution)=0
Set the resolution of the stream.
Interface that exposes the properties common to all Stream objects.
Contains an object representing a single camera device.
const uint64_t TIMEOUT_INFINITE
Constant used for infinite timeouts.
DEFINE_NAMED_UUID_CLASS(StreamMode)
A unique identifier for an libargus Interface.
virtual Status setEGLDisplay(EGLDisplay eglDisplay)=0
Set the EGLDisplay the created stream must belong to.
Settings for OutputStream creation are exposed by the OutputStreamSettings class. ...
A top level object class for libargus objects that are created and owned by the client.
virtual Status setMode(const StreamMode &mode)=0
Sets the mode of the OutputStream.
virtual uint32_t getFifoLength() const =0
virtual Status setPixelFormat(const PixelFormat &format)=0
Set the format of the stream.
virtual StreamMode getMode() const =0
virtual Size2D< uint32_t > getResolution() const =0
virtual EGLDisplay getEGLDisplay() const =0
Interface that exposes the settings used for OutputStream creation.