RAII wrapper for BPP format conversion operations. More...
#include <bpp_format_manager.h>
Public Member Functions | |
BppConversionScope (BppFormat from_format, BppFormat to_format, int width, int height) | |
~BppConversionScope () | |
std::vector< uint8_t > | Convert (const std::vector< uint8_t > &data) |
Private Attributes | |
BppFormat | from_format_ |
BppFormat | to_format_ |
int | width_ |
int | height_ |
std::string | operation_name_ |
ScopedTimer | timer_ |
RAII wrapper for BPP format conversion operations.
Definition at line 224 of file bpp_format_manager.h.
yaze::gfx::BppConversionScope::BppConversionScope | ( | BppFormat | from_format, |
BppFormat | to_format, | ||
int | width, | ||
int | height | ||
) |
Definition at line 431 of file bpp_format_manager.cc.
References operation_name_.
yaze::gfx::BppConversionScope::~BppConversionScope | ( | ) |
Definition at line 441 of file bpp_format_manager.cc.
std::vector< uint8_t > yaze::gfx::BppConversionScope::Convert | ( | const std::vector< uint8_t > & | data | ) |
Definition at line 445 of file bpp_format_manager.cc.
References yaze::gfx::BppFormatManager::ConvertFormat(), from_format_, yaze::gfx::BppFormatManager::Get(), height_, to_format_, and width_.
|
private |
Definition at line 232 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 233 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 234 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 235 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 236 of file bpp_format_manager.h.
Referenced by BppConversionScope().
|
private |
Definition at line 237 of file bpp_format_manager.h.