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
|
|
|
|
|
|
|
|
#include "SkTypes.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
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
|