This commit is contained in:
giantpune 2011-01-16 16:58:27 +00:00
parent 4f4558d769
commit 00d35c9f98
4 changed files with 4 additions and 0 deletions

1
.gitattributes vendored
View File

@ -139,6 +139,7 @@ thp_player/libpng/include/jconfig.h -text
thp_player/libpng/include/jerror.h -text
thp_player/libpng/include/jmorecfg.h -text
thp_player/libpng/include/jpeglib.h -text
thp_player/libpng/lib/libjpeg.dll.a -text
thp_player/main.cpp -text
thp_player/next.png -text
thp_player/pause.png -text

Binary file not shown.

View File

@ -23,6 +23,7 @@ CONFIG += static
win32 {
message("win32 build")
INCLUDEPATH += . ./libpng/include
LIBS += -L./libpng/lib -ljpeg
}
else {
LIBS += -ljpeg

View File

@ -163,7 +163,9 @@ void ThpWindow::LoadVideo( const QString &path )
ui->horizontalSlider_pos->setMaximum( frameCnt );
//set timer for animation
qDebug() << "fps" << QString( "%1" ).arg( videoFile->getFps(), 0, 'f', 3 );
qreal delay = 1000.0f/videoFile->getFps();
qDebug() << "delay" << QString( "%1" ).arg( delay, 0, 'f', 3 );
ui->label_timeFull->setText( TimeTxt( delay * videoFile->getFrameCount() ));
timer.setInterval( delay );