| 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(); |