yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::BppConversionScope Class Reference

RAII wrapper for BPP format conversion operations. More...

#include <bpp_format_manager.h>

Collaboration diagram for yaze::gfx::BppConversionScope:

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_
 

Detailed Description

RAII wrapper for BPP format conversion operations.

Definition at line 224 of file bpp_format_manager.h.

Constructor & Destructor Documentation

◆ BppConversionScope()

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_.

◆ ~BppConversionScope()

yaze::gfx::BppConversionScope::~BppConversionScope ( )

Definition at line 441 of file bpp_format_manager.cc.

Member Function Documentation

◆ Convert()

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_.

Here is the call graph for this function:

Member Data Documentation

◆ from_format_

BppFormat yaze::gfx::BppConversionScope::from_format_
private

Definition at line 232 of file bpp_format_manager.h.

Referenced by Convert().

◆ to_format_

BppFormat yaze::gfx::BppConversionScope::to_format_
private

Definition at line 233 of file bpp_format_manager.h.

Referenced by Convert().

◆ width_

int yaze::gfx::BppConversionScope::width_
private

Definition at line 234 of file bpp_format_manager.h.

Referenced by Convert().

◆ height_

int yaze::gfx::BppConversionScope::height_
private

Definition at line 235 of file bpp_format_manager.h.

Referenced by Convert().

◆ operation_name_

std::string yaze::gfx::BppConversionScope::operation_name_
private

Definition at line 236 of file bpp_format_manager.h.

Referenced by BppConversionScope().

◆ timer_

ScopedTimer yaze::gfx::BppConversionScope::timer_
private

Definition at line 237 of file bpp_format_manager.h.


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