134 lines
3.2 KiB
C++
Executable File
134 lines
3.2 KiB
C++
Executable File
/* This file is a part of plaYUVer project
|
|
* Copyright (C) 2014 by plaYUVer developers
|
|
*
|
|
* 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 of the License, 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
/** \file playuversettings.h
|
|
\brief plaYUVer app settings
|
|
*/
|
|
|
|
#ifndef __PLAYUVERSETTINGS_H__
|
|
#define __PLAYUVERSETTINGS_H__
|
|
|
|
#include <QSettings>
|
|
#include <QString>
|
|
#include <QSize>
|
|
#include <QPoint>
|
|
#include <QColor>
|
|
#include <QString>
|
|
|
|
#include <QBitArray>
|
|
#include "gridmanager.h"
|
|
|
|
namespace plaYUVer
|
|
{
|
|
|
|
class PlaYUVerSettings
|
|
{
|
|
|
|
public:
|
|
PlaYUVerSettings();
|
|
|
|
// - - - - - - - - - - Main Window Settings - - - - - - - - - - - - -
|
|
QPoint mainWindowPos();
|
|
void setMainWindowPos( const QPoint &v );
|
|
|
|
QSize mainWindowSize();
|
|
void setMainWindowSize( const QSize &v );
|
|
|
|
QString lastOpenPath();
|
|
void setLastOpenPath( const QString &v );
|
|
|
|
// - - - - - - - - - - - Segmentation Settings - - - - - - - - - - - -
|
|
QBitArray results2show();
|
|
void setResults2show( QBitArray vectorRes );
|
|
|
|
// - - - - - - - - - - - - MMP-compound Encoder settings - - - - - - - - - - - -
|
|
QString binaryPath();
|
|
void setBinaryPath( QString binaryPath );
|
|
|
|
QString oimagePath();
|
|
void setOimagePath( QString binaryPath );
|
|
|
|
int blockSize();
|
|
void setBlockSize( int blockSize );
|
|
|
|
int quantization();
|
|
void setQuantization( int quantization );
|
|
|
|
int predictionLevel();
|
|
void setPredictionLevel( int predictionlevel );
|
|
|
|
int defineBounds();
|
|
void setDefineBounds( int definebounds );
|
|
|
|
int lambda();
|
|
void setLambda( int lambda );
|
|
|
|
int dictionary();
|
|
void setDictionary( int dictionary );
|
|
|
|
int radiusDistortion();
|
|
void setRadiusDistortion( int distortion );
|
|
|
|
int losslessDistance();
|
|
void setLosslessDistance( int distance );
|
|
|
|
QBitArray mmpTenCheckBoxs();
|
|
void setMmpTenCheckBoxs( QBitArray tenCheckBoxs );
|
|
|
|
int mmpAutoSeg();
|
|
void setMmpAutoSeg( int autoSeg );
|
|
|
|
// - - - - - - - - - - - - MMP-compound Decoder settings - - - - - - - - - - - -
|
|
QString binaryPathDec();
|
|
void setBinaryPathDec( QString binaryPath );
|
|
|
|
QString oimagePathDec();
|
|
void setOimagePathDec( QString binaryPath );
|
|
|
|
bool optOutResDec();
|
|
void setOptOutResDec( bool par );
|
|
|
|
QString outResDec();
|
|
void setOutResDec( QString str );
|
|
|
|
bool optImgYDec();
|
|
void setOptImgYDec( bool par );
|
|
|
|
QString imgYDec();
|
|
void setImgYDec( QString str );
|
|
|
|
bool optImgUDec();
|
|
void setOptImgUDec( bool par );
|
|
|
|
QString imgUDec();
|
|
void setImgUDec( QString str );
|
|
|
|
bool optImgVDec();
|
|
void setOptImgVDec( bool par );
|
|
|
|
QString imgVDec();
|
|
void setImgVDec( QString str );
|
|
|
|
private:
|
|
QSettings m_settings;
|
|
};
|
|
|
|
} // NAMESPACE
|
|
|
|
#endif // __PLAYUVERSETTINGS_H__
|