Skip to content

Commit 11b6113

Browse files
author
Clement Champetier
committed
Profiles: update existing profiles
* Use const name in Profile class. * Add avProfileFrameRate for video profile.
1 parent 232755c commit 11b6113

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

src/AvTranscoder/Profiles/DNxHD.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,31 @@ void loadDNxHD( Profile::ProfilesDesc& profiles )
1010
dnxhd120[ Profile::avProfileIdentificator ] = "dnxhd120";
1111
dnxhd120[ Profile::avProfileIdentificatorHuman ] = "DNxHD 120";
1212
dnxhd120[ Profile::avProfileType ] = Profile::avProfileTypeVideo;
13-
dnxhd120[ "codec" ] = "dnxhd";
13+
dnxhd120[ Profile::avProfileCodec ] = "dnxhd";
1414
dnxhd120[ "b" ] = "120000000";
15-
dnxhd120[ "pix_fmt" ] = "yuv422p";
15+
dnxhd120[ Profile::avProfilePixelFormat ] = "yuv422p";
1616
dnxhd120[ "g" ] = "1";
17+
dnxhd120[ Profile::avProfileFrameRate ] = "25";
1718

1819
Profile::ProfileDesc dnxhd185;
1920
dnxhd185[ Profile::avProfileIdentificator ] = "dnxhd185";
2021
dnxhd185[ Profile::avProfileIdentificatorHuman ] = "DNxHD 185";
2122
dnxhd185[ Profile::avProfileType ] = Profile::avProfileTypeVideo;
22-
dnxhd185[ "codec" ] = "dnxhd";
23+
dnxhd185[ Profile::avProfileCodec ] = "dnxhd";
2324
dnxhd185[ "b" ] = "185000000";
24-
dnxhd185[ "pix_fmt" ] = "yuv422p";
25+
dnxhd185[ Profile::avProfilePixelFormat ] = "yuv422p";
2526
dnxhd185[ "g" ] = "1";
27+
dnxhd185[ Profile::avProfileFrameRate ] = "25";
2628

2729
Profile::ProfileDesc dnxhd185x;
2830
dnxhd185x[ Profile::avProfileIdentificator ] = "dnxhd185x";
2931
dnxhd185x[ Profile::avProfileIdentificatorHuman ] = "DNxHD 185 X";
3032
dnxhd185x[ Profile::avProfileType ] = Profile::avProfileTypeVideo;
31-
dnxhd185x[ "codec" ] = "dnxhd";
33+
dnxhd185x[ Profile::avProfileCodec ] = "dnxhd";
3234
dnxhd185x[ "b" ] = "185000000";
33-
dnxhd185x[ "pix_fmt" ] = "yuv422p10";
35+
dnxhd185x[ Profile::avProfilePixelFormat ] = "yuv422p10";
3436
dnxhd185x[ "g" ] = "1";
37+
dnxhd185x[ Profile::avProfileFrameRate ] = "25";
3538

3639
profiles.push_back( dnxhd120 );
3740
profiles.push_back( dnxhd185 );

src/AvTranscoder/Profiles/Wave.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ void loadWave( Profile::ProfilesDesc& profiles )
1212
wave24b48kMono[ Profile::avProfileIdentificatorHuman ] = "Wave 24bits 48kHz mono";
1313
wave24b48kMono[ Profile::avProfileType ] = Profile::avProfileTypeAudio;
1414

15-
wave24b48kMono[ "codec" ] = "pcm_s24le";
16-
wave24b48kMono[ "sample_fmt" ] = "s32";
17-
wave24b48kMono[ "sample_rate" ] = "48000";
18-
wave24b48kMono[ "channels" ] = "1";
15+
wave24b48kMono[ Profile::avProfileCodec ] = "pcm_s24le";
16+
wave24b48kMono[ Profile::avProfileSampleFormat ] = "s32";
17+
wave24b48kMono[ Profile::avProfileSampleRate ] = "48000";
18+
wave24b48kMono[ Profile::avProfileChannel ] = "1";
1919

2020
Profile::ProfileDesc wave16b48kMono;
2121

2222
wave16b48kMono[ Profile::avProfileIdentificator ] = "wave16b48kMono";
2323
wave16b48kMono[ Profile::avProfileIdentificatorHuman ] = "Wave 16bits 48kHz mono";
2424
wave16b48kMono[ Profile::avProfileType ] = Profile::avProfileTypeAudio;
2525

26-
wave16b48kMono[ "codec" ] = "pcm_s16le";
27-
wave16b48kMono[ "sample_fmt" ] = "s16";
28-
wave16b48kMono[ "sample_rate" ] = "48000";
29-
wave16b48kMono[ "channels" ] = "1";
26+
wave16b48kMono[ Profile::avProfileCodec ] = "pcm_s16le";
27+
wave16b48kMono[ Profile::avProfileSampleFormat ] = "s16";
28+
wave16b48kMono[ Profile::avProfileSampleRate ] = "48000";
29+
wave16b48kMono[ Profile::avProfileChannel ] = "1";
3030

3131
profiles.push_back( wave24b48kMono );
3232
profiles.push_back( wave16b48kMono );

src/AvTranscoder/Profiles/XdCamHd422.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void loadXdCamHD422( Profile::ProfilesDesc& profiles )
1313
xdCamHd422[ Profile::avProfileType ] = Profile::avProfileTypeVideo;
1414

1515

16-
xdCamHd422[ "codec" ] = "mpeg2video";
16+
xdCamHd422[ Profile::avProfileCodec ] = "mpeg2video";
1717
xdCamHd422[ "profile" ] = "0"; // FF_PROFILE_MPEG2_422
1818
xdCamHd422[ "level" ] = "2";
1919

@@ -23,8 +23,9 @@ void loadXdCamHD422( Profile::ProfilesDesc& profiles )
2323
xdCamHd422[ "qmin" ] = "2";
2424
xdCamHd422[ "qmax" ] = "12";
2525
xdCamHd422[ "dc" ] = "2"; // 10 - 8 = 2
26+
xdCamHd422[ Profile::avProfileFrameRate ] = "25";
2627

27-
xdCamHd422[ "pix_fmt" ] = "yuv422p";
28+
xdCamHd422[ Profile::avProfilePixelFormat ] = "yuv422p";
2829

2930
// color informations are not used in FFmpeg/LibAV for Mpeg2
3031
xdCamHd422[ "colorspace" ] = "1"; // AVCOL_SPC_BT709

0 commit comments

Comments
 (0)