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

Function hb_audio_encoder

libhb/work.c:394–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394hb_work_object_t* hb_audio_encoder(hb_handle_t *h, int codec)
395{
396 if (codec & HB_ACODEC_PASS_FLAG)
397 {
398 return hb_get_work(h, WORK_PASS);
399 }
400 switch (codec)
401 {
402 case HB_ACODEC_LAME: return hb_get_work(h, WORK_ENCAVCODEC_AUDIO);
403 case HB_ACODEC_VORBIS: return hb_get_work(h, WORK_ENCVORBIS);
404 case HB_ACODEC_CA_AAC: return hb_get_work(h, WORK_ENC_CA_AAC);
405 case HB_ACODEC_CA_HAAC: return hb_get_work(h, WORK_ENC_CA_HAAC);
406 default: break;
407 }
408 if (codec & HB_ACODEC_FF_MASK)
409 {
410 return hb_get_work(h, WORK_ENCAVCODEC_AUDIO);
411 }
412 return NULL;
413}
414
415/**
416 * Displays job parameters in the debug log.

Callers 1

do_jobFunction · 0.85

Calls 1

hb_get_workFunction · 0.85

Tested by

no test coverage detected