libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
Class for debayering on the CPU. More...
Public Member Functions | |
DebayerCpu (std::unique_ptr< SwStatsCpu > stats) | |
Constructs a DebayerCpu object. More... | |
int | configure (const StreamConfiguration &inputCfg, const std::vector< std::reference_wrapper< StreamConfiguration >> &outputCfgs) |
Configure the debayer object according to the passed in parameters. More... | |
Size | patternSize (PixelFormat inputFormat) |
Get the width and height at which the bayer pattern repeats. More... | |
std::vector< PixelFormat > | formats (PixelFormat input) |
Get the supported output formats. More... | |
std::tuple< unsigned int, unsigned int > | strideAndFrameSize (const PixelFormat &outputFormat, const Size &size) |
Get the stride and the frame size. More... | |
void | process (uint32_t frame, FrameBuffer *input, FrameBuffer *output, DebayerParams params) |
Process the bayer data into the requested format. More... | |
SizeRange | sizes (PixelFormat inputFormat, const Size &inputSize) |
Get the supported output sizes for the given input format and size. More... | |
const SharedFD & | getStatsFD () |
Get the file descriptor for the statistics. More... | |
unsigned int | frameSize () |
Get the output frame size. More... | |
Public Member Functions inherited from libcamera::Object | |
Object (Object *parent=nullptr) | |
Construct an Object instance. More... | |
virtual | ~Object () |
Destroy an Object instance. More... | |
void | deleteLater () |
Schedule deletion of the instance in the thread it belongs to. More... | |
void | postMessage (std::unique_ptr< Message > msg) |
Post a message to the object's thread. More... | |
template<typename T , typename R , typename... FuncArgs, typename... Args, std::enable_if_t< std::is_base_of< Object, T >::value > * = nullptr> | |
R | invokeMethod (R(T::*func)(FuncArgs...), ConnectionType type, Args &&... args) |
Invoke a method asynchronously on an Object instance. More... | |
Thread * | thread () const |
Retrieve the thread the object is bound to. More... | |
void | moveToThread (Thread *thread) |
Move the object and all its children to a different thread. More... | |
Object * | parent () const |
Retrieve the object's parent. More... | |
Additional Inherited Members | |
Public Attributes inherited from libcamera::Debayer | |
Signal< FrameBuffer * > | inputBufferReady |
Signals when the input buffer is ready. | |
Signal< FrameBuffer * > | outputBufferReady |
Signals when the output buffer is ready. | |
Protected Member Functions inherited from libcamera::Object | |
virtual void | message (Message *msg) |
Message handler for the object. More... | |
bool | assertThreadBound (const char *message) |
Check if the caller complies with thread-bound constraints. More... | |
Class for debayering on the CPU.
Implementation for CPU based debayering
libcamera::DebayerCpu::DebayerCpu | ( | std::unique_ptr< SwStatsCpu > | stats | ) |
Constructs a DebayerCpu object.
[in] | stats | Pointer to the stats object to use |
|
virtual |
Configure the debayer object according to the passed in parameters.
[in] | inputCfg | The input configuration |
[in] | outputCfgs | The output configurations |
Implements libcamera::Debayer.
|
virtual |
Get the supported output formats.
[in] | inputFormat | The input format |
Implements libcamera::Debayer.
|
inline |
Get the output frame size.
|
inline |
Get the file descriptor for the statistics.
|
virtual |
Get the width and height at which the bayer pattern repeats.
[in] | inputFormat | The input format |
Valid sizes are: 2x2, 4x2 or 4x4.
Implements libcamera::Debayer.
|
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 |
Implements libcamera::Debayer.
|
virtual |
Get the supported output sizes for the given input format and size.
[in] | inputFormat | The input format |
[in] | inputSize | The input size |
Implements libcamera::Debayer.
|
virtual |
Get the stride and the frame size.
[in] | outputFormat | The output format |
[in] | size | The output size |
Implements libcamera::Debayer.