mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-09 21:44:15 +02:00
Fix build on Windows.
This commit is contained in:
parent
a330a3f2eb
commit
8dc151e14d
3 changed files with 2 additions and 13 deletions
|
@ -547,7 +547,7 @@ void SetupValidatePasswordSuggestion(
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0));
|
0));
|
||||||
const auto label = content->add(
|
content->add(
|
||||||
object_ptr<Ui::FlatLabel>(
|
object_ptr<Ui::FlatLabel>(
|
||||||
content,
|
content,
|
||||||
tr::lng_settings_suggestion_password_about(),
|
tr::lng_settings_suggestion_password_about(),
|
||||||
|
|
|
@ -915,10 +915,6 @@ void RoundVideoRecorder::Private::drawLogoOnYUV420P(
|
||||||
not_null<AVFrame*> frame) {
|
not_null<AVFrame*> frame) {
|
||||||
const auto width = frame->width;
|
const auto width = frame->width;
|
||||||
const auto height = frame->height;
|
const auto height = frame->height;
|
||||||
const auto centerX = width / 2;
|
|
||||||
const auto centerY = height / 2;
|
|
||||||
const auto radius = std::min(centerX, centerY);
|
|
||||||
const auto radiusSquared = radius * radius;
|
|
||||||
|
|
||||||
const auto logoBottom = height - kLogoSize + kLogoYShift;
|
const auto logoBottom = height - kLogoSize + kLogoYShift;
|
||||||
const auto logoStartX = kLogoXShift;
|
const auto logoStartX = kLogoXShift;
|
||||||
|
@ -933,20 +929,13 @@ void RoundVideoRecorder::Private::drawLogoOnYUV420P(
|
||||||
const auto ySkip = frame->linesize[0] - width;
|
const auto ySkip = frame->linesize[0] - width;
|
||||||
|
|
||||||
const auto uvWidth = width / 2;
|
const auto uvWidth = width / 2;
|
||||||
const auto uvHeight = height / 2;
|
|
||||||
auto uData = frame->data[1];
|
auto uData = frame->data[1];
|
||||||
auto vData = frame->data[2];
|
auto vData = frame->data[2];
|
||||||
const auto uvSkip = frame->linesize[1] - uvWidth;
|
const auto uvSkip = frame->linesize[1] - uvWidth;
|
||||||
auto yMaskIndex = 0;
|
auto yMaskIndex = 0;
|
||||||
|
|
||||||
for (auto y = 0; y < height; ++y) {
|
for (auto y = 0; y < height; ++y) {
|
||||||
const auto dy = y - centerY;
|
|
||||||
const auto dySquared = dy * dy;
|
|
||||||
|
|
||||||
for (auto x = 0; x < width; ++x) {
|
for (auto x = 0; x < width; ++x) {
|
||||||
const auto dx = x - centerX;
|
|
||||||
const auto distanceSquared = dx * dx + dySquared;
|
|
||||||
|
|
||||||
if (_circleMask[yMaskIndex]) {
|
if (_circleMask[yMaskIndex]) {
|
||||||
*yData = static_cast<uint8_t>(*yData * kOverlayOpacity
|
*yData = static_cast<uint8_t>(*yData * kOverlayOpacity
|
||||||
+ 16 * kOverlayOpaque);
|
+ 16 * kOverlayOpaque);
|
||||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit fd6f14f2deb9cc67c144c529e3267b67f99ba624
|
Subproject commit dd3a6bcaaa37f4d873bbdba840f858696a58735b
|
Loading…
Add table
Reference in a new issue