Skip to content

Commit

Permalink
Add first and last abst values to xml 'frames' element
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jul 15, 2024
1 parent d5aac4e commit 4a8a8ea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Source/Common/Output_Xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,24 @@ return_value Output_Xml(ostream& Out, std::vector<file*>& PerFile, bitset<Option
seconds_to_timestamp(Text, TimeStamp_End, 6, true);
Text += '\"';
}
{
auto AbstBf = abst_bf(Frame->AbstBf);
if (AbstBf.HasAbsoluteTrackNumberValue())
{
Text += " abst=\"";
Text += to_string(AbstBf.AbsoluteTrackNumber());
Text += '\"';
}
}
{
auto AbstBf = abst_bf(File->PerFrame.back()->AbstBf);
if (AbstBf.HasAbsoluteTrackNumberValue())
{
Text += " abst_end=\"";
Text += to_string(AbstBf.AbsoluteTrackNumber());
Text += '\"';
}
}
if (Change->Width && Change->Height)
{
Text += " size=\"";
Expand Down

0 comments on commit 4a8a8ea

Please sign in to comment.