diff options
author | jstebbins <[email protected]> | 2010-10-08 18:55:03 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-08 18:55:03 +0000 |
commit | 0b489b411b69296262c74e02ec3bcf3eed38f7e3 (patch) | |
tree | a65956357de80bdaaf6588080ddf4e826ccfb63f /libhb/common.h | |
parent | 4947466a36cd72a238ea676c0c440ee19ae46bee (diff) |
add audio defaults and limits calculation to libhb
hb_get_audio_bitrate_limits()
Get the bitrate limits for a (codec,samplerate,mixdown) triplet
hb_get_best_audio_bitrate()
Given an input bitrate, sanitize it. Check low and high limits
and make sure it is in the set of allowed bitrates.
hb_get_default_audio_bitrate()
Get the default bitrate for a given (codec,samplerate,mixdown) triplet
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3578 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r-- | libhb/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h index fcb4d4d04..b21abb3b5 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -150,6 +150,10 @@ extern hb_mixdown_t hb_audio_mixdowns[]; extern int hb_audio_mixdowns_count; int hb_mixdown_get_mixdown_from_short_name( const char * short_name ); const char * hb_mixdown_get_short_name_from_mixdown( int amixdown ); +int hb_find_closest_audio_bitrate(int bitrate); +void hb_get_audio_bitrate_limits(uint32_t codec, int samplerate, int mixdown, int *low, int *high); +int hb_get_best_audio_bitrate( uint32_t codec, int bitrate, int samplerate, int mixdown); +int hb_get_default_audio_bitrate( uint32_t codec, int samplerate, int mixdown ); /****************************************************************************** * hb_job_t: settings to be filled by the UI |