Debian Codegraph @

src/codec/SkCodecColorProfileRust.h

raw
1 /*
2 * Copyright 2025 Google LLC
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 SkCodecColorProfileRust_DEFINED
9 #define SkCodecColorProfileRust_DEFINED
10
11 #include "include/core/SkData.h"
12 #include "src/codec/SkCodecPriv.h"
13
14 namespace SkCodecs {
15
16 // Parses an ICC profile using the Rust implementation (moxcms).
17 // This function is only available when SK_CODEC_COLOR_PROFILE_PARSE_WITH_RUST is defined.
18 // For testing purposes only - production code should use MakeICCProfile() which
19 // delegates to the appropriate implementation.
20 std::unique_ptr<ColorProfile> MakeICCProfileWithRust(sk_sp<const SkData> data);
21
22 } // namespace SkCodecs
23
24 #endif // SkCodecColorProfileRust_DEFINED