/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | shader_state_loader.cpp | 55 const uint64_t byteLength = file->GetLength(); in Load() local 58 raw.resize(static_cast<size_t>(byteLength)); in Load() 60 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
H A D | vertex_input_declaration_loader.cpp | 158 const uint64_t byteLength = file->GetLength(); in Load() local 161 raw.resize(static_cast<size_t>(byteLength)); in Load() 163 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
H A D | pipeline_layout_loader.cpp | 171 const uint64_t byteLength = file->GetLength(); in Load() local 174 raw.resize(static_cast<size_t>(byteLength)); in Load() 176 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
H A D | shader_data_loader.cpp | 176 const uint64_t byteLength = file->GetLength(); in Load() local 179 raw.resize(static_cast<size_t>(byteLength)); in Load() 181 if (file->Read(raw.data(), byteLength) != byteLength) { in Load()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | text_blob.cpp | 29 std::shared_ptr<TextBlob> TextBlob::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 32 return StaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 35 std::shared_ptr<TextBlob> TextBlob::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 38 return StaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 49 std::shared_ptr<TextBlob> TextBlob::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 52 return StaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
H A D | font.cpp | 173 int Font::TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, in TextToGlyphs() argument 176 return fontImpl_->TextToGlyphs(text, byteLength, encoding, glyphs, maxGlyphCount); in TextToGlyphs() 179 scalar Font::MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) const in MeasureText() argument 181 return fontImpl_->MeasureText(text, byteLength, encoding, bounds); in MeasureText() 226 int Font::CountText(const void* text, size_t byteLength, TextEncoding encoding) const in CountText() argument 228 return fontImpl_->CountText(text, byteLength, encoding); in CountText() 236 void Font::GetTextPath(const void* text, size_t byteLength, TextEncoding encoding, float x, float y, Path* path) const in GetTextPath() argument 238 fontImpl_->GetTextPath(text, byteLength, encoding, x, y, path); in GetTextPath()
|
/foundation/ai/intelligent_voice_framework/frameworks/js/napi/ |
H A D | intell_voice_napi_util.cpp | 152 size_t byteLength = 0; in GetValue() local 160 napi_status status = napi_get_arraybuffer_info(env, jsValue, &buf, &byteLength); in GetValue() 166 if (buf == nullptr || byteLength == 0) { in GetValue() 167 INTELL_VOICE_LOG_ERROR("failed to get arraybuf length %zu", byteLength); in GetValue() 171 value.resize(byteLength); in GetValue() 172 std::copy(static_cast<uint8_t *>(buf), static_cast<uint8_t *>(buf) + byteLength, &value[0]); in GetValue()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/ |
H A D | image_loader_manager.cpp | 93 const uint64_t byteLength = 12u; in LoadImage() local 96 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in LoadImage() 97 const uint64_t read = file.Read(buffer.get(), byteLength); in LoadImage() 98 if (read != byteLength) { in LoadImage() 105 loader.instance->CanLoad(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)))) { in LoadImage() 148 const uint64_t byteLength = 12u; in LoadAnimatedImage() local 151 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); in LoadAnimatedImage() 152 const uint64_t read = file.Read(buffer.get(), byteLength); in LoadAnimatedImage() 153 if (read != byteLength) { in LoadAnimatedImage() 159 if (loader.instance->CanLoad(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)))) { in LoadAnimatedImage() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/ |
H A D | font.h | 218 * @param byteLength Length of character storage in bytes. 221 * @return Number of glyphs represented by text of length byteLength. 223 int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 229 * @param byteLength Length of character storage in bytes 234 scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds = nullptr) const; 250 int CountText(const void* text, size_t byteLength, TextEncoding encoding) const; 263 * @param byteLength Indicates the text length in bytes. 269 void GetTextPath(const void* text, size_t byteLength, TextEncoding encoding, float x, float y, Path* path) const;
|
H A D | text_blob.h | 37 static std::shared_ptr<TextBlob> MakeFromText(const void* text, size_t byteLength, 39 static std::shared_ptr<TextBlob> MakeFromPosText(const void* text, size_t byteLength, 43 static std::shared_ptr<TextBlob> MakeFromRSXform(const void* text, size_t byteLength,
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_font.h | 205 * @param byteLength Indicates the text length in bytes. 210 int OH_Drawing_FontCountText(OH_Drawing_Font*, const void* text, size_t byteLength, 219 * @param byteLength Indicates the text length in bytes. 227 uint32_t OH_Drawing_FontTextToGlyphs(const OH_Drawing_Font*, const void* text, uint32_t byteLength, 266 * @param byteLength Indicates the text length in bytes. 273 * and textWidth is nullptr or byteLength is 0. 277 OH_Drawing_ErrorCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* font, const void* text, size_t byteLength, 543 * @param byteLength Indicates the text length in bytes. 554 OH_Drawing_ErrorCode OH_Drawing_FontGetTextPath(const OH_Drawing_Font* font, const void* text, size_t byteLength,
|
H A D | drawing_text_blob.h | 61 * @param byteLength Indicates the text length. 68 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromText(const void* text, size_t byteLength, 76 * @param byteLength Indicates the text length. 84 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromPosText(const void* text, size_t byteLength,
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_font.h | 74 int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 78 scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) const override; 79 int CountText(const void* text, size_t byteLength, TextEncoding encoding) const override; 81 void GetTextPath(const void* text, size_t byteLength, TextEncoding encoding,
|
H A D | skia_text_blob.h | 42 static std::shared_ptr<TextBlob> MakeFromText(const void* text, size_t byteLength, 44 static std::shared_ptr<TextBlob> MakeFromPosText(const void* text, size_t byteLength, 46 static std::shared_ptr<TextBlob> MakeFromRSXform(const void* text, size_t byteLength,
|
H A D | skia_text_blob.cpp | 47 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 56 sk_sp<SkTextBlob> skTextBlob = SkTextBlob::MakeFromText(text, byteLength, skiaFont->GetFont(), skEncoding); in MakeFromText() 65 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 76 const int count = skFont.countText(text, byteLength, skEncoding); in MakeFromPosText() 81 sk_sp<SkTextBlob> skTextBlob = SkTextBlob::MakeFromPosText(text, byteLength, skPts, skFont, skEncoding); in MakeFromPosText() 90 std::shared_ptr<TextBlob> SkiaTextBlob::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 104 SkTextBlob::MakeFromRSXform(text, byteLength, xform ? &skXform : nullptr, skiaFont->GetFont(), skEncoding); in MakeFromRSXform()
|
H A D | skia_static_factory.cpp | 33 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 36 return SkiaTextBlob::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 39 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 42 return SkiaTextBlob::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 45 std::shared_ptr<TextBlob> SkiaStaticFactory::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 48 return SkiaTextBlob::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
H A D | skia_font.cpp | 240 int SkiaFont::TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, in TextToGlyphs() argument 244 return skFont_.textToGlyphs(text, byteLength, skEncoding, glyphs, maxGlyphCount); in TextToGlyphs() 247 scalar SkiaFont::MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) const in MeasureText() argument 250 return skFont_.measureText(text, byteLength, skEncoding, reinterpret_cast<SkRect*>(bounds)); in MeasureText() 253 int SkiaFont::CountText(const void* text, size_t byteLength, TextEncoding encoding) const in CountText() argument 256 return skFont_.countText(text, byteLength, skEncoding); in CountText()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | font_impl.h | 70 virtual int TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, 74 virtual scalar MeasureText(const void* text, size_t byteLength, TextEncoding encoding, 76 virtual int CountText(const void* text, size_t byteLength, TextEncoding encoding) const = 0; 78 virtual void GetTextPath(const void* text, size_t byteLength,
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_blob.cpp | 68 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromText(const void* text, size_t byteLength, in OH_Drawing_TextBlobCreateFromText() argument 81 byteLength, font, static_cast<TextEncoding>(cTextEncoding)); in OH_Drawing_TextBlobCreateFromText() 90 OH_Drawing_TextBlob* OH_Drawing_TextBlobCreateFromPosText(const void* text, size_t byteLength, in OH_Drawing_TextBlobCreateFromPosText() argument 93 if (text == nullptr || cFont == nullptr || cPoints == nullptr || byteLength == 0) { in OH_Drawing_TextBlobCreateFromPosText() 102 const int count = font.CountText(text, byteLength, static_cast<TextEncoding>(cTextEncoding)); in OH_Drawing_TextBlobCreateFromPosText() 113 std::shared_ptr<TextBlob> textBlob = TextBlob::MakeFromPosText(text, byteLength, in OH_Drawing_TextBlobCreateFromPosText()
|
H A D | drawing_font.cpp | 205 int OH_Drawing_FontCountText(OH_Drawing_Font* cFont, const void* text, size_t byteLength, in OH_Drawing_FontCountText() argument 213 return font->CountText(text, byteLength, static_cast<TextEncoding>(encoding)); in OH_Drawing_FontCountText() 216 uint32_t OH_Drawing_FontTextToGlyphs(const OH_Drawing_Font* cFont, const void* text, uint32_t byteLength, in OH_Drawing_FontTextToGlyphs() argument 219 if (cFont == nullptr || text == nullptr || glyphs == nullptr || byteLength == 0 || maxGlyphCount <= 0) { in OH_Drawing_FontTextToGlyphs() 223 return CastToFont(*cFont).TextToGlyphs(text, byteLength, in OH_Drawing_FontTextToGlyphs() 252 OH_Drawing_ErrorCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* cFont, const void* text, size_t byteLength, in OH_Drawing_FontMeasureText() argument 255 if (cFont == nullptr || text == nullptr || byteLength == 0 || textWidth == nullptr) { in OH_Drawing_FontMeasureText() 259 *textWidth = CastToFont(*cFont).MeasureText(text, byteLength, in OH_Drawing_FontMeasureText() 439 OH_Drawing_ErrorCode OH_Drawing_FontGetTextPath(const OH_Drawing_Font* cFont, const void* text, size_t byteLength, in OH_Drawing_FontGetTextPath() argument 443 if (font == nullptr || text == nullptr || byteLength in OH_Drawing_FontGetTextPath() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/ |
H A D | static_factory_test.cpp | 151 int byteLength = 5; in HWTEST_F() local 154 TextBlob::MakeFromText(text, byteLength, font, static_cast<TextEncoding>(TextEncoding::UTF8)); in HWTEST_F() 168 int byteLength = 5; in HWTEST_F() local 171 TextBlob::MakeFromText(text, byteLength, font, static_cast<TextEncoding>(TextEncoding::UTF8)); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.cpp | 29 std::shared_ptr<TextBlob> StaticFactory::MakeFromText(const void* text, size_t byteLength, in MakeFromText() argument 34 return DDGRStaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 37 return EngineStaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText() 40 std::shared_ptr<TextBlob> StaticFactory::MakeFromPosText(const void* text, size_t byteLength, in MakeFromPosText() argument 45 return DDGRStaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 48 return EngineStaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText() 51 std::shared_ptr<TextBlob> StaticFactory::MakeFromRSXform(const void* text, size_t byteLength, in MakeFromRSXform() argument 56 return DDGRStaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform() 59 return EngineStaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
|
H A D | static_factory.h | 39 static std::shared_ptr<TextBlob> MakeFromText(const void* text, size_t byteLength, 41 static std::shared_ptr<TextBlob> MakeFromPosText(const void* text, size_t byteLength, 43 static std::shared_ptr<TextBlob> MakeFromRSXform(const void* text, size_t byteLength,
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_libjpeg.cpp | 248 const uint64_t byteLength = file.GetLength(); variable 250 if (byteLength > static_cast<uint64_t>(std::numeric_limits<int>::max())) { 255 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); 256 const uint64_t read = file.Read(buffer.get(), byteLength); 257 if (read != byteLength) { 261 return LibJPEGImage::Load(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)), loadFlags);
|
H A D | image_loader_libpng.cpp | 223 const uint64_t byteLength = file.GetLength(); variable 225 if (byteLength > static_cast<uint64_t>(std::numeric_limits<int>::max())) { 230 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(static_cast<size_t>(byteLength)); 231 const uint64_t read = file.Read(buffer.get(), byteLength); 232 if (read != byteLength) { 236 return LibPNGImage::Load(array_view<const uint8_t>(buffer.get(), static_cast<size_t>(byteLength)), loadFlags);
|