2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef AVI_CODEC_RESTRICTIONS
|
|
|
|
#define AVI_CODEC_RESTRICTIONS
|
|
|
|
|
|
|
|
#include "tcommon.h"
|
|
|
|
#include "tgeometry.h"
|
|
|
|
#include <QString>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#undef DVAPI
|
|
|
|
#undef DVVAR
|
|
|
|
#ifdef TOONZLIB_EXPORTS
|
|
|
|
#define DVAPI DV_EXPORT_API
|
|
|
|
#define DVVAR DV_EXPORT_VAR
|
|
|
|
#else
|
|
|
|
#define DVAPI DV_IMPORT_API
|
|
|
|
#define DVVAR DV_IMPORT_VAR
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
namespace AviCodecRestrictions {
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2021-07-08 13:39:28 +12:00
|
|
|
//! Returns a text specifying resolution restricions for the given codec name.
|
2016-06-15 18:43:10 +12:00
|
|
|
void DVAPI getRestrictions(const std::wstring &codecName,
|
|
|
|
QString &restrictions);
|
2016-03-19 06:57:51 +13:00
|
|
|
//! Returns true if the ginven codec can work in the given resolution.
|
2016-06-15 18:43:10 +12:00
|
|
|
bool DVAPI canWriteMovie(const std::wstring &codecName,
|
|
|
|
const TDimension &resolution);
|
2021-07-08 13:39:28 +12:00
|
|
|
//! Return a mapping containing the same codecs in \b codecNames, specifying
|
2016-06-15 18:43:10 +12:00
|
|
|
//! which codec can work in the given resolution.
|
2016-04-19 19:32:17 +12:00
|
|
|
QMap<std::wstring, bool> DVAPI getUsableCodecs(const TDimension &resolution);
|
2016-03-19 06:57:51 +13:00
|
|
|
//! Returns true if the specifiedcodec can be configured.
|
2016-04-19 19:32:17 +12:00
|
|
|
bool DVAPI canBeConfigured(const std::wstring &codecName);
|
2016-03-19 06:57:51 +13:00
|
|
|
//! Oopen the configuration popup for the specified codec
|
2016-04-19 19:32:17 +12:00
|
|
|
void DVAPI openConfiguration(const std::wstring &codecName, void *winId);
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
2017-05-09 00:13:29 +12:00
|
|
|
#endif // AVI_CODEC_RESTRICTIONS
|