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


C++ AP4_AtomInspector类代码示例

本文整理汇总了C++中AP4_AtomInspector的典型用法代码示例。如果您正苦于以下问题:C++ AP4_AtomInspector类的具体用法?C++ AP4_AtomInspector怎么用?C++ AP4_AtomInspector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AP4_AtomInspector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: sizeof

/*----------------------------------------------------------------------
|   AP4_SgpdAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_SgpdAtom::InspectFields(AP4_AtomInspector& inspector)
{
    char fourcc[5];
    AP4_FormatFourChars(fourcc, m_GroupingType);
    inspector.AddField("grouping_type", fourcc);
    if (m_Version >= 1) {
        inspector.AddField("default_length", m_DefaultLength);
    }
    inspector.AddField("entry_count", m_Entries.ItemCount());
    
    // inspect entries
    char header[32];
    unsigned int i=0;
    for (AP4_List<AP4_DataBuffer>::Item* item = m_Entries.FirstItem();
                                         item;
                                         item = item->GetNext()) {
        AP4_DataBuffer* entry = item->GetData();
        AP4_FormatString(header, sizeof(header), "entry %02d", i);
        ++i;
        inspector.AddField(header, entry->GetData(), entry->GetDataSize());
    }

    return AP4_SUCCESS;
}
开发者ID:ravmike,项目名称:Bento4,代码行数:28,代码来源:Ap4SgpdAtom.cpp

示例2: GetBaseLocation

/*----------------------------------------------------------------------
|   AP4_BlocAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_BlocAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("base_location", GetBaseLocation());
    inspector.AddField("purchase_location", GetPurchaseLocation());
    return AP4_SUCCESS;
}
开发者ID:lookback,项目名称:Bento4,代码行数:10,代码来源:Ap4BlocAtom.cpp

示例3:

/*----------------------------------------------------------------------
|   AP4_GrpiAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_GrpiAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("key encryption method", m_KeyEncryptionMethod);
    inspector.AddField("group id",              m_GroupId.GetChars());
    inspector.AddField("group key",             m_GroupKey.GetData(), 
                                                m_GroupKey.GetDataSize());
    return AP4_SUCCESS;
}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:12,代码来源:Ap4GrpiAtom.cpp

示例4:

/*----------------------------------------------------------------------
|       AP4_TkhdAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_TkhdAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("enabled", ((m_Flags & AP4_TKHD_FLAG_TRACK_ENABLED) ? 1 : 0), AP4_AtomInspector::HINT_BOOLEAN);
    inspector.AddField("id", m_TrackId);
    inspector.AddField("duration", (AP4_UI32)m_Duration);

    return AP4_SUCCESS;
}
开发者ID:Fluffiest,项目名称:splayer,代码行数:12,代码来源:Ap4TkhdAtom.cpp

示例5:

/*----------------------------------------------------------------------
|   AP4_TrefTypeAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_TrefTypeAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("track_id_count", m_TrackIds.ItemCount());
    for (AP4_Ordinal i=0; i<m_TrackIds.ItemCount(); i++) {
    	inspector.AddField("track id ", m_TrackIds[i]);
    }
    return AP4_SUCCESS;
}
开发者ID:9aa5,项目名称:Bento4,代码行数:12,代码来源:Ap4TrefTypeAtom.cpp

示例6:

/*----------------------------------------------------------------------
|       AP4_IsfmAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_IsfmAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("selective_encryption", m_SelectiveEncryption);
    inspector.AddField("key_indicator_length", m_KeyIndicatorLength);
    inspector.AddField("IV_length", m_IvLength);

    return AP4_SUCCESS;
}
开发者ID:334151798,项目名称:dwindow,代码行数:12,代码来源:Ap4IsfmAtom.cpp

示例7:

/*----------------------------------------------------------------------
|       AP4_RtpAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_RtpAtom::InspectFields(AP4_AtomInspector& inspector)
{
    char format_string[5];
    AP4_FormatFourChars(format_string, m_DescriptionFormat);
    inspector.AddField("description_format", format_string);
    inspector.AddField("sdp_text", m_SdpText.c_str());

    return AP4_SUCCESS;
}
开发者ID:334151798,项目名称:dwindow,代码行数:13,代码来源:Ap4RtpAtom.cpp

示例8:

/*----------------------------------------------------------------------
|   AP4_MkidAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_MkidAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("entry_count", m_Entries.ItemCount());
    for (unsigned int i=0; i<m_Entries.ItemCount(); i++) {
        inspector.AddField("KID", m_Entries[i].m_KID, 16);
        inspector.AddField("content_id", m_Entries[i].m_ContentId.GetChars());
    }
    return AP4_SUCCESS;
}
开发者ID:EyeSee360,项目名称:Bento4,代码行数:13,代码来源:Ap4Marlin.cpp

示例9:

/*----------------------------------------------------------------------
|   AP4_HmhdAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_HmhdAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("max_pdu_size", m_MaxPduSize);
    inspector.AddField("avg_pdu_size", m_AvgPduSize);
    inspector.AddField("max_bitrate",  m_MaxBitrate);
    inspector.AddField("avg_bitrate",  m_AvgBitrate);

    return AP4_SUCCESS;
}
开发者ID:prpplague,项目名称:VTech-InnoTab,代码行数:13,代码来源:Ap4HmhdAtom.cpp

示例10: sizeof

/*----------------------------------------------------------------------
|   AP4_Expandable::Inspect
+---------------------------------------------------------------------*/
AP4_Result
AP4_Expandable::Inspect(AP4_AtomInspector& inspector)
{
    char name[64];
    AP4_FormatString(name, sizeof(name), "#:%02x", m_ClassId);
    inspector.StartDescriptor(name, GetHeaderSize(), GetSize());
    inspector.EndDescriptor();

    return AP4_SUCCESS;
}
开发者ID:9aa5,项目名称:Bento4,代码行数:13,代码来源:Ap4Expandable.cpp

示例11:

/*----------------------------------------------------------------------
|   AP4_TrexAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_TrexAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("track id", m_TrackId);
    inspector.AddField("default sample description index", m_DefaultSampleDescriptionIndex);
    inspector.AddField("default sample duration", m_DefaultSampleDuration);
    inspector.AddField("default sample size", m_DefaultSampleSize);
    inspector.AddField("default sample flags", m_DefaultSampleFlags, AP4_AtomInspector::HINT_HEX);

    return AP4_SUCCESS;
}
开发者ID:9aa5,项目名称:Bento4,代码行数:14,代码来源:Ap4TrexAtom.cpp

示例12:

/*----------------------------------------------------------------------
|       AP4_UrlAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_UrlAtom::InspectFields(AP4_AtomInspector& inspector)
{
    if (m_Flags & 1) {
        inspector.AddField("location", "[local to file]");
    } else {
        inspector.AddField("location", m_Url.c_str());
    }

    return AP4_SUCCESS;
}
开发者ID:AeonAxan,项目名称:mpc-hc,代码行数:14,代码来源:Ap4UrlAtom.cpp

示例13:

/*----------------------------------------------------------------------
|   AP4_TkhdAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_TkhdAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("enabled", ((m_Flags & AP4_TKHD_FLAG_TRACK_ENABLED) ? 1 : 0), AP4_AtomInspector::HINT_BOOLEAN);
    inspector.AddField("id", m_TrackId);
    inspector.AddField("duration", m_Duration);
    inspector.AddFieldF("width", (float)m_Width/65536.0f);
    inspector.AddFieldF("height", (float)m_Height/65536.0f);
    
    return AP4_SUCCESS;
}
开发者ID:Fluffiest,项目名称:mpc-hc,代码行数:14,代码来源:Ap4TkhdAtom.cpp

示例14: sizeof

/*----------------------------------------------------------------------
|       AP4_VmhdAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_VmhdAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("graphics_mode", m_GraphicsMode);
    char formatted[16];
    AP4_StringFormat(formatted, sizeof(formatted), "%04x,%04x,%04x",
        m_OpColor[0], m_OpColor[1], m_OpColor[2]);
    inspector.AddField("op_color", formatted);

    return AP4_SUCCESS;
}
开发者ID:334151798,项目名称:dwindow,代码行数:14,代码来源:Ap4VmhdAtom.cpp

示例15:

/*----------------------------------------------------------------------
|   AP4_ElstAtom::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_ElstAtom::InspectFields(AP4_AtomInspector& inspector)
{
    inspector.AddField("entry count", m_Entries.ItemCount());
    for (AP4_Ordinal i=0; i<m_Entries.ItemCount(); i++) {
        inspector.AddField("entry/segment duration", (AP4_UI32)m_Entries[i].m_SegmentDuration);
        inspector.AddField("entry/media time", (AP4_SI32)m_Entries[i].m_MediaTime);
        inspector.AddField("entry/media rate", (AP4_UI16)m_Entries[i].m_MediaRate);
    }

    return AP4_SUCCESS;
}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:15,代码来源:Ap4ElstAtom.cpp


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