Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef AVI_CODEC_RESTRICTIONS
Toshihiro Shimizu 890ddd
#define AVI_CODEC_RESTRICTIONS
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tcommon.h"
Toshihiro Shimizu 890ddd
#include "tgeometry.h"
Toshihiro Shimizu 890ddd
#include <qstring></qstring>
Toshihiro Shimizu 890ddd
#include <qmap></qmap>
Toshihiro Shimizu 890ddd
#include <qobject></qobject>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TOONZLIB_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace AviCodecRestrictions {
Toshihiro Shimizu 890ddd
luz paz 6454c4
//! Returns a text specifying resolution restricions for the given codec name.
Shinya Kitaoka 120a6e
void DVAPI getRestrictions(const std::wstring &codecName,
Shinya Kitaoka 120a6e
                           QString &restrictions);
Toshihiro Shimizu 890ddd
//! Returns true if the ginven codec can work in the given resolution.
Shinya Kitaoka 120a6e
bool DVAPI canWriteMovie(const std::wstring &codecName,
Shinya Kitaoka 120a6e
                         const TDimension &resolution);
luz paz 6454c4
//! Return a mapping containing the same codecs in \b codecNames, specifying
Shinya Kitaoka 120a6e
//! which codec can work in the given resolution.
Shinya Kitaoka 3bfa54
QMap<std::wstring, bool=""> DVAPI getUsableCodecs(const TDimension &resolution);</std::wstring,>
Toshihiro Shimizu 890ddd
//! Returns true if the specifiedcodec can be configured.
Shinya Kitaoka 3bfa54
bool DVAPI canBeConfigured(const std::wstring &codecName);
Toshihiro Shimizu 890ddd
//! Oopen the configuration popup for the specified codec
Shinya Kitaoka 3bfa54
void DVAPI openConfiguration(const std::wstring &codecName, void *winId);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
e280ae
#endif  // AVI_CODEC_RESTRICTIONS