MCPcopy Create free account
hub / github.com/Snapchat/Valdi / loadAsset

Method loadAsset

valdi/src/valdi/android/ResourceLoader.cpp:127–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127JavaObject ResourceLoader::loadAsset(const JavaObject& imageLoader,
128 const JavaObject& payload,
129 int32_t preferredWidth,
130 int32_t preferredHeight,
131 const float* colorMatrixFilter,
132 float blurRadiusFilter,
133 int32_t outputType,
134 int64_t callbackHandle) {
135 auto jColorMatrixFilter = colorMatrixToFloatArray(colorMatrixFilter);
136
137 return _loadAssetMethod.call(_localResourceResolver.toObject(),
138 imageLoader,
139 payload,
140 preferredWidth,
141 preferredHeight,
142 jColorMatrixFilter,
143 blurRadiusFilter,
144 outputType,
145 callbackHandle);
146}
147
148JavaObject ResourceLoader::loadAssetFromBytes(const Valdi::BytesView& bytes,
149 int32_t preferredWidth,

Callers

nothing calls this directly

Calls 3

colorMatrixToFloatArrayFunction · 0.85
toObjectMethod · 0.80
callMethod · 0.65

Tested by

no test coverage detected