ImageFormat Class Reference

ImageFormat Class Reference#

1 min read time

Applies to Linux

rocCV: roccv::ImageFormat Class Reference
roccv::ImageFormat Class Reference

Acts as a container for data corresponding to how image data is laid out in memory. More...

#include <image_format.hpp>

Public Member Functions

int32_t channels () const noexcept
 
eDataType dtype () const noexcept
 
 ImageFormat ()
 
constexpr ImageFormat (eDataType dtype, int32_t numChannels, eSwizzle swizzle=eSwizzle::XYZW)
 
eSwizzle swizzle () const noexcept
 

Detailed Description

Acts as a container for data corresponding to how image data is laid out in memory.

Constructor & Destructor Documentation

◆ ImageFormat() [1/2]

roccv::ImageFormat::ImageFormat ( )
inlineexplicit

◆ ImageFormat() [2/2]

constexpr roccv::ImageFormat::ImageFormat ( eDataType  dtype,
int32_t  numChannels,
eSwizzle  swizzle = eSwizzle::XYZW 
)
inlineexplicitconstexpr

Member Function Documentation

◆ channels()

int32_t roccv::ImageFormat::channels ( ) const
noexcept

◆ dtype()

eDataType roccv::ImageFormat::dtype ( ) const
noexcept

◆ swizzle()

eSwizzle roccv::ImageFormat::swizzle ( ) const
noexcept

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/image_format.hpp