Skip to content

Commit 854e3af

Browse files
committed
Update core
1 parent 0b9c915 commit 854e3af

27 files changed

+358
-351
lines changed

CLI/src/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,7 @@ std::mutex SafeLoger::mtx;
272272

273273
int main(int argc, char* argv[])
274274
{
275-
unsigned int currentThreads = std::thread::hardware_concurrency();
276-
if (currentThreads < 1)
277-
currentThreads = 1;
275+
const unsigned int currentThreads = Anime4KCPP::Utils::supportedThreads();
278276

279277
Config config;
280278
auto& opt = config.getOptParser();

GUI/src/Anime4KCPP_GUI_fr_FR.ts

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@
224224
</message>
225225
<message>
226226
<location filename="mainwindow.ui" line="368"/>
227-
<location filename="mainwindow.cpp" line="916"/>
228-
<location filename="mainwindow.cpp" line="1218"/>
227+
<location filename="mainwindow.cpp" line="914"/>
228+
<location filename="mainwindow.cpp" line="1216"/>
229229
<source>image</source>
230230
<translation>image</translation>
231231
</message>
@@ -247,8 +247,8 @@
247247
</message>
248248
<message>
249249
<location filename="mainwindow.ui" line="410"/>
250-
<location filename="mainwindow.cpp" line="917"/>
251-
<location filename="mainwindow.cpp" line="1219"/>
250+
<location filename="mainwindow.cpp" line="915"/>
251+
<location filename="mainwindow.cpp" line="1217"/>
252252
<source>video</source>
253253
<translation>Vidéo</translation>
254254
</message>
@@ -523,7 +523,7 @@
523523
</message>
524524
<message>
525525
<location filename="mainwindow.ui" line="1247"/>
526-
<location filename="mainwindow.cpp" line="2071"/>
526+
<location filename="mainwindow.cpp" line="2069"/>
527527
<source>Benchmark</source>
528528
<translation>Performance Test</translation>
529529
</message>
@@ -756,7 +756,7 @@
756756
</message>
757757
<message>
758758
<location filename="mainwindow.ui" line="1211"/>
759-
<location filename="mainwindow.cpp" line="1492"/>
759+
<location filename="mainwindow.cpp" line="1490"/>
760760
<source>About</source>
761761
<translation>À propos de</translation>
762762
</message>
@@ -783,7 +783,7 @@
783783
<message>
784784
<location filename="mainwindow.cpp" line="119"/>
785785
<location filename="mainwindow.cpp" line="133"/>
786-
<location filename="mainwindow.cpp" line="2183"/>
786+
<location filename="mainwindow.cpp" line="2181"/>
787787
<source>Confirm</source>
788788
<translation>Confirmer</translation>
789789
</message>
@@ -804,177 +804,177 @@
804804
<translation>Prêt</translation>
805805
</message>
806806
<message>
807-
<location filename="mainwindow.cpp" line="505"/>
808-
<location filename="mainwindow.cpp" line="511"/>
809-
<location filename="mainwindow.cpp" line="517"/>
810-
<location filename="mainwindow.cpp" line="523"/>
811-
<location filename="mainwindow.cpp" line="529"/>
812-
<location filename="mainwindow.cpp" line="535"/>
813-
<location filename="mainwindow.cpp" line="541"/>
814-
<location filename="mainwindow.cpp" line="547"/>
815-
<location filename="mainwindow.cpp" line="553"/>
816-
<location filename="mainwindow.cpp" line="563"/>
807+
<location filename="mainwindow.cpp" line="503"/>
808+
<location filename="mainwindow.cpp" line="509"/>
809+
<location filename="mainwindow.cpp" line="515"/>
810+
<location filename="mainwindow.cpp" line="521"/>
811+
<location filename="mainwindow.cpp" line="527"/>
812+
<location filename="mainwindow.cpp" line="533"/>
813+
<location filename="mainwindow.cpp" line="539"/>
814+
<location filename="mainwindow.cpp" line="545"/>
815+
<location filename="mainwindow.cpp" line="551"/>
816+
<location filename="mainwindow.cpp" line="561"/>
817817
<source>Error</source>
818818
<translation>Erreur</translation>
819819
</message>
820820
<message>
821-
<location filename="mainwindow.cpp" line="518"/>
821+
<location filename="mainwindow.cpp" line="516"/>
822822
<source>Dir does not exists</source>
823823
<translation>Le dossier n’existe pas</translation>
824824
</message>
825825
<message>
826-
<location filename="mainwindow.cpp" line="524"/>
826+
<location filename="mainwindow.cpp" line="522"/>
827827
<source>File type error, only image support</source>
828828
<translation>Erreur de type de fichier, prise en charge de l’image uniquement</translation>
829829
</message>
830830
<message>
831-
<location filename="mainwindow.cpp" line="536"/>
831+
<location filename="mainwindow.cpp" line="534"/>
832832
<source>Invalid url, please check your input</source>
833833
<translation>Pour les URL non prises en charge, veuillez vérifier votre saisie</translation>
834834
</message>
835835
<message>
836-
<location filename="mainwindow.cpp" line="542"/>
836+
<location filename="mainwindow.cpp" line="540"/>
837837
<source>Error image format, please check your input</source>
838838
<translation>Mauvais format d&apos;image, veuillez vérifier votre saisie</translation>
839839
</message>
840840
<message>
841-
<location filename="mainwindow.cpp" line="548"/>
841+
<location filename="mainwindow.cpp" line="546"/>
842842
<source>OpenCL is not supported</source>
843843
<translation>OpenCL n&apos;est pas pris en charge</translation>
844844
</message>
845845
<message>
846-
<location filename="mainwindow.cpp" line="554"/>
846+
<location filename="mainwindow.cpp" line="552"/>
847847
<source>CUDA is not supported</source>
848848
<translation>CUDA n&apos;est pas pris en charge</translation>
849849
</message>
850850
<message>
851-
<location filename="mainwindow.cpp" line="604"/>
852-
<location filename="mainwindow.cpp" line="1971"/>
853-
<location filename="mainwindow.cpp" line="1987"/>
854-
<location filename="mainwindow.cpp" line="2013"/>
855-
<location filename="mainwindow.cpp" line="2096"/>
851+
<location filename="mainwindow.cpp" line="602"/>
852+
<location filename="mainwindow.cpp" line="1969"/>
853+
<location filename="mainwindow.cpp" line="1985"/>
854+
<location filename="mainwindow.cpp" line="2011"/>
855+
<location filename="mainwindow.cpp" line="2094"/>
856856
<source>Warning</source>
857857
<translation>Warning</translation>
858858
</message>
859859
<message>
860-
<location filename="mainwindow.cpp" line="1972"/>
860+
<location filename="mainwindow.cpp" line="1970"/>
861861
<source>Failed to initialize GPU: </source>
862862
<translation>Échec de l&apos;initialisation du GPU : </translation>
863863
</message>
864864
<message>
865-
<location filename="mainwindow.cpp" line="2072"/>
865+
<location filename="mainwindow.cpp" line="2070"/>
866866
<source>Benchmark test under 8-bit integer input and serial processing</source>
867867
<translation>Test de référence sous entrée d&apos;entiers 8 bits et traitement série</translation>
868868
</message>
869869
<message>
870-
<location filename="mainwindow.cpp" line="604"/>
870+
<location filename="mainwindow.cpp" line="602"/>
871871
<source>FFmpeg not found</source>
872872
<translation>Aucun FFmpeg trouvé</translation>
873873
</message>
874874
<message>
875-
<location filename="mainwindow.cpp" line="847"/>
875+
<location filename="mainwindow.cpp" line="845"/>
876876
<source>done</source>
877877
<translation>Fait</translation>
878878
</message>
879879
<message>
880-
<location filename="mainwindow.cpp" line="857"/>
880+
<location filename="mainwindow.cpp" line="855"/>
881881
<source>error</source>
882882
<translation>Erreur</translation>
883883
</message>
884884
<message>
885-
<location filename="mainwindow.cpp" line="872"/>
886-
<location filename="mainwindow.cpp" line="1651"/>
887-
<location filename="mainwindow.cpp" line="1997"/>
888-
<location filename="mainwindow.cpp" line="2103"/>
889-
<location filename="mainwindow.cpp" line="2128"/>
885+
<location filename="mainwindow.cpp" line="870"/>
886+
<location filename="mainwindow.cpp" line="1649"/>
887+
<location filename="mainwindow.cpp" line="1995"/>
888+
<location filename="mainwindow.cpp" line="2101"/>
889+
<location filename="mainwindow.cpp" line="2126"/>
890890
<source>Notice</source>
891891
<translation>Attention</translation>
892892
</message>
893893
<message>
894-
<location filename="mainwindow.cpp" line="875"/>
894+
<location filename="mainwindow.cpp" line="873"/>
895895
<source>Processing stopped</source>
896896
<translation>Traitement arrêté</translation>
897897
</message>
898898
<message>
899-
<location filename="mainwindow.cpp" line="946"/>
899+
<location filename="mainwindow.cpp" line="944"/>
900900
<source>Web Video</source>
901901
<translation>Entrée vidéo Web</translation>
902902
</message>
903903
<message>
904-
<location filename="mainwindow.cpp" line="947"/>
904+
<location filename="mainwindow.cpp" line="945"/>
905905
<source>Please input the url of web video</source>
906906
<translation>Veuillez entrer l&apos;URL de la vidéo web</translation>
907907
</message>
908908
<message>
909-
<location filename="mainwindow.cpp" line="1505"/>
910-
<location filename="mainwindow.cpp" line="1518"/>
911-
<location filename="mainwindow.cpp" line="1531"/>
912-
<location filename="mainwindow.cpp" line="1544"/>
909+
<location filename="mainwindow.cpp" line="1503"/>
910+
<location filename="mainwindow.cpp" line="1516"/>
911+
<location filename="mainwindow.cpp" line="1529"/>
912+
<location filename="mainwindow.cpp" line="1542"/>
913913
<source>Translation file</source>
914914
<oldsource>Chinese translation file</oldsource>
915915
<translation>fichier de traduction français</translation>
916916
</message>
917917
<message>
918-
<location filename="mainwindow.cpp" line="1562"/>
919-
<location filename="mainwindow.cpp" line="1565"/>
918+
<location filename="mainwindow.cpp" line="1560"/>
919+
<location filename="mainwindow.cpp" line="1563"/>
920920
<source>FFmpeg path</source>
921921
<translation>Chemin FFmpeg</translation>
922922
</message>
923923
<message>
924-
<location filename="mainwindow.cpp" line="1566"/>
924+
<location filename="mainwindow.cpp" line="1564"/>
925925
<source>Please input the FFmpeg path</source>
926926
<translation>Veuillez saisir le chemin FFmpeg</translation>
927927
</message>
928928
<message>
929-
<location filename="mainwindow.cpp" line="1652"/>
929+
<location filename="mainwindow.cpp" line="1650"/>
930930
<source>Log has been copied to the clipboard</source>
931931
<translation>Journal copié dans le presse-papiers</translation>
932932
</message>
933933
<message>
934-
<location filename="mainwindow.cpp" line="1881"/>
934+
<location filename="mainwindow.cpp" line="1879"/>
935935
<source>please select a folder</source>
936936
<translation>Veuillez sélectionner un dossier</translation>
937937
</message>
938938
<message>
939-
<location filename="mainwindow.cpp" line="2184"/>
939+
<location filename="mainwindow.cpp" line="2182"/>
940940
<source>Do you really want to stop all tasks?</source>
941941
<translation>Confirmer que toutes les missions sont suspendues ?</translation>
942942
</message>
943943
<message>
944-
<location filename="mainwindow.cpp" line="2014"/>
945-
<location filename="mainwindow.cpp" line="2097"/>
944+
<location filename="mainwindow.cpp" line="2012"/>
945+
<location filename="mainwindow.cpp" line="2095"/>
946946
<source>Unsupport GPU acceleration in this platform</source>
947947
<translation>L’accélération GPU n’est pas prise en charge sur cette plate-forme</translation>
948948
</message>
949949
<message>
950-
<location filename="mainwindow.cpp" line="2129"/>
950+
<location filename="mainwindow.cpp" line="2127"/>
951951
<source>Successfully release GPU</source>
952952
<translation>Sortie réussie du GPU</translation>
953953
</message>
954954
<message>
955-
<location filename="mainwindow.cpp" line="512"/>
955+
<location filename="mainwindow.cpp" line="510"/>
956956
<source>File does not exists</source>
957957
<translation>Le fichier n’existe pas</translation>
958958
</message>
959959
<message>
960-
<location filename="mainwindow.cpp" line="530"/>
960+
<location filename="mainwindow.cpp" line="528"/>
961961
<source>File type error, you can add it manually</source>
962962
<translation>Erreur de type de fichier, vous pouvez l&apos;ajouter manuellement</translation>
963963
</message>
964964
<message>
965-
<location filename="mainwindow.cpp" line="506"/>
965+
<location filename="mainwindow.cpp" line="504"/>
966966
<source>Processing list empty</source>
967967
<translation>La liste de traitement est vide</translation>
968968
</message>
969969
<message>
970970
<location filename="mainwindow.ui" line="49"/>
971-
<location filename="mainwindow.cpp" line="915"/>
972-
<location filename="mainwindow.cpp" line="1217"/>
971+
<location filename="mainwindow.cpp" line="913"/>
972+
<location filename="mainwindow.cpp" line="1215"/>
973973
<source>pick files</source>
974974
<translation>sélectionner des fichiers</translation>
975975
</message>
976976
<message>
977-
<location filename="mainwindow.cpp" line="936"/>
977+
<location filename="mainwindow.cpp" line="934"/>
978978
<source>output directory</source>
979979
<translation>Dossiers de sortie</translation>
980980
</message>

0 commit comments

Comments
 (0)