mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
c5c77ddb67
commit
775d5b6dcc
2 changed files with 6 additions and 3 deletions
|
@ -23,7 +23,8 @@ extern "C" {
|
||||||
namespace FFmpeg {
|
namespace FFmpeg {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kAlignImageBy = 16;
|
// See https://github.com/telegramdesktop/tdesktop/issues/7225
|
||||||
|
constexpr auto kAlignImageBy = 64;
|
||||||
constexpr auto kImageFormat = QImage::Format_ARGB32_Premultiplied;
|
constexpr auto kImageFormat = QImage::Format_ARGB32_Premultiplied;
|
||||||
constexpr auto kMaxScaleByAspectRatio = 16;
|
constexpr auto kMaxScaleByAspectRatio = 16;
|
||||||
constexpr auto kAvioBlockSize = 4096;
|
constexpr auto kAvioBlockSize = 4096;
|
||||||
|
|
|
@ -16,8 +16,10 @@ namespace Clip {
|
||||||
namespace internal {
|
namespace internal {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr int kSkipInvalidDataPackets = 10;
|
constexpr auto kSkipInvalidDataPackets = 10;
|
||||||
constexpr int kAlignImageBy = 16;
|
|
||||||
|
// See https://github.com/telegramdesktop/tdesktop/issues/7225
|
||||||
|
constexpr auto kAlignImageBy = 64;
|
||||||
|
|
||||||
void alignedImageBufferCleanupHandler(void *data) {
|
void alignedImageBufferCleanupHandler(void *data) {
|
||||||
auto buffer = static_cast<uchar*>(data);
|
auto buffer = static_cast<uchar*>(data);
|
||||||
|
|
Loading…
Add table
Reference in a new issue