本文整理汇总了C#中Stream.WriteBEUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.WriteBEUInt32方法的具体用法?C# Stream.WriteBEUInt32怎么用?C# Stream.WriteBEUInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stream
的用法示例。
在下文中一共展示了Stream.WriteBEUInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
if (Version == 1)
{
stream.WriteBEUInt64(MovieHeaderBox.Convert1904Time(CreationTime));
stream.WriteBEUInt64(MovieHeaderBox.Convert1904Time(ModificationTime));
stream.WriteBEUInt32(TrackID);
stream.WriteBEUInt32(_Reserved1);
stream.WriteBEUInt64(Duration);
}
else // if (Version == 0)
{
stream.WriteBEUInt32((uint)MovieHeaderBox.Convert1904Time(CreationTime));
stream.WriteBEUInt32((uint)MovieHeaderBox.Convert1904Time(ModificationTime));
stream.WriteBEUInt32(TrackID);
stream.WriteBEUInt32(_Reserved1);
stream.WriteBEUInt32((uint)Duration);
}
for(int i=0; i<2; i++) stream.WriteBEUInt32(_Reserved2[i]);
stream.WriteBEInt16(Layer);
stream.WriteBEInt16(AlternateGroup);
stream.WriteBEInt16(Volume);
stream.WriteBEUInt16(_Reserved3);
for (int i = 0; i < 9; i++) stream.WriteBEInt32(_Matrix[i]);
stream.WriteBEUInt32(Width);
stream.WriteBEUInt32(Height);
}
示例2: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(Width);
stream.WriteBEUInt32(Height);
}
示例3: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(TrackID);
stream.WriteBEUInt32(DefaultSampleDescriptionIndex);
stream.WriteBEUInt32(DefaultSampleDuration);
stream.WriteBEUInt32(DefaultSampleSize);
stream.WriteBEUInt32(DefaultSampleFlags._flags);
}
示例4: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt16(MaxProtocolDataUnitSize);
stream.WriteBEUInt16(AverageProtocolDataUnitSize);
stream.WriteBEUInt32(MaxBitrate);
stream.WriteBEUInt32(AverageBitrate);
stream.WriteBEUInt32(_Reserved);
}
示例5: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(_Predefined);
stream.WriteBEUInt32(HandlerType);
for (int i = 0; i < _Reserved.Length; i++) stream.WriteBEUInt32(_Reserved[i]);
if(Name != null)
stream.WriteUTF8String(Name);
}
示例6: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(_Height);
stream.WriteBEUInt32(_Width);
stream.WriteBEUInt16(_NumberOfComponents);
stream.WriteOneByte(BitsPerComponent);
stream.WriteOneByte(_CompressionType);
stream.WriteOneByte(_IsUnknownColorspace);
stream.WriteOneByte(_IsIntellectualProperty);
}
示例7: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteNullTerminatedUTF8String(Alias);
stream.WriteBEUInt32(ResourceType);
stream.WriteBEInt16(Id);
}
示例8: SaveToStream
protected override void SaveToStream(Stream stream)
{
if(FragmentDuration > UInt32.MaxValue) Version = 1;
base.SaveToStream(stream);
if (Version == 1) stream.WriteBEUInt64(FragmentDuration);
else stream.WriteBEUInt32((uint)FragmentDuration);
}
示例9: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteOneByte((byte)SpecificationMethod);
stream.WriteOneByte(Precedence);
stream.WriteOneByte(ColorspaceApproximation);
if (SpecificationMethod == SpecificationMethods.EnumeratedColorspace)
stream.WriteBEUInt32((uint)EnumeratedColorspace);
// TODO: Write Profile
}
示例10: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBytes(MajorBrand.GetBytes());
stream.WriteBEUInt32(MinorVersion);
foreach (FourCC compatibleBrand in _CompatibleBrands)
{
stream.WriteBytes(compatibleBrand.GetBytes());
}
}
示例11: SaveToStream
protected override void SaveToStream(Stream stream)
{
TrackFragmentFlags newFlags = 0;
if (BaseDataOffset.HasValue) newFlags |= TrackFragmentFlags.BaseDataOffsetPresent;
if (SampleDescriptionIndex.HasValue) newFlags |= TrackFragmentFlags.SampleDrescriptionIndexPresent;
if (DefaultSampleDuration.HasValue) newFlags |= TrackFragmentFlags.DefaultSampleDurationPresent;
if (DefaultSampleSize.HasValue) newFlags |= TrackFragmentFlags.DefaultSampleSizePresent;
if (DefaultSampleFlags != null) newFlags |= TrackFragmentFlags.DefaultSampleFlagsPresent;
if (DurationIsEmpty) newFlags |= TrackFragmentFlags.DurationIsEmpty;
Flags = newFlags;
base.SaveToStream(stream);
stream.WriteBEUInt32(TrackID);
if (BaseDataOffset.HasValue) stream.WriteBEUInt64(BaseDataOffset.Value);
if (SampleDescriptionIndex.HasValue) stream.WriteBEUInt32(SampleDescriptionIndex.Value);
if (DefaultSampleDuration.HasValue) stream.WriteBEUInt32(DefaultSampleDuration.Value);
if (DefaultSampleSize.HasValue) stream.WriteBEUInt32(DefaultSampleSize.Value);
if (DefaultSampleFlags!=null) stream.WriteBEUInt32(DefaultSampleFlags._flags);
}
示例12: SaveToStream
protected override void SaveToStream(Stream stream)
{
if (Version==0 &&
(_CreationTime > uint.MaxValue ||
_ModificationTime > uint.MaxValue ||
Duration > uint.MaxValue)) Version = 1;
base.SaveToStream(stream);
if (Version == 1)
{
stream.WriteBEUInt64(_CreationTime);
stream.WriteBEUInt64(_ModificationTime);
stream.WriteBEUInt32(TimeScale);
stream.WriteBEUInt64(Duration);
}
else // if(Version == 0)
{
stream.WriteBEUInt32(checked((uint)_CreationTime));
stream.WriteBEUInt32(checked((uint)_ModificationTime));
stream.WriteBEUInt32(TimeScale);
stream.WriteBEUInt32(checked((uint)Duration));
}
stream.WriteBEInt32(_Rate);
stream.WriteBEInt16(_Volume);
stream.WriteBytes(Reserved);
for (int i = 0; i < 9; i++) stream.WriteBEInt32(Matrix[i]);
stream.WriteBytes(PreDefined);
stream.WriteBEUInt32(NextTrackID);
}
示例13: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
if (Version == 1)
{
stream.WriteBEUInt64(MovieHeaderBox.Convert1904Time(CreationTime));
stream.WriteBEUInt64(MovieHeaderBox.Convert1904Time(ModificationTime));
stream.WriteBEUInt32(TimeScale);
stream.WriteBEUInt64(Duration);
}
else // if (Version == 0)
{
stream.WriteBEUInt32((uint)MovieHeaderBox.Convert1904Time(CreationTime));
stream.WriteBEUInt32((uint)MovieHeaderBox.Convert1904Time(ModificationTime));
stream.WriteBEUInt32(TimeScale);
stream.WriteBEUInt32((uint)Duration);
}
stream.WriteBEUInt16(ConvertThreeLetterLanguageCode(Language));
stream.WriteBEUInt16(Predefined);
}
示例14: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(MfraSize);
}
示例15: SaveToStream
protected override void SaveToStream(Stream stream)
{
base.SaveToStream(stream);
stream.WriteBEUInt32(DataFormat);
}