2016-03-23 17:51:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkSwizzle_DEFINED
|
|
|
|
#define SkSwizzle_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkTypes.h"
|
2016-03-23 17:51:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Swizzles byte order of |count| 32-bit pixels, swapping R and B.
|
|
|
|
(RGBA <-> BGRA)
|
|
|
|
*/
|
2016-03-24 14:50:14 +00:00
|
|
|
SK_API void SkSwapRB(uint32_t* dest, const uint32_t* src, int count);
|
2016-03-23 17:51:20 +00:00
|
|
|
|
|
|
|
#endif
|