/// <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(CultureInfo.InvariantCulture, "\tbFixedSizeSamples : {0}\r\n", mt.bFixedSizeSamples); ret += string.Format(CultureInfo.InvariantCulture, "\tbTemporalCompression : {0}\r\n", mt.bTemporalCompression); ret += string.Format(CultureInfo.InvariantCulture, "\tcbFormat : {0}\r\n", mt.cbFormat); ret += string.Format(CultureInfo.InvariantCulture, "\tformattype : {0}\r\n", FormatType.GuidToString(mt.formattype)); ret += string.Format(CultureInfo.InvariantCulture, "\tlSampleSize : {0}\r\n", mt.lSampleSize); ret += string.Format(CultureInfo.InvariantCulture, "\tmajortype : {0}\r\n", MajorType.GuidToString(mt.majortype)); ret += string.Format(CultureInfo.InvariantCulture, "\tpbFormat : {0}\r\n", ((int)mt.pbFormat)); ret += string.Format(CultureInfo.InvariantCulture, "\tsubtype : {0}", SubType.GuidToString(mt.subtype)); object formatBlock = FormatType.MarshalData(mt); if (formatBlock != null) { ret += FormatType.Dump(formatBlock); } return(ret); }