MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_audio_can_apply_drc

Function hb_audio_can_apply_drc

libhb/common.c:6256–6276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6254}
6255
6256int hb_audio_can_apply_drc(uint32_t codec, uint32_t codec_param, int encoder)
6257{
6258 if (encoder & HB_ACODEC_PASS_FLAG)
6259 {
6260 // can't apply DRC to passthru audio
6261 return 0;
6262 }
6263 else if (codec & HB_ACODEC_FF_MASK)
6264 {
6265 return (codec_param == AV_CODEC_ID_AC3 ||
6266 codec_param == AV_CODEC_ID_EAC3);
6267 }
6268 else if (codec == HB_ACODEC_AC3)
6269 {
6270 return 1;
6271 }
6272 else
6273 {
6274 return 0;
6275 }
6276}
6277
6278int hb_audio_can_apply_drc2(hb_handle_t *h, int title_idx, int audio_idx, int encoder)
6279{

Callers 4

hb_display_job_infoFunction · 0.85
hb_audio_can_apply_drc2Function · 0.85
decavcodecaInitFunction · 0.85
audio_depsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected