blob: f962da6a365bfcf66b94074a1bf40249522b8d97 [file] [log] [blame]
bsalomon@google.comd58a1cd2011-11-10 20:57:43 +00001/*
2 * Copyright 2011 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
Matt Sarett485c4992017-02-14 14:18:27 -05008#ifndef SkConvertPixels_DEFINED
9#define SkConvertPixels_DEFINED
bsalomon@google.comd58a1cd2011-11-10 20:57:43 +000010
Kevin Lubick406dacd2023-03-23 10:15:46 -040011#include <cstddef>
12
13struct SkImageInfo;
reed95d343f2015-05-23 13:21:06 -070014
John Stiles2d0d8c82023-07-17 09:37:50 -040015[[nodiscard]] bool SkConvertPixels(
Brian Salomonc24c8ef2021-02-01 13:32:30 -050016 const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
17 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
bsalomon@google.comfb0d7412012-02-22 21:25:34 +000018
commit-bot@chromium.org4cd9e212014-03-07 03:25:16 +000019#endif