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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user