Public V0.0.1
This commit is contained in:
16
include/ctrff/helper.hpp
Normal file
16
include/ctrff/helper.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <ctrff/pd_p_api.hpp>
|
||||
#include <pd.hpp>
|
||||
|
||||
namespace ctrff {
|
||||
CTRFF_API void String2U16(PD::u16 *res, const std::string &src, size_t max);
|
||||
CTRFF_API std::string U16toU8(PD::u16 *in, size_t max);
|
||||
CTRFF_API void RGB565toRGBA(std::vector<PD::u8> &img, PD::u16 *icon,
|
||||
const int &w, const int &h);
|
||||
// Image can only be rgba8888
|
||||
CTRFF_API void RGBA2RGB565(PD::u16 *out, const std::vector<PD::u8> &img,
|
||||
const int &w, const int &h);
|
||||
CTRFF_API std::vector<PD::u8> DownscaleImage(const std::vector<PD::u8> &img,
|
||||
int w, int h, int scale);
|
||||
} // namespace ctrff
|
Reference in New Issue
Block a user