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

Generate high quality video thumbnail when loaded.

This commit is contained in:
John Preston
2018-10-25 12:12:56 +04:00
parent 8f387891e2
commit da358615e0
10 changed files with 375 additions and 11 deletions

View File

@@ -154,6 +154,11 @@ public:
bool hasGoodStickerThumb() const;
Image *goodThumbnail() const;
Storage::Cache::Key goodThumbnailCacheKey() const;
void validateGoodThumbnail();
void refreshGoodThumbnail();
void setRemoteLocation(
int32 dc,
uint64 access,
@@ -218,6 +223,8 @@ private:
QString _mimeString;
WebFileLocation _urlLocation;
std::unique_ptr<Image> _goodThumbnail;
not_null<AuthSession*> _session;
FileLocation _location;