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

Method fromPackedPixels

valdi/src/valdi/runtime/Views/Frame.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60Size Size::fromPackedPixels(int64_t packed, float pointScale) {
61 auto pair = unpackIntPair(packed);
62 return fromPixels(pair.first, pair.second, pointScale);
63}
64
65Frame::Frame() = default;
66Frame::Frame(float x, float y, float width, float height) : x(x), y(y), width(width), height(height) {}

Callers

nothing calls this directly

Calls 1

unpackIntPairFunction · 0.85

Tested by

no test coverage detected