add audio defaults and limits calculation to libhb
authorjstebbins <jstebbins.hb@gmail.com>
Fri, 8 Oct 2010 18:55:03 +0000 (18:55 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Fri, 8 Oct 2010 18:55:03 +0000 (18:55 +0000)
commit0b489b411b69296262c74e02ec3bcf3eed38f7e3
treea65956357de80bdaaf6588080ddf4e826ccfb63f
parent4947466a36cd72a238ea676c0c440ee19ae46bee
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
gtk/src/audiohandler.c
gtk/src/hb-backend.c
gtk/src/hb-backend.h
libhb/common.c
libhb/common.h