diff --git a/core/libs/transitionmngr/effectmngr_p.h b/core/libs/transitionmngr/effectmngr_p.h index 78b40507b7..70138c44a0 100644 --- a/core/libs/transitionmngr/effectmngr_p.h +++ b/core/libs/transitionmngr/effectmngr_p.h @@ -1,109 +1,109 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2017-05-24 * Description : video frame effects manager. * * Copyright (C) 2017-2020 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef DIGIKAM_EFFECT_MNGR_PRIVATE_H #define DIGIKAM_EFFECT_MNGR_PRIVATE_H // C++ includes #include // Qt includes #include #include #include #include // Local includes #include "effectmngr.h" #include "digikam_config.h" #include "digikam_debug.h" namespace Digikam { class Q_DECL_HIDDEN EffectMngr::Private { public: typedef int (EffectMngr::Private::*EffectMethod)(bool); public: explicit Private() - : eff_curEffect(EffectMngr::None), - eff_isRunning(false), + : eff_isRunning(false), + eff_curEffect(EffectMngr::None), eff_step(0), eff_imgFrames(125) { registerEffects(); } ~Private() { } QMap eff_effectList; QImage eff_image; QImage eff_curFrame; QSize eff_outSize; bool eff_isRunning; EffectMngr::EffectType eff_curEffect; int eff_step; int eff_imgFrames; public: void registerEffects(); EffectMngr::EffectType getRandomEffect() const; private: /** * Internal functions to render an effect frame. * The effect movement must be adjusted accordingly with amount of image frames to encode. * aInit is to true when effect is initialized (first call). * The integer value is a tempo in ms to wait between frames, * or -1 if the effect is completed. */ int effectNone(bool aInit); int effectRandom(bool aInit); int effectKenBurnsZoomIn(bool aInit); int effectKenBurnsZoomOut(bool aInit); int effectKenBurnsPanLR(bool aInit); int effectKenBurnsPanRL(bool aInit); int effectKenBurnsPanTB(bool aInit); int effectKenBurnsPanBT(bool aInit); void updateCurrentFrame(const QRectF& area); }; } // namespace Digikam #endif // DIGIKAM_EFFECT_MNGR_PRIVATE_H