[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/core Utils.cpp Utils.h
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/core Utils.cpp Utils.h |
Date: |
Thu, 20 Sep 2007 18:36:16 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/09/20 18:36:16
Modified files:
src/core : Utils.cpp Utils.h
Log message:
remove obsoleted functions
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Utils.cpp?cvsroot=traverso&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Utils.h?cvsroot=traverso&r1=1.13&r2=1.14
Patches:
Index: Utils.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Utils.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- Utils.cpp 20 Sep 2007 18:25:15 -0000 1.17
+++ Utils.cpp 20 Sep 2007 18:36:16 -0000 1.18
@@ -31,33 +31,6 @@
#include <QChar>
-// Frame to MM:SS.30 (smpte time = 30ths of a second)
-QString frame_to_smpte ( nframes_t nframes, int rate )
-{
- QString spos;
- long unsigned int remainder;
- int mins, secs, frames;
-
- mins = nframes / ( 60 * rate );
- remainder = nframes - ( mins * 60 * rate );
- secs = remainder / rate;
- remainder -= secs * rate;
- frames = remainder / ( rate / 30 );
- spos.sprintf ( " %02d:%02d%c%02d", mins, secs,
QLocale::system().decimalPoint().toAscii(), frames );
-
- return spos;
-}
-
-// Frame to MM:SS.9{2-3} (hundredths or ms, based on scalefactor)
-QString frame_to_text(nframes_t nframes, int rate, int scalefactor)
-{
- if (scalefactor >= 512) {
- return frame_to_ms_2(nframes, rate);
- } else {
- return frame_to_ms_3(nframes, rate);
- }
-}
-
// Frame to MM:SS.999 (ms)
QString frame_to_ms_3 ( nframes_t nframes, int rate )
{
@@ -75,23 +48,6 @@
return spos;
}
-// Frame to MM:SS.99 (hundredths)
-QString frame_to_ms_2 ( nframes_t nframes, int rate )
-{
- QString spos;
- long unsigned int remainder;
- int mins, secs, frames;
-
- mins = nframes / ( 60 * rate );
- remainder = nframes - ( mins * 60 * rate );
- secs = remainder / rate;
- remainder -= secs * rate;
- frames = remainder * 100 / rate;
- spos.sprintf ( " %02d:%02d%c%02d", mins, secs,
QLocale::system().decimalPoint().toAscii(), frames );
-
- return spos;
-}
-
QString frame_to_hms(double nframes, int rate)
{
long unsigned int remainder;
@@ -105,18 +61,6 @@
return QString().sprintf("%02d:%02d:%02d", hours, mins, secs);
}
-QString frame_to_ms(double nframes, int rate)
-{
- long unsigned int remainder;
- int mins, secs;
-
- mins = (int) (nframes / ( 60 * rate ));
- remainder = (long unsigned int) (nframes - (mins * 60 * rate));
- secs = (int) (remainder / rate);
- return QString().sprintf("%02d:%02d", mins, secs);
-}
-
-
TimeRef msms_to_timeref(QString str)
{
TimeRef out = 0;
Index: Utils.h
===================================================================
RCS file: /sources/traverso/traverso/src/core/Utils.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Utils.h 20 Sep 2007 18:25:15 -0000 1.13
+++ Utils.h 20 Sep 2007 18:36:16 -0000 1.14
@@ -30,12 +30,8 @@
class QString;
-QString frame_to_text(nframes_t nframes, int rate, int scalefactor);
-QString frame_to_smpte(nframes_t nframes, int rate);
QString frame_to_ms_3(nframes_t nframes, int rate);
-QString frame_to_ms_2(nframes_t nframes, int rate);
QString frame_to_hms(double nframes, int rate);
-QString frame_to_ms(double nframes, int rate);
QString timeref_to_ms(const TimeRef& ref);
QString timeref_to_ms_2 (const TimeRef& ref);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Traverso-commit] traverso/src/core Utils.cpp Utils.h,
Remon Sijrier <=