这篇教程C++ AP4_AtomInspector类代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中AP4_AtomInspector类的典型用法代码示例。如果您正苦于以下问题:C++ AP4_AtomInspector类的具体用法?C++ AP4_AtomInspector怎么用?C++ AP4_AtomInspector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。 在下文中一共展示了AP4_AtomInspector类的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: sizeof/*----------------------------------------------------------------------| AP4_SgpdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例2: GetBaseLocation/*----------------------------------------------------------------------| AP4_BlocAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_BlocAtom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("base_location", GetBaseLocation()); inspector.AddField("purchase_location", GetPurchaseLocation()); return AP4_SUCCESS;}
开发者ID:lookback,项目名称:Bento4,代码行数:10,
示例3: /*----------------------------------------------------------------------| AP4_GrpiAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例4: /*----------------------------------------------------------------------| AP4_TkhdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例5: /*----------------------------------------------------------------------| AP4_TrefTypeAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例6: /*----------------------------------------------------------------------| AP4_IsfmAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例7: /*----------------------------------------------------------------------| AP4_RtpAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例8: /*----------------------------------------------------------------------| AP4_MkidAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例9: /*----------------------------------------------------------------------| AP4_HmhdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例10: sizeof/*----------------------------------------------------------------------| AP4_Expandable::Inspect+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例11: /*----------------------------------------------------------------------| AP4_TrexAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例12: /*----------------------------------------------------------------------| AP4_UrlAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例13: /*----------------------------------------------------------------------| AP4_TkhdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例14: sizeof/*----------------------------------------------------------------------| AP4_VmhdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例15: /*----------------------------------------------------------------------| AP4_ElstAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例16: sizeof/*----------------------------------------------------------------------| AP4_StcoAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_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,
示例17: /*----------------------------------------------------------------------| AP4_VisualSampleEntry::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_VisualSampleEntry::InspectFields(AP4_AtomInspector& inspector){ // dump the fields of the base class AP4_SampleEntry::InspectFields(inspector); // fields inspector.AddField("width", m_Width); inspector.AddField("height", m_Height); inspector.AddField("compressor", m_CompressorName.GetChars()); return AP4_SUCCESS;}
开发者ID:qmwd2006,项目名称:bento4,代码行数:16,
示例18: /*----------------------------------------------------------------------| AP4_IkmsAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_IkmsAtom::InspectFields(AP4_AtomInspector& inspector){ if (m_Version == 1) { char id[5]; AP4_FormatFourChars(id, m_KmsId); inspector.AddField("kms_id", id); inspector.AddField("kms_version", m_KmsVersion); } inspector.AddField("kms_uri", m_KmsUri.GetChars()); return AP4_SUCCESS;}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:16,
示例19: sizeof/*----------------------------------------------------------------------| AP4_Expandable::Inspect+---------------------------------------------------------------------*/AP4_ResultAP4_Expandable::Inspect(AP4_AtomInspector& inspector){ char name[6]; AP4_FormatString(name, sizeof(name), "[#:%02x]", m_ClassId); char info[64]; AP4_FormatString(info, sizeof(info), "size=%ld+%ld", GetHeaderSize(), m_PayloadSize); inspector.StartElement(name, info); inspector.EndElement(); return AP4_SUCCESS;}
开发者ID:huangyt,项目名称:MyProjects,代码行数:17,
示例20: GetHeaderSize/*----------------------------------------------------------------------| AP4_IpmpDescriptorPointer::Inspect+---------------------------------------------------------------------*/AP4_ResultAP4_IpmpDescriptorPointer::Inspect(AP4_AtomInspector& inspector){ inspector.StartDescriptor("IPMP_DescriptorPointer", GetHeaderSize(), GetSize()); inspector.AddField("IPMP_DescriptorID", m_DescriptorId); if (m_DescriptorId == 0xFF) { inspector.AddField("IPMP_DescriptorIDEx", m_DescriptorIdEx); inspector.AddField("IPMP_ES_ID", m_EsId); } inspector.EndDescriptor(); return AP4_SUCCESS;}
开发者ID:9aa5,项目名称:Bento4,代码行数:17,
示例21: GetChannelCount/*----------------------------------------------------------------------| AP4_AudioSampleEntry::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_AudioSampleEntry::InspectFields(AP4_AtomInspector& inspector){ // dump the fields from the base class AP4_SampleEntry::InspectFields(inspector); // fields inspector.AddField("channel_count", GetChannelCount()); inspector.AddField("sample_size", GetSampleSize()); inspector.AddField("sample_rate", GetSampleRate()); if (m_QtVersion) { inspector.AddField("qt_version", m_QtVersion); } return AP4_SUCCESS;}
开发者ID:qmwd2006,项目名称:bento4,代码行数:19,
示例22: /*----------------------------------------------------------------------| AP4_TfdtAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_TfdtAtom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("base media decode time", m_BaseMediaDecodeTime); return AP4_SUCCESS;}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:10,
示例23: /*----------------------------------------------------------------------| AP4_Co64Atom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_Co64Atom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("entry_count", m_EntryCount); return AP4_SUCCESS;}
开发者ID:334151798,项目名称:dwindow,代码行数:10,
示例24: /*----------------------------------------------------------------------| AP4_MfhdAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_MfhdAtom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("sequence number", m_SequenceNumber); return AP4_SUCCESS;}
开发者ID:Fluffiest,项目名称:mpc-hc,代码行数:10,
示例25: /*----------------------------------------------------------------------| AP4_IkmsAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_IkmsAtom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("kms_uri", m_KmsUri.c_str()); return AP4_SUCCESS;}
开发者ID:AeonAxan,项目名称:mpc-hc,代码行数:10,
示例26: /*----------------------------------------------------------------------| AP4_StssAtom::InspectFields+---------------------------------------------------------------------*/AP4_ResultAP4_StssAtom::InspectFields(AP4_AtomInspector& inspector){ inspector.AddField("entry_count", m_Entries.ItemCount()); return AP4_SUCCESS;}
开发者ID:AchimTuran,项目名称:inputstream.mpd,代码行数:10,
注:本文中的AP4_AtomInspector类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ AP4_ContainerAtom类代码示例 C++ ANPLogInterfaceV0类代码示例 |