2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Generate high quality thumbnail on sending video.

This commit is contained in:
John Preston
2018-10-25 12:47:06 +04:00
parent da358615e0
commit 8000ff2cd7
6 changed files with 60 additions and 13 deletions

View File

@@ -156,7 +156,7 @@ public:
Image *goodThumbnail() const;
Storage::Cache::Key goodThumbnailCacheKey() const;
void validateGoodThumbnail();
void setGoodThumbnail(QImage &&image, QByteArray &&bytes);
void refreshGoodThumbnail();
void setRemoteLocation(
@@ -211,6 +211,7 @@ private:
friend class Serialize::Document;
LocationType locationType() const;
void validateGoodThumbnail();
void destroyLoaderDelayed(mtpFileLoader *newValue = nullptr) const;