mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
23 lines
680 B
C#
23 lines
680 B
C#
namespace Nikse.SubtitleEdit.Core.TransportStream
|
|
{
|
|
|
|
public class EbuPesDataFieldText
|
|
{
|
|
public bool FieldParity { get; set; }
|
|
public int LineOffset { get; set; }
|
|
public int FramingCode { get; set; }
|
|
public int MagazineAndPacketAddress { get; set; }
|
|
public byte[] DataBlock { get; set; }
|
|
|
|
public EbuPesDataFieldText(byte[] buffer, int index)
|
|
{
|
|
FieldParity = (buffer[index] & Helper.B00100000) > 0;
|
|
LineOffset = buffer[index] & Helper.B00011111;
|
|
FramingCode = buffer[index + 1];
|
|
MagazineAndPacketAddress = Helper.GetEndianWord(buffer, index + 2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|