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

Function PrintTitleInfo

test/test.c:681–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681static void PrintTitleInfo( hb_title_t * title, int feature )
682{
683 int i;
684
685 fprintf( stderr, "+ title %d:\n", title->index );
686 if ( title->index == feature )
687 {
688 fprintf( stderr, " + Main Feature\n" );
689 }
690 if ( title->type == HB_STREAM_TYPE || title->type == HB_FF_STREAM_TYPE )
691 {
692 fprintf( stderr, " + stream: %s\n", title->path );
693 }
694 else if ( title->type == HB_DVD_TYPE )
695 {
696 fprintf( stderr, " + index %d\n", title->index);
697 }
698 else if( title->type == HB_BD_TYPE )
699 {
700 fprintf( stderr, " + playlist: %05d.MPLS\n", title->playlist );
701 }
702 if (title->angle_count > 1)
703 fprintf( stderr, " + angle(s) %d\n", title->angle_count );
704 fprintf( stderr, " + duration: %02d:%02d:%02d\n",
705 title->hours, title->minutes, title->seconds );
706 fprintf( stderr, " + size: %dx%d, pixel aspect: %d/%d, display aspect: %.2f, %.3f fps\n",
707 title->geometry.width, title->geometry.height,
708 title->geometry.par.num, title->geometry.par.den,
709 (float)title->dar.num / title->dar.den,
710 (float)title->vrate.num / title->vrate.den );
711 fprintf( stderr, " + autocrop: %d/%d/%d/%d\n", title->crop[0],
712 title->crop[1], title->crop[2], title->crop[3] );
713
714 fprintf( stderr, " + chapters:\n" );
715 for( i = 0; i < hb_list_count( title->list_chapter ); i++ )
716 {
717 hb_chapter_t * chapter;
718 chapter = hb_list_item( title->list_chapter, i );
719 fprintf( stderr, " + %d: duration %02d:%02d:%02d\n",
720 chapter->index, chapter->hours, chapter->minutes,
721 chapter->seconds );
722 }
723 fprintf( stderr, " + audio tracks:\n" );
724 for( i = 0; i < hb_list_count( title->list_audio ); i++ )
725 {
726 hb_audio_config_t *audio;
727 audio = hb_list_audio_config_item( title->list_audio, i );
728 if( ( audio->in.codec == HB_ACODEC_AC3 ) || ( audio->in.codec == HB_ACODEC_DCA) )
729 {
730 fprintf( stderr, " + %d, %s (iso639-2: %s), %dHz, %dbps\n",
731 i + 1,
732 audio->lang.description,
733 audio->lang.iso639_2,
734 audio->in.samplerate,
735 audio->in.bitrate );
736 }
737 else
738 {

Callers 2

PrintTitleSetInfoFunction · 0.85
HandleEventsFunction · 0.85

Calls 3

hb_list_countFunction · 0.85
hb_list_itemFunction · 0.85

Tested by

no test coverage detected