WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
Res< Image > Struct Reference

#include <webcface/common/internal/message/image.h>

Inheritance diagram for Res< Image >:
[legend]
Collaboration diagram for Res< Image >:
[legend]

Public Member Functions

 Res ()=default
 
 Res (unsigned int req_id, const SharedString &sub_field, const ImageFrame &img)
 
bool empty () const
 
unsigned char * rawPtr () const
 
std::size_t rawSize () const
 

Public Attributes

unsigned int req_id = 0
 
SharedString sub_field
 
int width_ = 0
 
int height_ = 0
 
std::shared_ptr< std::vector< unsigned char > > data_
 
ImageColorMode color_mode_ = ImageColorMode::gray
 
ImageCompressMode cmp_mode_ = ImageCompressMode::raw
 

Static Public Attributes

static constexpr int kind
 

Constructor & Destructor Documentation

◆ Res() [1/2]

Res ( )
default

◆ Res() [2/2]

Res ( unsigned int  req_id,
const SharedString sub_field,
const ImageFrame img 
)
inline

Member Function Documentation

◆ empty()

bool empty ( ) const
inlineinherited

◆ rawPtr()

unsigned char * rawPtr ( ) const
inlineinherited

◆ rawSize()

std::size_t rawSize ( ) const
inlineinherited

Member Data Documentation

◆ cmp_mode_

◆ color_mode_

ImageColorMode color_mode_ = ImageColorMode::gray
inherited

◆ data_

std::shared_ptr<std::vector<unsigned char> > data_
inherited

◆ height_

int height_ = 0
inherited

◆ kind

constexpr int kind
staticconstexprinherited

◆ req_id

unsigned int req_id = 0

◆ sub_field

SharedString sub_field

◆ width_

int width_ = 0
inherited

The documentation for this struct was generated from the following file: