Compute Library
 19.08
MultiImageInfo Class Reference

Store the multi-planar image's metadata. More...

#include <MultiImageInfo.h>

Public Member Functions

 MultiImageInfo ()
 Constructor. More...
 
void init (unsigned int width, unsigned int height, Format format)
 Initialize the metadata structure with the given parameters. More...
 
Format format () const
 Colour format of the image. More...
 
unsigned int width () const
 Width in pixels. More...
 
unsigned int height () const
 Height in pixels. More...
 

Detailed Description

Store the multi-planar image's metadata.

Definition at line 32 of file MultiImageInfo.h.

Constructor & Destructor Documentation

◆ MultiImageInfo()

Constructor.

Definition at line 28 of file MultiImageInfo.cpp.

29  : _width(0), _height(0), _format(Format::UNKNOWN)
30 {
31 }

References arm_compute::UNKNOWN.

Member Function Documentation

◆ format()

◆ height()

unsigned int height ( ) const

Height in pixels.

Returns
The height in pixels

Definition at line 50 of file MultiImageInfo.cpp.

51 {
52  return _height;
53 }

Referenced by MultiImageInfo::init().

◆ init()

void init ( unsigned int  width,
unsigned int  height,
Format  format 
)

Initialize the metadata structure with the given parameters.

Parameters
[in]widthWidth of the image (in number of pixels)
[in]heightHeight of the image (in number of pixels)
[in]formatColour format of the image.

Definition at line 33 of file MultiImageInfo.cpp.

34 {
35  _format = format;
36  _width = width;
37  _height = height;
38 }
unsigned int width() const
Width in pixels.
unsigned int height() const
Height in pixels.
Format format() const
Colour format of the image.

References MultiImageInfo::format(), MultiImageInfo::height(), and MultiImageInfo::width().

Referenced by MultiImage::create_subimage().

◆ width()

unsigned int width ( ) const

Width in pixels.

Returns
The width in pixels

Definition at line 45 of file MultiImageInfo.cpp.

46 {
47  return _width;
48 }

Referenced by MultiImageInfo::init().


The documentation for this class was generated from the following files: