Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
791 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2020 Eoin O 'Neill <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISANIMATIONRENDERUTILS_H
#define KISANIMATIONRENDERUTILS_H

#include "KisAnimationRenderingOptions.h"

#include "kritaui_export.h"

class KisDocument;
class KisViewManager;

namespace KisAnimationRender {
    /** Render an animation to file on disk.
     *  returns TRUE on success, FALSE on error or cancellation.
    **/
    KRITAUI_EXPORT bool render(KisDocument *doc, KisViewManager* viewManager, KisAnimationRenderingOptions encoderOptions);

    bool mustHaveEvenDimensions(const QString &videoType, KisAnimationRenderingOptions::RenderMode renderMode);
    bool hasEvenDimensions(int width, int height);

}

#endif // KISANIMATIONRENDERUTILS_H