Skip to content

Commit 03d771b

Browse files
adding type on presets
1 parent 2aaa176 commit 03d771b

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

src/AvTranscoder/Profile.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ namespace avtranscoder
99

1010
const std::string Profile::avProfilIdentificator( "avProfile" );
1111
const std::string Profile::avProfilIdentificatorHuman( "avProfileLong" );
12+
const std::string Profile::avProfilType( "avProfileType" );
13+
const std::string Profile::avProfilTypeVideo( "avProfileTypeVideo" );
14+
const std::string Profile::avProfilTypeAudio( "avProfileTypeAudio" );
1215

1316

1417
Profile::Profile()

src/AvTranscoder/Profile.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class Profile
1414
public:
1515
static const std::string avProfilIdentificator;
1616
static const std::string avProfilIdentificatorHuman;
17+
static const std::string avProfilType;
18+
19+
static const std::string avProfilTypeVideo;
20+
static const std::string avProfilTypeAudio;
1721

1822
// typedef std::pair< std::string, std::string > KeyDesc;
1923
typedef std::map< std::string, std::string > ProfileDesc;

src/AvTranscoder/Profiles/DNxHD.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ void loadDNxHD( Profile::ProfilesDesc& profiles )
99
Profile::ProfileDesc dnxhd120;
1010
dnxhd120[ Profile::avProfilIdentificator ] = "dnxhd120";
1111
dnxhd120[ Profile::avProfilIdentificatorHuman ] = "DNxHD 120";
12+
dnxhd120[ Profile::avProfilType ] = Profile::avProfilTypeVideo;
1213
dnxhd120[ "codec" ] = "dnxhd";
1314
dnxhd120[ "b" ] = "120000000";
1415
dnxhd120[ "pix_fmt" ] = "yuv422p";
@@ -17,6 +18,7 @@ void loadDNxHD( Profile::ProfilesDesc& profiles )
1718
Profile::ProfileDesc dnxhd185;
1819
dnxhd185[ Profile::avProfilIdentificator ] = "dnxhd185";
1920
dnxhd185[ Profile::avProfilIdentificatorHuman ] = "DNxHD 185";
21+
dnxhd185[ Profile::avProfilType ] = Profile::avProfilTypeVideo;
2022
dnxhd185[ "codec" ] = "dnxhd";
2123
dnxhd185[ "b" ] = "185000000";
2224
dnxhd185[ "pix_fmt" ] = "yuv422p";
@@ -25,6 +27,7 @@ void loadDNxHD( Profile::ProfilesDesc& profiles )
2527
Profile::ProfileDesc dnxhd185x;
2628
dnxhd185x[ Profile::avProfilIdentificator ] = "dnxhd185x";
2729
dnxhd185x[ Profile::avProfilIdentificatorHuman ] = "DNxHD 185 X";
30+
dnxhd185x[ Profile::avProfilType ] = Profile::avProfilTypeVideo;
2831
dnxhd185x[ "codec" ] = "dnxhd";
2932
dnxhd185x[ "b" ] = "185000000";
3033
dnxhd185x[ "pix_fmt" ] = "yuv422p10";

src/AvTranscoder/Profiles/Wave.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ void loadWave( Profile::ProfilesDesc& profiles )
1010

1111
wave24bits[ Profile::avProfilIdentificator ] = "wave24bits";
1212
wave24bits[ Profile::avProfilIdentificatorHuman ] = "Wave 24bits";
13+
wave24bits[ Profile::avProfilType ] = Profile::avProfilTypeAudio;
1314

1415
wave24bits[ "codec" ] = "pcm_s24le";
1516
wave24bits[ "sample_fmt" ] = "s32";
@@ -18,6 +19,7 @@ void loadWave( Profile::ProfilesDesc& profiles )
1819

1920
wave16bits[ Profile::avProfilIdentificator ] = "wave16bits";
2021
wave16bits[ Profile::avProfilIdentificatorHuman ] = "Wave 16bits";
22+
wave16bits[ Profile::avProfilType ] = Profile::avProfilTypeAudio;
2123

2224
wave16bits[ "codec" ] = "pcm_s16le";
2325
wave16bits[ "sample_fmt" ] = "s16";

src/AvTranscoder/Profiles/XdCamHd422.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ void loadXdCamHD422( Profile::ProfilesDesc& profiles )
1010

1111
xdCamHd422[ Profile::avProfilIdentificator ] = "xdcamhd422";
1212
xdCamHd422[ Profile::avProfilIdentificatorHuman ] = "XdCamHD 422";
13+
xdCamHd422[ Profile::avProfilType ] = Profile::avProfilTypeVideo;
1314

1415

1516
xdCamHd422[ "codec" ] = "mpeg2video";

0 commit comments

Comments
 (0)