MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / ValidatePhotoImage

Function ValidatePhotoImage

Telegram/SourceFiles/data/data_photo.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using Data::kPhotoSizeCount;
31
32[[nodiscard]] QImage ValidatePhotoImage(
33 QImage image,
34 const Data::CloudFile &file) {
35 return (v::is<WebFileLocation>(file.location.file().data)
36 && image.format() == QImage::Format_ARGB32)
37 ? Images::Opaque(std::move(image))
38 : image;
39}
40
41} // namespace
42

Callers 2

loadMethod · 0.85
updateImagesMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected