Пример #1
0
        public static int GetFrameCount(string filename, double fps)
        {
            double framel;

            ASSFile assfile = ASSFile.LoadFromFile(filename);

            Common.SUBTime at = new Common.SUBTime();

            foreach (var ae in assfile.Events)
            {
                if (ae.End > at)
                {
                    at = ae.End;
                }
            }


            framel = at.GetSecond() * fps;
            return((int)(framel));
        }
Пример #2
0
 public ASS_Event(string layer, Common.SUBTime start, Common.SUBTime end, string style, string name, string marginl, string marginr, string marginv, string effect, string text)
 {
     this.Layer   = layer; this.Start = start; this.End = end; this.Style = style; this.Name = name;
     this.MarginL = marginl; this.MarginR = marginr; this.MarginV = marginv; this.Effect = effect; this.Text = text;
 }
Пример #3
0
 public SRT_Line(int lineno, Common.SUBTime start, Common.SUBTime end)
 {
     this.Start = new Common.SUBTime();
     this.End   = new Common.SUBTime();
     this.Texts = new List <string>();
 }