Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkSwizzle.cpp File Reference
#include "include/core/SkSwizzle.h"
#include "src/core/SkSwizzlePriv.h"

Go to the source code of this file.

Functions

void SkSwapRB (uint32_t *dest, const uint32_t *src, int count)
 

Function Documentation

◆ SkSwapRB()

void SkSwapRB ( uint32_t *  dest,
const uint32_t *  src,
int  count 
)

Swizzles byte order of |count| 32-bit pixels, swapping R and B. (RGBA <-> BGRA)

Definition at line 12 of file SkSwizzle.cpp.

12 {
13 SkOpts::RGBA_to_BGRA(dest, src, count);
14}
int count
Swizzle_8888_u32 RGBA_to_BGRA