36 #ifndef _ARGUS_STREAM_H
37 #define _ARGUS_STREAM_H
43 DEFINE_UUID(StreamMode, STREAM_MODE_MAILBOX, 33661d40,3ee2,11e6,bdf4,08,00,20,0c,9a,66);
44 DEFINE_UUID(StreamMode, STREAM_MODE_FIFO, 33661d41,3ee2,11e6,bdf4,08,00,20,0c,9a,66);
82 DEFINE_UUID(InterfaceID, IID_STREAM, 8f50dade,cc26,4ec6,9d2e,d9,d0,19,2a,ef,06);
133 DEFINE_UUID(InterfaceID, IID_OUTPUT_STREAM_SETTINGS, 52f2b830,3d52,11e6,bdf4,08,00,20,0c,9a,66);
207 virtual StreamMode
getMode()
const = 0;
245 #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
DEFINE_UUID(ExtensionName, EXT_BAYER_AVERAGE_MAP, 12c3de20, 64c5, 11e6, bdf4, 08, 00, 20, 0c, 9a, 66)
virtual Status setCameraDevice(CameraDevice *device)=0
Set the camera device to use as the source for this stream.
virtual CameraDevice * getCameraDevice() const =0
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.
virtual Status setMetadataEnable(bool metadataEnable)=0
Enable or disable embedding libargus CaptureMetadata within frames written to the EGLStream...
static const InterfaceID & id()
virtual Status setResolution(const Size2D< uint32_t > &resolution)=0
Set the resolution of the stream.
Interface that exposes common Stream properties.
virtual bool getMetadataEnable() const =0
const uint64_t TIMEOUT_INFINITE
Constant used for infinite timeouts.
DEFINE_NAMED_UUID_CLASS(StreamMode)
A unique identifier for a libargus Interface.
virtual Status setEGLDisplay(EGLDisplay eglDisplay)=0
Set the EGLDisplay the created stream must belong to.
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.