Originally committed to SVN as r291.

This commit is contained in:
Rodrigo Braz Monteiro 2006-04-02 15:32:04 +00:00
parent 021d6c28b2
commit cc87035de0
2 changed files with 5 additions and 7 deletions

View File

@ -177,10 +177,8 @@ void PRSSubtitleFormat::WriteFile(wxString filename,wxString encoding) {
// Save file // Save file
file.Save((const char*)filename.mb_str(wxConvLocal)); file.Save((const char*)filename.mb_str(wxConvLocal));
wxString filename2 = filename + _T(".prsa");
// Test file file.SaveText((const char*)filename2.mb_str(wxConvLocal));
PRSVideoFrame testFrame;
file.DrawFrame(lastFrameDrawn,&testFrame);
#endif #endif
} }
@ -244,7 +242,7 @@ void PRSSubtitleFormat::InsertFrame(PRSFile &file,int &framen,std::vector<int> &
int startf = framen; int startf = framen;
int totalFrames = frames.size(); int totalFrames = frames.size();
while (++framen<totalFrames && frames[framen] == 1); while (++framen<totalFrames && frames[framen] == 1);
int endf = --framen; int endf = framen;
int start = VFR_Output.GetTimeAtFrame(startf,true); int start = VFR_Output.GetTimeAtFrame(startf,true);
int end = VFR_Output.GetTimeAtFrame(endf,false); int end = VFR_Output.GetTimeAtFrame(endf,false);

View File

@ -367,8 +367,8 @@ void PRSFile::SaveText(std::string path) {
display = PRSEntry::GetDisplay(*cur); display = PRSEntry::GetDisplay(*cur);
if (display) { if (display) {
// Write text // Write text
file << "DSP: " << display->startFrame << "," << display->endFrame << "," << display->start << "," << display->end; file << "DSP: " << display->startFrame << "," << display->endFrame << "," << display->start << "," << display->end << ",";
file << display->id << "," << display->x << "," << display->y << "," << display->alpha << "," << display->blend; file << display->id << "," << display->x << "," << display->y << "," << (int)(display->alpha) << "," << (int)(display->blend);
file << std::endl; file << std::endl;
continue; continue;
} }