Public Member Functions | |
| SrtContext (const char *filename) | |
| ~SrtContext () | |
| void | printEntry (void) |
Public Attributes | |
| ofstream | file |
| unsigned | counter |
| xmlChar * | title |
| xmlChar * | abstract |
| xmlChar * | src |
| unsigned | begin |
| unsigned | duration |
|
|
Definition at line 684 of file playlist.cc. 00684 : 00685 file(filename), counter(0), title(NULL), abstract(NULL), src(NULL), 00686 begin(0), duration(0) 00687 { 00688 }
|
|
|
Definition at line 690 of file playlist.cc. References file, and printEntry(). 00691 {
00692 printEntry();
00693 file.close();
00694 }
|
|
|
Definition at line 696 of file playlist.cc. References begin, counter, duration, file, GetFileMap(), FileHandler::GetFrame(), GetFramePool(), Frame::GetFrameRate(), SMIL::MediaClippingTime::parseFramesToString(), StringUtils::replaceAll(), SMIL::MediaClippingTime::setFramerate(), src, SMIL::Time::TIME_FORMAT_CLOCK, and title. Referenced by convertSrt(), and ~SrtContext(). 00697 {
00698 if ( title || abstract )
00699 {
00700 Frame *frame = GetFramePool( )->GetFrame( );
00701 FileHandler *mediaFile = GetFileMap()->GetMap() [ string( ( const char* ) src ) ];
00702 SMIL::MediaClippingTime time;
00703
00704 mediaFile->GetFrame( *frame, 0 );
00705 time.setFramerate( frame->GetFrameRate() );
00706 GetFramePool( )->DoneWithFrame( frame );
00707 string beginString = time.parseFramesToString( begin, SMIL::Time::TIME_FORMAT_CLOCK );
00708 string durationString = time.parseFramesToString( duration - begin, SMIL::Time::TIME_FORMAT_CLOCK );
00709 begin = 0;
00710
00711 file << ++counter << endl;
00712 file << StringUtils::replaceAll( beginString, ".", "," );
00713 file << " --> " << StringUtils::replaceAll( durationString, ".", "," ) << endl;
00714 if ( title )
00715 file << title << endl;
00716 if ( abstract )
00717 file << abstract << endl;
00718 file << endl;
00719 }
00720 if ( src )
00721 {
00722 xmlFree( src );
00723 src = NULL;
00724 }
00725 if ( title )
00726 {
00727 xmlFree( title );
00728 title = NULL;
00729 }
00730 if ( abstract )
00731 {
00732 xmlFree( abstract );
00733 abstract = NULL;
00734 }
00735 }
|
|
|
Definition at line 679 of file playlist.cc. Referenced by convertSrt(). |
|
|
Definition at line 681 of file playlist.cc. Referenced by convertSrt(), and printEntry(). |
|
|
Definition at line 677 of file playlist.cc. Referenced by printEntry(). |
|
|
Definition at line 682 of file playlist.cc. Referenced by convertSrt(), and printEntry(). |
|
|
Definition at line 676 of file playlist.cc. Referenced by printEntry(), PlayList::SavePlayListSrt(), and ~SrtContext(). |
|
|
Definition at line 680 of file playlist.cc. Referenced by convertSrt(), and printEntry(). |
|
|
Definition at line 678 of file playlist.cc. Referenced by convertSrt(), and printEntry(). |
1.4.2