xref: /aosp_15_r20/external/skia/src/core/SkConvertPixels.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
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 
8 #ifndef SkConvertPixels_DEFINED
9 #define SkConvertPixels_DEFINED
10 
11 #include <cstddef>
12 
13 struct SkImageInfo;
14 
15 [[nodiscard]] bool SkConvertPixels(
16         const SkImageInfo& dstInfo,       void* dstPixels, size_t dstRowBytes,
17         const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
18 
19 #endif
20