1 ///////////////////////////////////////////////////////////////////////////////
2 // Simple x264 Launcher
3 // Copyright (C) 2004-2020 LoRd_MuldeR <MuldeR2@GMX.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
24 #include "model_clipInfo.h"
28 ClipInfo::ClipInfo(const quint32
&count
, const quint32
&width
, const quint32
&height
, const quint32
&numerator
, const quint32
&denominator
)
31 m_frameSize_wid
= width
;
32 m_frameSize_hei
= height
;
33 m_frameRate_num
= numerator
;
34 m_frameRate_den
= denominator
;
37 void ClipInfo::reset(void)
39 m_frameCount
= m_frameSize_wid
= m_frameSize_hei
= m_frameRate_num
= m_frameRate_den
= 0;
42 const quint32
&ClipInfo::getFrameCount(void) const
47 QPair
<quint32
, quint32
> ClipInfo::getFrameSize(void) const
49 return qMakePair(m_frameSize_wid
, m_frameSize_hei
);
52 QPair
<quint32
, quint32
> ClipInfo::getFrameRate(void) const
54 return qMakePair(m_frameRate_num
, m_frameRate_den
);
57 void ClipInfo::setFrameCount(const quint32
&count
)
62 void ClipInfo::setFrameSize(const quint32
&width
, const quint32
&height
)
64 m_frameSize_wid
= width
;
65 m_frameSize_hei
= height
;
68 void ClipInfo::setFrameRate(const quint32
&numerator
, const quint32
&denominator
)
70 m_frameRate_num
= numerator
;
71 m_frameRate_den
= denominator
;