/// <summary> /// Turns the _AMMediaType into a string representation /// </summary> public static string Dump(_AMMediaType mt) { string ret = "\r\nMedia Type\r\n"; ret += string.Format("\tbFixedSizeSamples : {0}\r\n", mt.bFixedSizeSamples); ret += string.Format("\tbTemporalCompression : {0}\r\n", mt.bTemporalCompression); ret += string.Format("\tcbFormat : {0}\r\n", mt.cbFormat); ret += string.Format("\tformattype : {0}\r\n", FormatType.GuidToString(mt.formattype)); ret += string.Format("\tlSampleSize : {0}\r\n", mt.lSampleSize); ret += string.Format("\tmajortype : {0}\r\n", MajorType.GuidToString(mt.majortype)); ret += string.Format("\tpbFormat : {0}\r\n", ((int)mt.pbFormat)); ret += string.Format("\tsubtype : {0}", SubType.GuidToString(mt.subtype)); object formatBlock = FormatType.MarshalData(mt); if (formatBlock != null) { ret += FormatType.Dump(formatBlock); } return(ret); }