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

Function hb_subtitle_encoder

libhb/work.c:371–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371hb_work_object_t* hb_subtitle_encoder(hb_handle_t *h, int codec)
372{
373 hb_work_object_t *w = NULL;
374
375 switch (codec)
376 {
377 case HB_SCODEC_PASS:
378 w = hb_get_work(h, WORK_PASS);
379 break;
380 case HB_SCODEC_TX3G:
381 w = hb_get_work(h, WORK_ENCTX3GSUB);
382 break;
383 case HB_SCODEC_SRT:
384 w = hb_get_work(h, WORK_ENCAVSUB);
385 w->codec_param = AV_CODEC_ID_SUBRIP;
386 break;
387 default:
388 break;
389 }
390
391 return w;
392}
393
394hb_work_object_t* hb_audio_encoder(hb_handle_t *h, int codec)
395{

Callers 1

do_jobFunction · 0.85

Calls 1

hb_get_workFunction · 0.85

Tested by

no test coverage detected