mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-13 18:30:02 +01:00
Added avi to dialog excluded filters
This commit is contained in:
@@ -119,7 +119,7 @@ void ImageWindow::setPlayback(Playback *play) {
|
||||
}
|
||||
|
||||
void ImageWindow::video_Set() {
|
||||
QString file_name = QFileDialog::getOpenFileName(this,"Select A video file to open","/home","Video (*.mov *.mp4 *.mkv *.m4v)");
|
||||
QString file_name = QFileDialog::getOpenFileName(this,"Select A video file to open","/home","Video (*.avi *.mov *.mp4 *.mkv *.m4v)");
|
||||
|
||||
std::string vname = file_name.toStdString();
|
||||
ac::v_cap.open(vname);
|
||||
|
||||
@@ -177,10 +177,13 @@ AC_MainWindow::AC_MainWindow(QWidget *parent) : QMainWindow(parent) {
|
||||
}
|
||||
|
||||
bool AC_MainWindow::checkAdd(QString str) {
|
||||
const char *ex[] = { "Bars", "BilateralFilter", "BilateralFilterFade", "BoxFilter", "CurrentDesktopRect", "HorizontalTrailsInter", "IntertwineAlpha", "IntertwineAlphaBlend", "IntertwineVideo640", "RandomAlphaBlendFilter", "RandomOrigFrame", "RectangleGlitch", "SquareSwap64x32", "VideoColorMap", 0};
|
||||
const char *ex[] = { "Desktop", "MultiVideo", "Solo", "Bars", "BilateralFilter", "BilateralFilterFade", "BoxFilter", "CurrentDesktopRect", "HorizontalTrailsInter", "IntertwineAlpha", "IntertwineAlphaBlend", "IntertwineVideo640", "RandomAlphaBlendFilter", "RandomOrigFrame", "RectangleGlitch", "SquareSwap64x32", "VideoColorMap", 0};
|
||||
|
||||
|
||||
std::string val = str.toStdString();
|
||||
|
||||
for(int i = 0; ex[i] != 0; ++i)
|
||||
if(str == ex[i])
|
||||
if(val.find(ex[i]) != std::string::npos)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ void CaptureVideo::setParent(AC_MainWindow *p) {
|
||||
|
||||
void CaptureVideo::btn_SetSourceFile() {
|
||||
QString def_path = "";
|
||||
QString fileName = QFileDialog::getOpenFileName(this,tr("Open Video"), def_path, tr("Video Files (*.avi *.mov *.mp4 *.mkv)"));
|
||||
QString fileName = QFileDialog::getOpenFileName(this,tr("Open Video"), def_path, tr("Video Files (*.avi *.mov *.mp4 *.mkv *.m4v)"));
|
||||
if(fileName != "")
|
||||
edit_src->setText(fileName);
|
||||
}
|
||||
|
||||
@@ -16,10 +16,13 @@ SearchWindow::SearchWindow(QWidget *parent) : QDialog(parent) {
|
||||
}
|
||||
|
||||
bool SearchWindow::checkAdd(QString str) {
|
||||
const char *ex[] = { "Bars", "BilateralFilter", "BilateralFilterFade", "BoxFilter", "CurrentDesktopRect", "HorizontalTrailsInter", "IntertwineAlpha", "IntertwineAlphaBlend", "IntertwineVideo640", "RandomAlphaBlendFilter", "RandomOrigFrame", "RectangleGlitch", "SquareSwap64x32", "VideoColorMap", 0};
|
||||
const char *ex[] = { "Desktop","MultiVideo","Solo", "Bars", "BilateralFilter", "BilateralFilterFade", "BoxFilter", "CurrentDesktopRect", "HorizontalTrailsInter", "IntertwineAlpha", "IntertwineAlphaBlend", "IntertwineVideo640", "RandomAlphaBlendFilter", "RandomOrigFrame", "RectangleGlitch", "SquareSwap64x32", "VideoColorMap", 0};
|
||||
|
||||
|
||||
std::string val = str.toStdString();
|
||||
|
||||
for(int i = 0; ex[i] != 0; ++i)
|
||||
if(str == ex[i])
|
||||
if(val.find(ex[i]) != std::string::npos)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user