Exemplo n.º 1
0
        public static AvsNode NormalizedNode(StreamChunk chunkFile, int fps, bool autolevel, int shift)
        {
            var chunk = new AvsChunk {
                Chunk = chunkFile, ConvertToFps = fps
            };

            chunk.SyncShift = shift;
            return(NormalizedNode(chunk, autolevel));
        }
Exemplo n.º 2
0
 public override void SerializeToContext(AvsContext context)
 {
     id = context.Id;
     var reference = new AvsChunk {ChunkFile = VideoReference, ConvertToFps = Fps};
     reference.SerializeToContext(context);
     context.AddData(string.Format(Format, Id, reference.Id, ImageFile, Duration));
     /*
      var script = String.Format(@"
                 video = DirectShowSource(""{0}"")
                 Intro(video, ""{1}"", {2})
                 ", pathToReference, pathToImage, EffectDuration);
      */
 }
Exemplo n.º 3
0
        public static AvsNode NormalizedNode(FileInfo chunkFile, int fps, bool autolevel)
        {
            var chunk = new AvsChunk {ChunkFile = chunkFile, ConvertToFps = fps};

            return NormalizedNode(chunk, autolevel);
        }