![]() |
IDS peak ICV v1.0.0
|
#include <peak_icv/pipeline/detail/peak_icv_pixel_format_conversion_module.hpp>
Public Member Functions | |
| PixelFormatConversionModule () | |
| Creates an instance of class PixelFormatConversionModule with default output pixelformat. | |
| ~PixelFormatConversionModule () override | |
| PixelFormatConversionModule (const PixelFormatConversionModule &other)=delete | |
| Copy constructor for class PixelFormatConversionModule is deleted. | |
| PixelFormatConversionModule (PixelFormatConversionModule &&other) noexcept | |
| PixelFormatConversionModule & | operator= (const PixelFormatConversionModule &other)=delete |
| Copy assignment for class PixelFormatConversionModule is deleted. | |
| PixelFormatConversionModule & | operator= (PixelFormatConversionModule &&other) noexcept |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| Restores the object's state from the provided archive. | |
| void | SetEnabled (bool enabled) override |
| Sets the enabled state of this module. | |
| bool | IsEnabled () const override |
| Checks if the module is currently enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| void | ResetToDefault () override |
| Resets the output pixel format to its default value. | |
| void | SetOutputPixelFormat (peak::common::PixelFormat format) |
| Sets the desired output pixel format. | |
| peak::common::PixelFormat | GetOutputPixelFormat () const |
| Gets the currently set output pixel format. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Converts the input image to the configured output pixel format. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Converts the input image to the configured output pixel format. | |
| void | ReleaseBuffers () const |
| Frees unused internal buffers. | |
Pixel format conversion module that transforms images to a specified output pixel format.
The pixel format conversion module allows explicit control over the output pixel format.
Definition at line 38 of file peak_icv_pixel_format_conversion_module.hpp.
|
inline |
Creates an instance of class PixelFormatConversionModule with default output pixelformat.
Definition at line 221 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverride |
Definition at line 228 of file peak_icv_pixel_format_conversion_module.hpp.
|
delete |
Copy constructor for class PixelFormatConversionModule is deleted.
|
inlinenoexcept |
Definition at line 236 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
| CorruptedException | If the 'Version' entry in archive is missing, malformed, or indicates an unsupported version. |
Implements ISerializable.
Definition at line 263 of file peak_icv_pixel_format_conversion_module.hpp.
|
inline |
Gets the currently set output pixel format.
Definition at line 277 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 297 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 292 of file peak_icv_pixel_format_conversion_module.hpp.
|
delete |
Copy assignment for class PixelFormatConversionModule is deleted.
|
inlinenoexcept |
Definition at line 243 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Converts the input image to the configured output pixel format.
| input | The input image to convert. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
Definition at line 307 of file peak_icv_pixel_format_conversion_module.hpp.
|
inline |
Converts the input image to the configured output pixel format.
| input | The input image to convert. |
Definition at line 302 of file peak_icv_pixel_format_conversion_module.hpp.
|
inline |
Frees unused internal buffers.
This module uses pre-allocated internal buffers to accelerate pixel format conversions. When the image size or pixel format changes, new buffers are allocated, which may cause the internal buffer pool to grow over time. This function can be used to release unused buffers and reduce memory usage.
Definition at line 334 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Resets the output pixel format to its default value.
Implements IModule.
Definition at line 282 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.
Definition at line 255 of file peak_icv_pixel_format_conversion_module.hpp.
|
inlineoverridevirtual |
Sets the enabled state of this module.
| enabled | If true, the module is enabled; otherwise, it is disabled. |
Implements IModule.
Definition at line 287 of file peak_icv_pixel_format_conversion_module.hpp.
|
inline |
Sets the desired output pixel format.
| format | The output pixel format to use. |
Definition at line 272 of file peak_icv_pixel_format_conversion_module.hpp.