OSDN Git Service

add audio defaults and limits calculation to libhb
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 8 Oct 2010 18:55:03 +0000 (18:55 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 8 Oct 2010 18:55:03 +0000 (18:55 +0000)
commit31600400837e627f73e79f99ea1ba52ea8a3d048
treea65956357de80bdaaf6588080ddf4e826ccfb63f
parent1a797a5bedab4dcfc58eff25ccac9eccb913444b
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://localhost/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