diff options
author | maurj <[email protected]> | 2007-04-11 15:23:57 +0000 |
---|---|---|
committer | maurj <[email protected]> | 2007-04-11 15:23:57 +0000 |
commit | ddc7ac09960746920ae8e48ac6f38a61c9f56d47 (patch) | |
tree | 0ad40c6da4ff1ef22f33f6b6543171f346643029 /libhb/common.c | |
parent | 1ce785c8d342834c33ee09e63315c5997782f919 (diff) |
Added libhb and CLI support for Dolby Pro Logic II 5.0 matrix encoding. *NOT YET ADDED TO THE GUI*. Handbrake now uses a more general "audio mixdown" concept. For each audio track to be converted you specify a mixdown. These are defined in common.h.
This checkin only allows you to specify one mixdown for all tracks in the CLI, although everything is in place internally to specify a different mixdown per track. In the CLI, the "-6 --surround" option has been repurposed as a "-6 --mixdown" option, with a string parameter of mono/stereo/dpl1/dpl2/6ch.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@494 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index 560a839e6..d0dcef877 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -36,6 +36,15 @@ int hb_audio_bitrates_count = sizeof( hb_audio_bitrates ) / sizeof( hb_rate_t ); int hb_audio_bitrates_default = 8; /* 128 kbps */ +hb_mixdown_t hb_audio_mixdowns[] = +{ { "Mono", "HB_AMIXDOWN_MONO", HB_AMIXDOWN_MONO }, + { "Stereo", "HB_AMIXDOWN_STEREO", HB_AMIXDOWN_STEREO }, + { "Dolby Surround", "HB_AMIXDOWN_DOLBY", HB_AMIXDOWN_DOLBY }, + { "Dolby Pro Logic II", "HB_AMIXDOWN_DOLBYPLII", HB_AMIXDOWN_DOLBYPLII }, + { "6-channel discrete", "HB_AMIXDOWN_6CH", HB_AMIXDOWN_6CH } }; +int hb_audio_mixdowns_count = sizeof( hb_audio_mixdowns ) / + sizeof( hb_mixdown_t ); + /********************************************************************** * hb_reduce ********************************************************************** |