SkSwizzle.h 389 B

12345678910111213141516171819
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkSwizzle_DEFINED
  8. #define SkSwizzle_DEFINED
  9. #include "SkTypes.h"
  10. /**
  11. Swizzles byte order of |count| 32-bit pixels, swapping R and B.
  12. (RGBA <-> BGRA)
  13. */
  14. SK_API void SkSwapRB(uint32_t* dest, const uint32_t* src, int count);
  15. #endif