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

Method PixelBufferCodec

src/core/PixelBufferCodec.h:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 static std::shared_ptr<PixelBufferCodec> Make(std::shared_ptr<PixelBuffer> source);
27
28 PixelBufferCodec(std::shared_ptr<PixelBuffer> source)
29 : ImageCodec(source->width(), source->height()), source(std::move(source)) {
30 }
31
32 bool isAlphaOnly() const override {
33 return source->isAlphaOnly();

Callers

nothing calls this directly

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected