2015-08-26 22:42:40 +02:00
|
|
|
|
// (c) Giora Tamir (giora@gtamir.com), 2005
|
|
|
|
|
|
|
|
|
|
namespace Nikse.SubtitleEdit.Core.ContainerFormats
|
|
|
|
|
{
|
2020-02-06 16:41:33 +01:00
|
|
|
|
internal class AviStreamHeader
|
2015-08-26 22:42:40 +02:00
|
|
|
|
{
|
2020-02-06 16:41:33 +01:00
|
|
|
|
public int FccType { get; set; } // stream type codes
|
|
|
|
|
public int FccHandler { get; set; }
|
|
|
|
|
public int Scale { get; set; }
|
|
|
|
|
public int Rate { get; set; } // Rate/Scale is stream tick rate in ticks/s
|
|
|
|
|
public int Start { get; set; }
|
|
|
|
|
public int Length { get; set; }
|
|
|
|
|
public int SampleSize { get; set; }
|
2015-08-26 22:42:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static class AviRiffData
|
|
|
|
|
{
|
|
|
|
|
// AVI stream FourCC codes
|
2020-02-03 20:53:39 +01:00
|
|
|
|
public static readonly int StreamTypeVideo = RiffParser.ToFourCc("vids");
|
|
|
|
|
public static readonly int StreamTypeAudio = RiffParser.ToFourCc("auds");
|
2015-08-26 22:42:40 +02:00
|
|
|
|
|
|
|
|
|
// AVI section FourCC codes
|
2020-02-03 20:53:39 +01:00
|
|
|
|
public static readonly int AviHeaderList = RiffParser.ToFourCc("hdrl");
|
|
|
|
|
public static readonly int MainAviHeader = RiffParser.ToFourCc("avih");
|
|
|
|
|
public static readonly int AviStreamList = RiffParser.ToFourCc("strl");
|
|
|
|
|
public static readonly int AviStreamHeader = RiffParser.ToFourCc("strh");
|
|
|
|
|
public static readonly int InfoList = RiffParser.ToFourCc("INFO");
|
|
|
|
|
public static readonly int AviIsft = RiffParser.ToFourCc("ISFT");
|
|
|
|
|
public const int Mp3 = 0x0055;
|
|
|
|
|
public static readonly int WaveFmt = RiffParser.ToFourCc("fmt ");
|
2015-08-26 22:42:40 +02:00
|
|
|
|
}
|
|
|
|
|
}
|