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

Support rendering Webm videos with alpha.

This commit is contained in:
John Preston
2022-01-19 17:45:51 +03:00
parent 1755ead681
commit 8b7d2c880e
25 changed files with 139 additions and 44 deletions

View File

@@ -57,12 +57,22 @@ struct DocumentAdditionalData {
};
struct StickerData : public DocumentAdditionalData {
Data::FileOrigin setOrigin() const;
enum class StickerType : uchar {
Webp,
Tgs,
Webm,
};
struct StickerData : public DocumentAdditionalData {
[[nodiscard]] Data::FileOrigin setOrigin() const;
[[nodiscard]] bool isStatic() const;
[[nodiscard]] bool isLottie() const;
[[nodiscard]] bool isAnimated() const;
[[nodiscard]] bool isWebm() const;
bool animated = false;
QString alt;
StickerSetIdentifier set;
StickerType type = StickerType::Webp;
};
struct SongData : public DocumentAdditionalData {