MCPcopy Create free account
hub / github.com/Tencent/tgfx / MakeFrom

Method MakeFrom

src/platform/web/VideoElement.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static constexpr int ANDROID_MINIPROGRAM_ALIGNMENT = 16;
27
28std::shared_ptr<VideoElement> VideoElement::MakeFrom(val video, int width, int height) {
29 if (video == val::null() || width < 1 || height < 1) {
30 return nullptr;
31 }
32 return std::shared_ptr<VideoElement>(new VideoElement(video, width, height));
33}
34
35VideoElement::VideoElement(emscripten::val video, int width, int height)
36 : ImageStream(width, height), source(video) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected