mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-14 19:00:01 +01:00
changed a few int to long
This commit is contained in:
@@ -736,7 +736,7 @@ void AC_MainWindow::updateFrame(QImage img) {
|
|||||||
QString frame_string;
|
QString frame_string;
|
||||||
QTextStream frame_stream(&frame_string);
|
QTextStream frame_stream(&frame_string);
|
||||||
if(!recording) {
|
if(!recording) {
|
||||||
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned int)(frame_index/video_fps) << ") ";
|
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned long)(frame_index/video_fps) << ") ";
|
||||||
} else {
|
} else {
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
stat(video_file_name.toStdString().c_str(), &buf);
|
stat(video_file_name.toStdString().c_str(), &buf);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ void Playback::setVideo(cv::VideoCapture cap, cv::VideoWriter wr, bool record) {
|
|||||||
writer = wr;
|
writer = wr;
|
||||||
recording = record;
|
recording = record;
|
||||||
if(capture.isOpened()) {
|
if(capture.isOpened()) {
|
||||||
frame_rate = (int) capture.get(CV_CAP_PROP_FPS);
|
frame_rate = capture.get(CV_CAP_PROP_FPS);
|
||||||
if(frame_rate <= 0) frame_rate = 24;
|
if(frame_rate <= 0) frame_rate = 24;
|
||||||
}
|
}
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ private:
|
|||||||
QMutex mutex, mutex_shown, mutex_add;
|
QMutex mutex, mutex_shown, mutex_add;
|
||||||
QWaitCondition condition;
|
QWaitCondition condition;
|
||||||
cv::Mat frame;
|
cv::Mat frame;
|
||||||
int frame_rate;
|
double frame_rate;
|
||||||
bool recording;
|
bool recording;
|
||||||
cv::VideoCapture capture;
|
cv::VideoCapture capture;
|
||||||
cv::VideoWriter writer;
|
cv::VideoWriter writer;
|
||||||
|
|||||||
Reference in New Issue
Block a user