libcamera
v0.4.0+65-9834402f
Supporting cameras in Linux since 2019
|
Base debayering class. More...
Public Member Functions | |
virtual int | configure (const StreamConfiguration &inputCfg, const std::vector< std::reference_wrapper< StreamConfiguration >> &outputCfgs)=0 |
Configure the debayer object according to the passed in parameters. More... | |
virtual std::vector< PixelFormat > | formats (PixelFormat inputFormat)=0 |
Get the supported output formats. More... | |
virtual std::tuple< unsigned int, unsigned int > | strideAndFrameSize (const PixelFormat &outputFormat, const Size &size)=0 |
Get the stride and the frame size. More... | |
virtual void | process (uint32_t frame, FrameBuffer *input, FrameBuffer *output, DebayerParams params)=0 |
Process the bayer data into the requested format. More... | |
virtual SizeRange | sizes (PixelFormat inputFormat, const Size &inputSize)=0 |
Get the supported output sizes for the given input format and size. More... | |
Public Attributes | |
Signal< FrameBuffer * > | inputBufferReady |
Signals when the input buffer is ready. | |
Signal< FrameBuffer * > | outputBufferReady |
Signals when the output buffer is ready. | |
Base debayering class.
Base class that provides functions for setting up the debayering process.
|
pure virtual |
Configure the debayer object according to the passed in parameters.
[in] | inputCfg | The input configuration |
[in] | outputCfgs | The output configurations |
Implemented in libcamera::DebayerCpu.
|
pure virtual |
Get the supported output formats.
[in] | inputFormat | The input format |
Implemented in libcamera::DebayerCpu.
|
pure virtual |
Process the bayer data into the requested format.
[in] | frame | The frame number |
[in] | input | The input buffer |
[in] | output | The output buffer |
[in] | params | The parameters to be used in debayering |
Implemented in libcamera::DebayerCpu.
|
pure virtual |
Get the supported output sizes for the given input format and size.
[in] | inputFormat | The input format |
[in] | inputSize | The input size |
Implemented in libcamera::DebayerCpu.
|
pure virtual |
Get the stride and the frame size.
[in] | outputFormat | The output format |
[in] | size | The output size |
Implemented in libcamera::DebayerCpu.