* hb_title_init ********************************************************************** * *********************************************************************/
| 4664 | * |
| 4665 | *********************************************************************/ |
| 4666 | hb_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 |
no test coverage detected