Ejemplo n.º 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)));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public static PiffMediaInformation CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffMediaInformation(null, new PiffVideoMediaHeader(),
                                     PiffSampleTable.CreateVideo(video, keyId)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 5
0
 public static PiffSampleTable CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffSampleTable(
                PiffSampleDescription.CreateVideo(video, keyId)));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 7
0
 public static PiffSampleDescription CreateVideo(PiffVideoManifest video, Guid keyId)
 {
     return(new PiffSampleDescription(
                null,
                new PiffProtectedVideoSampleEntry(video, keyId)));
 }