Пример #1
0
 public static PIffTrackMediaInfo CreateVideo(
     PiffVideoManifest video, DateTime created, int timeScale, Guid keyId)
 {
     return(new PIffTrackMediaInfo(new PiffMediaHeader(created, video.Duration, timeScale),
                                   new PiffHandlerType(PiffTrackTypes.Video),
                                   PiffMediaInformation.CreateVideo(video, keyId)));
 }
Пример #2
0
 public PiffProtectedVideoSampleEntry(PiffVideoManifest video, Guid keyId)
 {
     Width            = video.Width;
     Height           = video.Height;
     Scheme           = PiffProtectionSchemeInformation.CreateVideo(video.CodecId, keyId);
     AvcConfiguration = new PiffAvcConfiguration(video.CodecId, video.CodecData);
 }
Пример #3
0
 public static PiffMediaInformation CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffMediaInformation(null, new PiffVideoMediaHeader(),
                                     PiffSampleTable.CreateVideo(video, keyId)));
 }
Пример #4
0
 public static PiffTrack CreateVideo(
     int trackId, PiffVideoManifest video, DateTime created, int timeScale, Guid keyId)
 {
     return(new PiffTrack(PiffTrackHeader.CreateVideo(trackId, created, video),
                          PIffTrackMediaInfo.CreateVideo(video, created, timeScale, keyId)));
 }
Пример #5
0
 public static PiffSampleTable CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffSampleTable(
                PiffSampleDescription.CreateVideo(video, keyId)));
 }
Пример #6
0
 public static PiffTrackHeader CreateVideo(int trackId, DateTime created, PiffVideoManifest video)
 {
     return(new PiffTrackHeader(created, video.Duration, trackId, PiffTrackTypes.Video,
                                video.Width, video.Height));
 }
Пример #7
0
 public static PiffSampleDescription CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffSampleDescription(
                null,
                new PiffProtectedVideoSampleEntry(video, keyId)));
 }