本文整理汇总了C++中AP4_AtomInspector::AddField方法的典型用法代码示例。如果您正苦于以下问题:C++ AP4_AtomInspector::AddField方法的具体用法?C++ AP4_AtomInspector::AddField怎么用?C++ AP4_AtomInspector::AddField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AP4_AtomInspector
的用法示例。
在下文中一共展示了AP4_AtomInspector::AddField方法的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;
}
示例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;
}
示例3:
/*----------------------------------------------------------------------
| 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;
}
示例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;
}
示例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;
}
示例6:
/*----------------------------------------------------------------------
| 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;
}
示例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;
}
示例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;
}
示例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;
}
示例10:
/*----------------------------------------------------------------------
| 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;
}
示例11: 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;
}
示例12:
/*----------------------------------------------------------------------
| 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;
}
示例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;
}
示例14:
/*----------------------------------------------------------------------
| 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;
}
示例15:
/*----------------------------------------------------------------------
| AP4_VisualSampleEntry::InspectFields
+---------------------------------------------------------------------*/
AP4_Result
AP4_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;
}