/// <summary> /// Process an MPEG2 section from the Open TV Title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> public static MediaHighway2CategorySection ProcessMediaHighwayCategoryTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway2CategorySection categorySection = new MediaHighway2CategorySection(); bool process = categorySection.Process(byteData, mpeg2Header.Index); if (process) { categorySection.LogMessage(); return(categorySection); } else { return(null); } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Category section parsing failed: " + e.Message); return(null); } }
/// <summary> /// Process an MPEG2 section from the MediaHighway title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> /// <returns>A MediaHighway1TitleSection instance.</returns> public static MediaHighway1TitleSection ProcessMediaHighwayTitleTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1TitleSection titleSection = new MediaHighway1TitleSection(); titleSection.Process(byteData, mpeg2Header.Index); if (!titleSection.TitleData.IsEmpty) { titleSection.LogMessage(); return(titleSection); } else { return(null); } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Title section parsing failed: " + e.Message); return(null); } }
/// <summary> /// Process an MPEG2 section from the Open TV Title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> public static MediaHighway1ChannelSection ProcessMediaHighwayChannelTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1ChannelSection channelSection = new MediaHighway1ChannelSection(); channelSection.Process(byteData, mpeg2Header.Index); channelSection.LogMessage(); return(channelSection); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Channel section parsing failed: " + e.Message); return(null); } }
/// <summary> /// Process an MPEG2 section from the Open TV Title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> public static MediaHighway1ChannelSection ProcessMediaHighwayChannelTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1ChannelSection channelSection = new MediaHighway1ChannelSection(); channelSection.Process(byteData, mpeg2Header.Index); channelSection.LogMessage(); return (channelSection); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Channel section parsing failed: " + e.Message); return (null); } }
/// <summary> /// Process an MPEG2 section from the Open TV Title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> public static MediaHighway1CategorySection ProcessMediaHighwayCategoryTable(byte[] byteData) { if (RunParameters.Instance.DebugIDs.Contains("MHW1CATEGORYSECTIONS")) Logger.Instance.Dump("MHW1 Category Section", byteData, byteData.Length); Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1CategorySection categorySection = new MediaHighway1CategorySection(); categorySection.Process(byteData, mpeg2Header.Index); categorySection.LogMessage(); return (categorySection); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Category section parsing failed: " + e.Message); return (null); } }
/// <summary> /// Process an MPEG2 section from the Open TV Title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> public static MediaHighway1CategorySection ProcessMediaHighwayCategoryTable(byte[] byteData) { if (RunParameters.Instance.DebugIDs.Contains("MHW1CATEGORYSECTIONS")) { Logger.Instance.Dump("MHW1 Category Section", byteData, byteData.Length); } Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1CategorySection categorySection = new MediaHighway1CategorySection(); categorySection.Process(byteData, mpeg2Header.Index); categorySection.LogMessage(); return(categorySection); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Category section parsing failed: " + e.Message); return(null); } }
/// <summary> /// Process an MPEG2 section from the MediaHighway1 summary table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> /// <returns>A MediaHighway2SummarySection instance.</returns> public static MediaHighway2SummarySection ProcessMediaHighwaySummaryTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway2SummarySection summarySection = new MediaHighway2SummarySection(); bool process = summarySection.Process(byteData, mpeg2Header.Index); if (process) { summarySection.LogMessage(); return (summarySection); } else return (null); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Summary section parsing failed: " + e.Message); return (null); } }
/// <summary> /// Process an MPEG2 section from the MediaHighway title table. /// </summary> /// <param name="byteData">The MPEG2 section.</param> /// <returns>A MediaHighway1TitleSection instance.</returns> public static MediaHighway1TitleSection ProcessMediaHighwayTitleTable(byte[] byteData) { Mpeg2BasicHeader mpeg2Header = new Mpeg2BasicHeader(); try { mpeg2Header.Process(byteData); MediaHighway1TitleSection titleSection = new MediaHighway1TitleSection(); titleSection.Process(byteData, mpeg2Header.Index); if (!titleSection.TitleData.IsEmpty) { titleSection.LogMessage(); return (titleSection); } else return (null); } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Title section parsing failed: " + e.Message); return (null); } }