PixelFormatsInterface Class Reference Graphics

#include <gfx_image_pixelformat.h>

详细描述

PixelFormatsInterface is a static interface which provides general functions for pixel format management.

公共成员函数

template<typename PIXELTYPE >
Result < PixelFormat >  FindOrCreatePixelFormat (const Block < const ImageChannelType > &imageChannelTypes)
template<typename PIXELTYPE , typename... CHANNELS>
Result < PixelFormat >  FindOrCreatePixelFormat ()

静态公共成员函数

static MAXON_METHOD Result < PixelFormat >  FindOrCreatePixelFormat (const Block < const ImageChannel > &channels)
template<typename PIXELTYPE , typename... CHANNELS>
static MAXON_FUNCTION Result < PixelFormat >  FindOrCreatePixelFormat ()
template<typename PIXELTYPE >
static MAXON_FUNCTION Result < PixelFormat >  FindOrCreatePixelFormat (const Block < const ImageChannelType > &imageChannelTypes)
static MAXON_FUNCTION Result < PixelFormat >  FindOrCreatePixelFormat (const DataType &pixelType, const Block < const ImageChannelType > &imageChannelTypes)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( PixelFormatsInterface , MAXON_REFERENCE_NONE , "net.maxon.image.interface.pixelformats")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( PixelFormatsInterface   ,
MAXON_REFERENCE_NONE   ,
"net.maxon.image.interface.pixelformats"   
)
private

◆  FindOrCreatePixelFormat() [1/3]

static MAXON_METHOD Result <PixelFormat> FindOrCreatePixelFormat ( const Block < const ImageChannel > &  channels )
static

Create of find a pixel format.

参数
[in] channels Block with image channels to look for or to create.
返回
Pixel format on success.

◆  FindOrCreatePixelFormat() [2/3]

static MAXON_FUNCTION Result <PixelFormat> FindOrCreatePixelFormat ( )
static

Create of find a pixel format. This function simplifies the usage without the need to create the block of channels on the stack:

PixelFormat formatGBR32f = PixelFormatsInterface::FindOrCreatePixelFormat<ImageChannels::Green, ImageChannels::Blue, ImageChannels::Red>() iferr_return ;
返回
Pixel format on success.

◆  FindOrCreatePixelFormat() [3/3]

static MAXON_FUNCTION Result <PixelFormat> FindOrCreatePixelFormat ( const Block < const ImageChannelType > &  imageChannelTypes )
static

Create of find a pixel format. This function simplifies the usage without the need to create the array of channels on the stack:

参数
[in] imageChannelTypes Image Channel types. PixelFormat formatGBR32f = PixelFormatsInterface::FindOrCreatePixelFormat<ImageChannels::Green, ImageChannels::Blue, ImageChannels::Red>() iferr_return ;
返回
Pixel format on success.
iferr_return
#define iferr_return
定义: resultbase.h:1434