本文整理汇总了C++中AP4_AtomInspector::GetVerbosity方法的典型用法代码示例。如果您正苦于以下问题:C++ AP4_AtomInspector::GetVerbosity方法的具体用法?C++ AP4_AtomInspector::GetVerbosity怎么用?C++ AP4_AtomInspector::GetVerbosity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AP4_AtomInspector
的用法示例。
在下文中一共展示了AP4_AtomInspector::GetVerbosity方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sizeof
/*----------------------------------------------------------------------
| AP4_StcoAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_StcoAtom::InspectFields(AP4_AtomInspector& inspector)
{
inspector.AddField("entry_count", m_EntryCount);
if (inspector.GetVerbosity() >= 1) {
char header[32];
for (AP4_Ordinal i=0; i<m_EntryCount; i++) {
AP4_FormatString(header, sizeof(header), "entry %8d", i);
inspector.AddField(header, m_Entries[i]);
}
}
return AP4_SUCCESS;
}
示例2: sizeof
/*----------------------------------------------------------------------
| AP4_CttsAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_CttsAtom::InspectFields(AP4_AtomInspector& inspector)
{
inspector.AddField("entry_count", m_Entries.ItemCount());
if (inspector.GetVerbosity() >= 2) {
char header[32];
char value[64];
for (AP4_Ordinal i=0; i<m_Entries.ItemCount(); i++) {
AP4_FormatString(header, sizeof(header), "entry %8d", i);
AP4_FormatString(value, sizeof(value), "count=%d, offset=%d",
m_Entries[i].m_SampleCount,
m_Entries[i].m_SampleOffset);
inspector.AddField(header, value);
}
}
return AP4_SUCCESS;
}
示例3: sizeof
/*----------------------------------------------------------------------
| AP4_SaizAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_SaizAtom::InspectFields(AP4_AtomInspector& inspector)
{
if (m_Flags&1) {
inspector.AddField("aux info type", m_AuxInfoType, AP4_AtomInspector::HINT_HEX);
inspector.AddField("aux info type parameter", m_AuxInfoTypeParameter, AP4_AtomInspector::HINT_HEX);
}
inspector.AddField("default sample info size", m_DefaultSampleInfoSize);
inspector.AddField("sample count", m_SampleCount);
if (inspector.GetVerbosity() >= 2) {
char header[32];
for (AP4_Ordinal i=0; i<m_Entries.ItemCount(); i++) {
AP4_FormatString(header, sizeof(header), "entry %8d", i);
inspector.AddField(header, m_Entries[i]);
}
}
return AP4_SUCCESS;
}
示例4: sizeof
/*----------------------------------------------------------------------
| AP4_StscAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_StscAtom::InspectFields(AP4_AtomInspector& inspector)
{
inspector.AddField("entry_count", m_Entries.ItemCount());
// dump table entries
if (inspector.GetVerbosity() >= 1) {
char header[32];
char value[256];
for (unsigned int i=0; i<m_Entries.ItemCount(); i++) {
AP4_FormatString(header, sizeof(header), "entry %8d", i);
AP4_FormatString(value, sizeof(value),
"first_chunk=%d, first_sample*=%d, chunk_count*=%d, samples_per_chunk=%d, sample_desc_index=%d",
m_Entries[i].m_FirstChunk,
m_Entries[i].m_FirstSample,
m_Entries[i].m_ChunkCount,
m_Entries[i].m_SamplesPerChunk,
m_Entries[i].m_SampleDescriptionIndex);
inspector.AddField(header, value);
}
}
return AP4_SUCCESS;
}