Skip to content

Commit 59ddae6

Browse files
committed
Test encoding configurer method
1 parent db2f53f commit 59ddae6

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

include/ffmpeg-coder/frontend_funcs.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void settings() {
5555
QC_Settings *qc = new QC_Settings();
5656

5757
qc->showOptions();
58-
58+
qc->default_encoding_configurer();
5959
delete qc;
6060
}
6161

include/ffmpeg-coder/quickConvertSettings.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class QC_Settings{
1818
std::string getDefault_encoding();
1919
// Methods
2020
void showOptions();
21-
21+
void default_encoding_configurer();
22+
void default_crf_configurer();
2223
};
2324

2425
#endif

src/quickConvertSettings.cpp

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

2+
#include "ffmpeg_coder.hpp"
23
#include <iostream>
34
#include <fstream>
45
#include <vector>
5-
#include "quickConvertSettings.hpp"
6+
// #include "quickConvertSettings.hpp"
67

78

89
void QC_Settings::set_setted_crf(){
@@ -51,5 +52,22 @@ void QC_Settings::showOptions(){
5152
}
5253

5354
void QC_Settings::default_encoding_configurer(){
55+
std::string givenEncoding;
56+
int selectedOption;
5457

58+
// Showing the current default encoding
59+
std::cout<< "The current default is: "<< default_encoding;
60+
std::cout<<std::endl;
61+
std::cout<<std::endl;
62+
63+
// Taking new encoding from user
64+
ffmpeg *fmpg = new ffmpeg();
65+
fmpg->load_encodes();
66+
fmpg->show_encodes();
67+
selectedOption = fmpg->select_encodes();
68+
69+
if (selectedOption == 1)
70+
std::cout<<"hey";
71+
else
72+
std::cout<<"HOO";
5573
}

0 commit comments

Comments
 (0)