[matroska] r1046 - trunk/DvdMenuXtractor
[email protected] Wed, 19 Jan 2005 17:04:30 +0300 (MSK)
Newsgroups
gmane.comp.multimedia.matroska.cvs
Message-ID
<[email protected] >
Author: robux4
Date: 2005-01-19 17:04:29 +0300 (Wed, 19 Jan 2005)
New Revision: 1046
Modified:
trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
DMX: const here and there
Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-01-19 13:57:56 UTC (rev 1045)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-01-19 14:04:29 UTC (rev 1046)
@@ -817,7 +817,7 @@
return wxString::Format("%u", uint32_t(rand() | (rand() << 16)) );
}
- void AddCommands(int lvl, wxTextFile & XmlFile, const pgc_command_tbl_t * command_tbl)
+ void AddCommands(int lvl, wxTextFile & XmlFile, const pgc_command_tbl_t * command_tbl) const
{
if (command_tbl)
{
@@ -903,7 +903,7 @@
return result;
}
- uint64_t OutputProgram(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, int program_number, const CellsListType & cell_list)
+ uint64_t OutputProgram(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, int program_number, const CellsListType & cell_list) const
{
static unsigned char _PrivatePG[] = {0x10, 0x00, 0x00};
static unsigned char _PrivateCN[] = {0x08, 0x00, 0x00, 0x00, 0x00};
@@ -997,7 +997,7 @@
return start_time;
}
- uint64_t OutputPGC(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, uint16_t pgc_num, unsigned char pgc_type, const CellsListType & cell_list, const ttu_t * ptts)
+ uint64_t OutputPGC(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, uint16_t pgc_num, unsigned char pgc_type, const CellsListType & cell_list, const ttu_t * ptts) const
{
static unsigned char _PrivatePGC[] = {0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static unsigned char _PrivatePTT[] = {0x18, 0x00, 0x00};
@@ -1085,7 +1085,7 @@
// Macro to convert Binary Coded Decimal to Decimal
#define BCD2D(__x__) (((__x__ & 0xf0) >> 4) * 10 + (__x__ & 0x0f))
- uint64_t DvdTimecodeToNano(const dvd_time_t & dtime, uint8_t still_time)
+ static uint64_t DvdTimecodeToNano(const dvd_time_t & dtime, uint8_t still_time)
{
uint64_t nano_duration = 0;
if (still_time == 0 || still_time == 0xFF)
@@ -1142,7 +1142,7 @@
XmlFile.AddLine(IndentString(lvl)+"<ChapterTimeEnd>"+TimeFormat(end_time)+"</ChapterTimeEnd>");
}
- uint64_t HandleLanguageUnit(int lvl, wxTextFile & XmlFile, const IFOFile & _ifo, int title)
+ uint64_t HandleLanguageUnit(int lvl, wxTextFile & XmlFile, const IFOFile & _ifo, int title) const
{
static unsigned char _PrivateLU[] = {0x2A, 0x00, 0x00, 0x00};
uint64_t start_time = uint64_t(-1), found_time;
@@ -1234,7 +1234,7 @@
XmlFileSeg.Write();
}
- bool GenerateXMLScriptMenu(const wxString & Filename, uint16_t title)
+ bool GenerateXMLScriptMenu(const wxString & Filename, uint16_t title) const
{
static unsigned char _PrivateFP[] = {0x30, 0x00, 0x00, 0x00};
static unsigned char _PrivateVM[] = {0x30, 0xC0, 0x00, 0x00};
@@ -1318,7 +1318,7 @@
return true;
}
- bool GenerateXMLScript(const wxString & Filename, uint16_t title)
+ bool GenerateXMLScript(const wxString & Filename, uint16_t title) const
{
static unsigned char _PrivateFP[] = {0x30, 0x00, 0x00, 0x00};
static unsigned char _PrivateVM[] = {0x30, 0xC0, 0x00, 0x00};