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

Function hb_title_init

libhb/common.c:4666–4694  ·  view source on GitHub ↗

* hb_title_init ********************************************************************** * *********************************************************************/

Source from the content-addressed store, hash-verified

4664 *
4665 *********************************************************************/
4666hb_title_t * hb_title_init( char * path, int index )
4667{
4668 hb_title_t * t;
4669
4670 t = calloc( sizeof( hb_title_t ), 1 );
4671
4672 t->index = index;
4673 t->playlist = -1;
4674 t->list_audio = hb_list_init();
4675 t->list_chapter = hb_list_init();
4676 t->list_subtitle = hb_list_init();
4677 t->list_attachment = hb_list_init();
4678 t->metadata = hb_metadata_init();
4679 t->path = strdup(path);
4680 // default to decoding mpeg2
4681 t->video_id = 0xE0;
4682 t->video_codec = WORK_DECAVCODECV;
4683 t->video_codec_param = AV_CODEC_ID_MPEG2VIDEO;
4684 t->video_timebase.num = 1;
4685 t->video_timebase.den = 90000;
4686 t->angle_count = 1;
4687 t->geometry.par.num = 0;
4688 t->geometry.par.den = 1;
4689 t->color_prim = HB_COLR_PRI_UNSET;
4690 t->color_transfer = HB_COLR_TRA_UNSET;
4691 t->color_matrix = HB_COLR_MAT_UNSET;
4692
4693 return t;
4694}
4695
4696/**********************************************************************
4697 * hb_title_close

Callers 6

hb_batch_title_scanFunction · 0.85
hb_dvdnav_title_scanFunction · 0.85
hb_dvdread_title_scanFunction · 0.85
ScanFuncFunction · 0.85
hb_bd_title_scanFunction · 0.85

Calls 2

hb_list_initFunction · 0.85
hb_metadata_initFunction · 0.85

Tested by

no test coverage detected