diff --git a/GUI/include/mainwindow.h b/GUI/include/mainwindow.h index 9a11d89a..95a2452f 100644 --- a/GUI/include/mainwindow.h +++ b/GUI/include/mainwindow.h @@ -152,6 +152,8 @@ private slots: void on_actionSet_FFmpeg_path_triggered(); + void on_actionSet_FFmpeg_path_hovered(); + void on_pushButtonClearText_clicked(); void on_spinBoxFontSize_valueChanged(int arg1); @@ -174,8 +176,6 @@ private slots: void on_pushButtonListGPUs_clicked(); - void on_spinBoxPlatformID_valueChanged(int arg1); - void on_pushButtonOutputPathOpen_clicked(); void on_pushButtonReleaseGPU_clicked(); @@ -207,9 +207,6 @@ private slots: Anime4KCPP::ACCreator acCreator; - std::vector OpenCLDevices; - int OpenCLPlatforms; - QHash languageSelector; QHash codecSelector; diff --git a/GUI/src/Anime4KCPP_GUI_fr_FR.ts b/GUI/src/Anime4KCPP_GUI_fr_FR.ts index 4d41c160..6664a428 100644 --- a/GUI/src/Anime4KCPP_GUI_fr_FR.ts +++ b/GUI/src/Anime4KCPP_GUI_fr_FR.ts @@ -267,8 +267,8 @@ - - + + image image @@ -294,8 +294,8 @@ - - + + video Vidéo @@ -586,7 +586,7 @@ - + Benchmark Performance Test @@ -873,7 +873,7 @@ - + About À propos de @@ -933,34 +933,34 @@ État - - + + Confirm Confirmer - + Do you really want to exit? Voulez-vous vraiment sortir? - - - - + + + + ready Prêt - - - - - - - - - + + + + + + + + + Error Erreur @@ -969,36 +969,36 @@ Seuls les noms de fichiers anglais sont pris en charge. - + Dir does not exists Le dossier n’existe pas. - + File type error, only image support Erreur de type de fichier, prise en charge de l’image uniquement - + Invalid url, please check your input Pour les URL non prises en charge, veuillez vérifier votre saisie. - + Error image format, please check your input Mauvais format d'image, veuillez vérifier votre saisie! - + CUDA is not supported Cuda n'est pas pris en charge - - - - - + + + + + Warning Warning @@ -1007,77 +1007,77 @@ Aucun FFmpeg trouvé. - + FFmpeg not found Aucun FFmpeg trouvé. - + done Fait - + error Erreur - - - - - - + + + + + + Notice Attention - + Web Video Entrée vidéo Web - + Please input the url of web video Veuillez entrer l'URL de la vidéo web. - + You are using GPU acceleration but still enabledpreprocessing or postprocessing, which is not GPU acceletation yet, and may slow down processing for GPU (usually still faster than CPU), close them? You are using GPU acceleration but still enablepreprocessing or postprocessing, which is not GPU acceletation yet,and may slow down processing for GPU(usually still faster than CPU), close them? Vous utilisez le mode d’accélération GPU, mais avez toujours le prétraitement ou le postprocessage activé, ce qui peut ralentir le traitement GPU (généralement encore plus rapide que le processeur), les désactiver? - - - - + + + + Chinese translation file Fichiers de traduction en chinois - - + + FFmpeg path Chemin FFmpeg - + Please input the FFmpeg path Veuillez saisir le chemin FFmpeg - + Log has been copied to the clipboard Journal copié dans le presse-papiers - + please select a folder Veuillez sélectionner un dossier - + Benchmark result: Résultats des tests de performance: @@ -1090,7 +1090,7 @@ L’accélération GPU pour ACNet n’est pas prise en charge. - + Do you really want to stop all tasks? Confirmer que toutes les missions sont suspendues ? @@ -1100,18 +1100,18 @@ Essayez-vous d’activer l’accélération GPU, est-ce encore une fonctionnalité expérimentale, vérifier la compatibilité et initialiser? - - + + Unsupport GPU acceleration in this platform L’accélération GPU n’est pas prise en charge sur cette plate-forme. - + Successfully release GPU Sortie réussie du GPU - + File does not exists Le fichier n’existe pas. @@ -1120,25 +1120,25 @@ Erreur de type de fichier, seules les images sont prises en charge - + File type error, you can add it manually Erreur de type de fichier, vous pouvez l'ajouter manuellement - + Processing list empty La liste de traitement est vide. - - + + pick files sélectionner des fichiers - + output directory Dossiers de sortie diff --git a/GUI/src/Anime4KCPP_GUI_ja_JP.ts b/GUI/src/Anime4KCPP_GUI_ja_JP.ts index 95306213..1fabf959 100644 --- a/GUI/src/Anime4KCPP_GUI_ja_JP.ts +++ b/GUI/src/Anime4KCPP_GUI_ja_JP.ts @@ -267,8 +267,8 @@ - - + + image 画像 @@ -294,8 +294,8 @@ - - + + video 動画 @@ -586,7 +586,7 @@ - + Benchmark 性能試験 @@ -867,7 +867,7 @@ - + About について @@ -929,34 +929,34 @@ ステータス - - + + Confirm 確認 - + Do you really want to exit? 終了を確認しますか? - - - - + + + + ready 準備 - - - - - - - - - + + + + + + + + + Error エラー @@ -965,36 +965,36 @@ 英語のファイル名のみがサポートされます。 - + Dir does not exists フォルダが存在しません。 - + File type error, only image support ファイルタイプエラー、画像サポートのみ - + Invalid url, please check your input サポートされていない URL については、入力内容を確認してください。 - + Error image format, please check your input 間違った画像形式は、あなたの入力を確認してください! - + CUDA is not supported Cudaはサポートされていません - - - - - + + + + + Warning 警告 @@ -1003,77 +1003,77 @@ FFmpeg が見つかりません - + FFmpeg not found FFmpeg が見つかりません - + done 完成 - + error エラー - - - - - - + + + + + + Notice 注意 - + Web Video インターネット動画入力 - + Please input the url of web video インターネット動画のURLを入力して下さい。 - + You are using GPU acceleration but still enabledpreprocessing or postprocessing, which is not GPU acceletation yet, and may slow down processing for GPU (usually still faster than CPU), close them? You are using GPU acceleration but still enablepreprocessing or postprocessing, which is not GPU acceletation yet,and may slow down processing for GPU(usually still faster than CPU), close them? GPU アクセラレーション モードを使用していますが、まだ前処理または後処理が有効になっているため、GPU 処理が遅くなる可能性があります (通常は CPU よりも高速です) はオフにしますか? - - - - + + + + Chinese translation file 中国語翻訳ファイル - - + + FFmpeg path FFmpeg パス - + Please input the FFmpeg path FFmpeg パスを入力してください。 - + Log has been copied to the clipboard クリップボードにコピーされたログ - + please select a folder フォルダを選択してください - + Benchmark result: 性能試験結果: @@ -1086,7 +1086,7 @@ ACNet の GPU アクセラレーションはサポートされていません。 - + Do you really want to stop all tasks? すべてのミッションが中止されたことを確認しますか? @@ -1096,18 +1096,18 @@ GPUアクセラレーションを有効にしようとしていますが、これはまだ実験的な機能ですか、互換性をチェックして初期化しますか? - - + + Unsupport GPU acceleration in this platform GPU アクセラレーションはこのプラットフォームではサポートされていません。 - + Successfully release GPU 成功した GPU リリース - + File does not exists ファイルが存在しません。 @@ -1116,25 +1116,25 @@ ファイルタイプエラー、画像のみサポート - + File type error, you can add it manually ファイルタイプのエラーが発生した場合、エンドコードを手動で追加することができます。 - + Processing list empty 処理リストが空です。 - - + + pick files ファイルを開く - + output directory 出力フォルダ diff --git a/GUI/src/Anime4KCPP_GUI_zh_CN.ts b/GUI/src/Anime4KCPP_GUI_zh_CN.ts index a2b3fd7f..c119a516 100644 --- a/GUI/src/Anime4KCPP_GUI_zh_CN.ts +++ b/GUI/src/Anime4KCPP_GUI_zh_CN.ts @@ -267,8 +267,8 @@ - - + + image 图像 @@ -294,8 +294,8 @@ - - + + video 视频 @@ -550,7 +550,7 @@ - + Benchmark 性能测试 @@ -867,7 +867,7 @@ - + About 关于 @@ -929,34 +929,34 @@ 状态 - - + + Confirm 确认 - + Do you really want to exit? 确认退出? - - - - + + + + ready 就绪 - - - - - - - - - + + + + + + + + + Error 错误 @@ -965,36 +965,36 @@ 仅支持英文文件名 - + Dir does not exists 文件夹不存在 - + File type error, only image support 文件类型错误,仅支持图像 - + Invalid url, please check your input 不支持的URL,请检查输入 - + Error image format, please check your input 错误的图像格式,请检查您的输入 - + CUDA is not supported 不支持CUDA - - - - - + + + + + Warning 警告 @@ -1003,77 +1003,77 @@ 未发现FFmpeg - + FFmpeg not found 未找到FFmpeg - + done 完成 - + error 出错 - - - - - - + + + + + + Notice 注意 - + Web Video 网络视频输入 - + Please input the url of web video 请输入网络视频的URL - + You are using GPU acceleration but still enabledpreprocessing or postprocessing, which is not GPU acceletation yet, and may slow down processing for GPU (usually still faster than CPU), close them? You are using GPU acceleration but still enablepreprocessing or postprocessing, which is not GPU acceletation yet,and may slow down processing for GPU(usually still faster than CPU), close them? 您正在使用GPU加速模式,但依然启用了预处理或者后处理,这可能会拖慢GPU的处理速度(通常依然快于CPU),关闭他们吗? - - - - + + + + Chinese translation file 中文翻译文件 - - + + FFmpeg path FFmpeg路径 - + Please input the FFmpeg path 请输入FFmpeg路径 - + Log has been copied to the clipboard 日志已拷贝至剪切板 - + please select a folder 请选择一个文件夹 - + Benchmark result: 性能测试结果: @@ -1086,7 +1086,7 @@ 不支持将GPU加速用于ACNet - + Do you really want to stop all tasks? 确认停止所有任务? @@ -1096,18 +1096,18 @@ 您正在尝试启用GPU加速,这还是一个实验性功能,检查兼容性并初始化吗? - - + + Unsupport GPU acceleration in this platform 本平台不支持GPU加速 - + Successfully release GPU 成功释放GPU - + File does not exists 文件不存在 @@ -1116,25 +1116,25 @@ 文件类型错误,仅支持图片 - + File type error, you can add it manually 文件类型错误,可手动添加后缀 - + Processing list empty 处理列表为空 - - + + pick files 打开文件 - + output directory 输出文件夹 diff --git a/GUI/src/Anime4KCPP_GUI_zh_TW.ts b/GUI/src/Anime4KCPP_GUI_zh_TW.ts index a058bae8..5b01a1c2 100644 --- a/GUI/src/Anime4KCPP_GUI_zh_TW.ts +++ b/GUI/src/Anime4KCPP_GUI_zh_TW.ts @@ -267,8 +267,8 @@ - - + + image 圖像 @@ -294,8 +294,8 @@ - - + + video 視頻 @@ -586,7 +586,7 @@ - + Benchmark 性能測試 @@ -867,7 +867,7 @@ - + About 關於 @@ -929,34 +929,34 @@ 狀態 - - + + Confirm 確認 - + Do you really want to exit? 確認退出? - - - - + + + + ready 就緒 - - - - - - - - - + + + + + + + + + Error 錯誤 @@ -965,36 +965,36 @@ 僅支持英文檔案名 - + Dir does not exists 資料夾不存在 - + File type error, only image support 檔案類型錯誤,僅支援圖像 - + Invalid url, please check your input 不支援的URL,請檢查輸入 - + Error image format, please check your input 錯誤的圖像格式,請檢查您的輸入 - + CUDA is not supported 不支持CUDA - - - - - + + + + + Warning 警告 @@ -1003,77 +1003,77 @@ 未發現FFmpeg - + FFmpeg not found 未找到FFmpeg - + done 完成 - + error 出錯 - - - - - - + + + + + + Notice 注意 - + Web Video 網路視頻輸入 - + Please input the url of web video 請輸入網路視頻的URL - + You are using GPU acceleration but still enabledpreprocessing or postprocessing, which is not GPU acceletation yet, and may slow down processing for GPU (usually still faster than CPU), close them? You are using GPU acceleration but still enablepreprocessing or postprocessing, which is not GPU acceletation yet,and may slow down processing for GPU(usually still faster than CPU), close them? 您正在使用GPU加速模式,但依然啟用了預處理或者後處理,這可能會拖慢GPU的處理速度(通常依然快於CPU),關閉他們嗎? - - - - + + + + Chinese translation file 中文翻譯檔 - - + + FFmpeg path FFmpeg路徑 - + Please input the FFmpeg path 請輸入FFmpeg路徑 - + Log has been copied to the clipboard 日誌已拷貝至剪切板 - + please select a folder 請選擇一個資料夾 - + Benchmark result: 性能測試結果: @@ -1086,7 +1086,7 @@ 不支援將GPU加速用於ACNet - + Do you really want to stop all tasks? 確認停止所有任務? @@ -1096,18 +1096,18 @@ 您正在嘗試啟用GPU加速,這還是一個實驗性功能,檢查相容性並初始化嗎? - - + + Unsupport GPU acceleration in this platform 本平臺不支援GPU加速 - + Successfully release GPU 成功釋放GPU - + File does not exists 文件不存在 @@ -1116,25 +1116,25 @@ 檔案類型錯誤,僅支援圖片 - + File type error, you can add it manually 檔案類型錯誤,可手動添加尾碼 - + Processing list empty 處理列表為空 - - + + pick files 打開文件 - + output directory 輸出資料夾 diff --git a/GUI/src/mainwindow.cpp b/GUI/src/mainwindow.cpp index 799d679d..c1fcd162 100644 --- a/GUI/src/mainwindow.cpp +++ b/GUI/src/mainwindow.cpp @@ -81,7 +81,6 @@ MainWindow::MainWindow(QWidget* parent) ui->checkBoxHDN->setEnabled(false); ui->spinBoxHDNLevel->setEnabled(false); } - OpenCLPlatforms = 0; //stop flag stop = false; pause = ProcessingState::NORMAL; @@ -1482,6 +1481,11 @@ void MainWindow::on_actionSet_FFmpeg_path_triggered() } +void MainWindow::on_actionSet_FFmpeg_path_hovered() +{ + ui->actionSet_FFmpeg_path->setStatusTip("FFmpeg: " + ffmpegPath); +} + void MainWindow::on_pushButtonClearText_clicked() { ui->textBrowserInfoOut->clear(); @@ -1920,8 +1924,19 @@ void MainWindow::on_actionBenchmark_triggered() void MainWindow::on_pushButtonListGPUs_clicked() { - Anime4KCPP::OpenCL::GPUList ret = Anime4KCPP::OpenCL::listGPUs(); - if (ret.platforms == 0) + Anime4KCPP::OpenCL::GPUList openclGPUList = Anime4KCPP::OpenCL::listGPUs(); + + bool flag = openclGPUList.platforms == 0; + + std::string displayInfo ="OpenCL:\n" + openclGPUList(); + +#ifdef ENABLE_CUDA + Anime4KCPP::Cuda::GPUList cudaGPUList = Anime4KCPP::Cuda::listGPUs(); + flag = flag && (cudaGPUList.devices == 0); + displayInfo += "\nCUDA:\n" + cudaGPUList(); +#endif + + if (flag) { QMessageBox::warning(this, tr("Warning"), @@ -1929,19 +1944,11 @@ void MainWindow::on_pushButtonListGPUs_clicked() QMessageBox::Ok); return; } + QMessageBox::information(this, tr("Notice"), - QString::fromStdString(ret()), + QString::fromStdString(displayInfo), QMessageBox::Ok); - OpenCLPlatforms = ret.platforms; - OpenCLDevices = ret.devices; - ui->spinBoxPlatformID->setRange(0, ret.platforms - 1); -} - -void MainWindow::on_spinBoxPlatformID_valueChanged(int value) -{ - if (value < int(OpenCLDevices.size())) - ui->spinBoxDeviceID->setRange(0, OpenCLDevices[value] - 1); } void MainWindow::on_pushButtonOutputPathOpen_clicked()