Exemplo n.º 1
0
 public PiffMediaHeader(DateTime created, long duration, int timeScale)
 {
     CreationTime     = PiffWriter.GetSecondsFromEpoch(created);
     ModificationTime = CreationTime;
     TimeScale        = timeScale;
     Duration         = duration;
 }
Exemplo n.º 2
0
        private PiffTrackHeader(
            DateTime created, long duration,
            int trackId, PiffTrackTypes trackType, short width, short height)
        {
            CreationTime     = PiffWriter.GetSecondsFromEpoch(created);
            ModificationTime = CreationTime;
            TrackId          = trackId;
            Duration         = duration;

            if (trackType == PiffTrackTypes.Audio)
            {
                Volume = 0x100;
                Width  = 0;
                Height = 0;
            }
            else
            {
                Volume = 0;
                Width  = width << 16;
                Height = height << 16;
            }
        }