diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-28 12:53:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 12:53:17 -0400 |
commit | b60b70e86d7c32b06a7580ddc286279a83587e11 (patch) | |
tree | ea6092ba2bda4b2f685926ba133faedd5c65fa57 /externals/bc_decoder/bc_decoder.h | |
parent | 0fe44071f8fc8c49fcd885e39f2e914846450733 (diff) | |
parent | ddcc95833660c57647d3e99dad76ecfa3b86ee8d (diff) |
Merge pull request #10837 from liamwhite/mali-support
android: Mali support
Diffstat (limited to 'externals/bc_decoder/bc_decoder.h')
-rw-r--r-- | externals/bc_decoder/bc_decoder.h | 43 |
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 0000000000..4f0ead7d38 --- /dev/null +++ b/externals/bc_decoder/bc_decoder.h @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#pragma once + +#include <cstdint> + +namespace bcn { + /** + * @brief Decodes a BC1 encoded image to R8G8B8A8 + */ + void DecodeBc1(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height); + + /** + * @brief Decodes a BC2 encoded image to R8G8B8A8 + */ + void DecodeBc2(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height); + + /** + * @brief Decodes a BC3 encoded image to R8G8B8A8 + */ + void DecodeBc3(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height); + + /** + * @brief Decodes a BC4 encoded image to R8 + */ + void DecodeBc4(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned); + + /** + * @brief Decodes a BC5 encoded image to R8G8 + */ + void DecodeBc5(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned); + + /** + * @brief Decodes a BC6 encoded image to R16G16B16A16 + */ + void DecodeBc6(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned); + + /** + * @brief Decodes a BC7 encoded image to R8G8B8A8 + */ + void DecodeBc7(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height); +} |