Home
last modified time | relevance | path

Searched refs:mimeType (Results 1 – 9 of 9) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgLoader.cpp193 static FileType _convert(const string& mimeType) in _convert() argument
197 if (mimeType == "tvg") type = FileType::Tvg; in _convert()
198 else if (mimeType == "svg" || mimeType == "svg+xml") type = FileType::Svg; in _convert()
199 else if (mimeType == "ttf" || mimeType == "otf") type = FileType::Ttf; in _convert()
200 else if (mimeType == "lottie") type = FileType::Lottie; in _convert()
201 else if (mimeType == "raw") type = FileType::Raw; in _convert()
202 else if (mimeType == "png") type = FileType::Png; in _convert()
203 else if (mimeType == "jpg" || mimeType == "jpeg") type = FileType::Jpg; in _convert()
204 else if (mimeType == "webp") type = FileType::Webp; in _convert()
205 else TVGLOG("RENDERER", "Given mimetype is unknown = \"%s\".", mimeType.c_str()); in _convert()
[all …]
DtvgLoader.h36 static LoadModule* loader(const char* data, uint32_t size, const string& mimeType, bool copy);
38 …dule* loader(const char* name, const char* data, uint32_t size, const string& mimeType, bool copy);
DtvgText.cpp76 Result Text::load(const char* name, const char* data, uint32_t size, const string& mimeType, bool c… in load() argument
86 if (!LoaderMgr::loader(name, data, size, mimeType, copy)) return Result::NonSupport; in load()
DtvgPicture.cpp176 Result Picture::load(const char* data, uint32_t size, const string& mimeType, bool copy) noexcept in load() argument
180 return pImpl->load(data, size, mimeType, copy); in load()
DtvgPicture.h141 Result load(const char* data, uint32_t size, const string& mimeType, bool copy) in load()
144 auto loader = static_cast<ImageLoader*>(LoaderMgr::loader(data, size, mimeType, copy)); in load()
DtvgLottieParser.cpp937 auto mimeType = data + 11; in parseImage() local
938 auto needle = strstr(mimeType, ";"); in parseImage()
939 image->mimeType = strDuplicate(mimeType, needle - mimeType); in parseImage()
DtvgLottieModel.cpp137 free(mimeType); in ~LottieImage()
150 if (size > 0) picture->load((const char*)b64Data, size, mimeType, false); in prepare()
Dthorvg.h1302 …Result load(const char* data, uint32_t size, const std::string& mimeType, bool copy = false) noexc…
1595 …d(const char* name, const char* data, uint32_t size, const std::string& mimeType = "ttf", bool cop…
DtvgLottieModel.h655 char* mimeType = nullptr; member