VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
VSTGUI::PixelBuffer Namespace Reference

Namespaces

 Private
 

Enumerations

enum  Format { ARGB, RGBA, ABGR, BGRA }
 

Functions

void convert (Format srcFormat, Format dstFormat, uint8_t *buffer, uint32_t bytesPerRow, uint32_t width, uint32_t height)
 Convert a buffer of 32 bit pixels from one format to another. More...
 

Enumeration Type Documentation

◆ Format

enum Format
strong
Enumerator
ARGB 
RGBA 
ABGR 
BGRA 

Function Documentation

◆ convert()

void convert ( Format  srcFormat,
Format  dstFormat,
uint8_t *  buffer,
uint32_t  bytesPerRow,
uint32_t  width,
uint32_t  height 
)

Convert a buffer of 32 bit pixels from one format to another.

Parameters
srcFormatSource Pixel Format
dstFormatDestination Pixel Format
bufferPixel Buffer
bytesPerRowNumber of bytes per row in buffer
widthNumber of pixels per row
heightNumber of rows