summaryrefslogtreecommitdiff
path: root/externals/bc_decoder/bc_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/bc_decoder/bc_decoder.h')
-rw-r--r--externals/bc_decoder/bc_decoder.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/externals/bc_decoder/bc_decoder.h b/externals/bc_decoder/bc_decoder.h
new file mode 100644
index 000000000..4f0ead7d3
--- /dev/null
+++ b/externals/bc_decoder/bc_decoder.h
@@ -0,0 +1,43 @@
1// SPDX-License-Identifier: MPL-2.0
2// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/)
3
4#pragma once
5
6#include <cstdint>
7
8namespace bcn {
9 /**
10 * @brief Decodes a BC1 encoded image to R8G8B8A8
11 */
12 void DecodeBc1(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height);
13
14 /**
15 * @brief Decodes a BC2 encoded image to R8G8B8A8
16 */
17 void DecodeBc2(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height);
18
19 /**
20 * @brief Decodes a BC3 encoded image to R8G8B8A8
21 */
22 void DecodeBc3(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height);
23
24 /**
25 * @brief Decodes a BC4 encoded image to R8
26 */
27 void DecodeBc4(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned);
28
29 /**
30 * @brief Decodes a BC5 encoded image to R8G8
31 */
32 void DecodeBc5(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned);
33
34 /**
35 * @brief Decodes a BC6 encoded image to R16G16B16A16
36 */
37 void DecodeBc6(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned);
38
39 /**
40 * @brief Decodes a BC7 encoded image to R8G8B8A8
41 */
42 void DecodeBc7(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height);
43}