Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary sources. More...
#include <peak/image_view/peak_image_view.hpp>
Public Member Functions | |
| ImageView (const std::shared_ptr< Buffer > &buffer) | |
| Construct an ImageView from a Buffer. | |
| ImageView (const std::shared_ptr< Buffer > &buffer, MetadataExtractionMode mode) | |
| Construct an ImageView from a Buffer and controls how metadata is extracted via the specified update mode. | |
| ImageView (const std::shared_ptr< BufferPart > &part) | |
| Construct an ImageView from a BufferPart. | |
| ImageView (const std::shared_ptr< BufferPart > &part, MetadataExtractionMode mode) | |
| Construct an ImageView from a BufferPart and controls how metadata is extracted via the specified update mode. | |
| PEAK_COMMON_NO_DISCARD const uint8_t * | GetData () const override |
| Returns a pointer to the start of the first line that contains valid image data (read-only). | |
| PEAK_COMMON_NO_DISCARD uint8_t * | GetData () override |
| Returns a pointer to the start of the first line that contains valid image data (read-write). | |
| PEAK_COMMON_NO_DISCARD std::size_t | GetLineStartOffset () const override |
| Returns the byte offset to the first pixel of a line. | |
| PEAK_COMMON_NO_DISCARD std::size_t | GetSizeInBytes () const override |
| Returns the number of bytes in a single image row. | |
| PEAK_COMMON_NO_DISCARD peak::common::PixelFormat | GetPixelFormat () const override |
| PixelFormat of the contained image. | |
| PEAK_COMMON_NO_DISCARD peak::common::PixelFormatInfo | GetPixelFormatInfo () const override |
| Information object for the PixelFormat of the contained image. | |
| PEAK_COMMON_NO_DISCARD peak::common::Size | GetSize () const override |
| Get the dimensions of the image. I.e. Width, Height, etc. | |
| PEAK_COMMON_NO_DISCARD uint32_t | GetWidth () const override |
| Width of the image in pixels. | |
| PEAK_COMMON_NO_DISCARD uint32_t | GetHeight () const override |
| Height of the image in pixels. | |
| PEAK_COMMON_NO_DISCARD size_t | GetBitsPerPixel () const override |
| The amount of bits in one pixel. | |
| PEAK_COMMON_NO_DISCARD size_t | GetBytesPerLine () const override |
| The amount of bytes per line. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< peak::common::Metadata > | GetMetadata () override |
| The metadata object belonging to the image. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< const peak::common::Metadata > | GetMetadata () const override |
| The metadata object belonging to the image. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< peak::core::Buffer > | GetParentBuffer () const |
| The parent buffer object, the image view was created from. | |
| Public Member Functions inherited from peak::common::IImageView | |
| virtual | ~IImageView ()=default |
Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary sources.
This interface defines a standard way to access image properties and raw pixel data, enabling interoperability with different image processing libraries or backends.
|
inlineexplicit |
|
inline |
Construct an ImageView from a Buffer and controls how metadata is extracted via the specified update mode.
| buffer | Shared pointer to the source Buffer containing image data. |
| mode | The metadata extraction mode controlling how much metadata is parsed. See MetadataExtractionMode for details. |
|
inlineexplicit |
Construct an ImageView from a BufferPart.
Metadata is extracted using MetadataExtractionMode::Minimal.
| part | Shared pointer to the source BufferPart containing image data. |
|
inline |
Construct an ImageView from a BufferPart and controls how metadata is extracted via the specified update mode.
| part | Shared pointer to the source BufferPart containing image data. |
| mode | The metadata extraction mode controlling how much metadata is parsed. See MetadataExtractionMode for details. |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns a pointer to the start of the first line that contains valid image data (read-only).
Implements peak::common::IImageView.
|
inlineoverridevirtual |
Returns a pointer to the start of the first line that contains valid image data (read-write).
Implements peak::common::IImageView.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the byte offset to the first pixel of a line.
Implements peak::common::IImageView.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
The parent buffer object, the image view was created from.
If the image was created from a buffer part, the parent buffer is the same as returned by BufferPart::ParentBuffer.
| InternalErrorException | An internal error has occurred. |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Information object for the PixelFormat of the contained image.
Implements peak::common::IImageView.
|
inlineoverridevirtual |
Get the dimensions of the image. I.e. Width, Height, etc.
Implements peak::common::IImageView.
|
inlineoverridevirtual |
Returns the number of bytes in a single image row.
Implements peak::common::IImageView.
|
inlineoverridevirtual |