当前位置: 首页>>代码示例>>C++>>正文


C++ AP4_AtomInspector::GetVerbosity方法代码示例

本文整理汇总了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;
}
开发者ID:huangyt,项目名称:MyProjects,代码行数:16,代码来源:Ap4StcoAtom.cpp

示例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;
}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:22,代码来源:Ap4CttsAtom.cpp

示例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;
}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:23,代码来源:Ap4SaizAtom.cpp

示例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;
}
开发者ID:9aa5,项目名称:Bento4,代码行数:27,代码来源:Ap4StscAtom.cpp


注:本文中的AP4_AtomInspector::GetVerbosity方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。