Пример #1
0
        //public ChunkLargeOffsetBox ChunkLargeOffsetBox { get; set; }
        //public SyncSampleBox SyncSampleBox { get; set; }
        //public ShadowSyncSampleBox ShadowSyncSampleBox { get; set; }
        //public PaddingBitsBox PaddingBitsBox { get; set; }
        //public DegradationPriorityBox DegradationPriorityBox { get; set; }
        //public SampleDependencyTypeBox SampleDependencyTypeBox { get; set; }
        //public SampleToGroupBox SampleToGroupBox { get; set; }
        //public SampleGroupDescriptionBox SampleGroupDescriptionBox { get; set; }
        //public SubSampleInformationBox SubSampleInformationBox { get; set; }

        public void ToBuffer(ref FMp4MessagePackWriter writer)
        {
            Start(ref writer);
            SampleDescriptionBox.ToBuffer(ref writer);
            TimeToSampleBox.ToBuffer(ref writer);
            CompositionOffsetBox.ToBuffer(ref writer);
            SampleToChunkBox.ToBuffer(ref writer);
            ChunkOffsetBox.ToBuffer(ref writer);
            End(ref writer);
        }
Пример #2
0
        //public ChunkLargeOffsetBox ChunkLargeOffsetBox { get; set; }
        //public ShadowSyncSampleBox ShadowSyncSampleBox { get; set; }
        //public PaddingBitsBox PaddingBitsBox { get; set; }
        //public DegradationPriorityBox DegradationPriorityBox { get; set; }
        //public SampleDependencyTypeBox SampleDependencyTypeBox { get; set; }
        //public SampleToGroupBox SampleToGroupBox { get; set; }
        //public SampleGroupDescriptionBox SampleGroupDescriptionBox { get; set; }
        //public SubSampleInformationBox SubSampleInformationBox { get; set; }

        public void ToBuffer(ref FMp4MessagePackWriter writer)
        {
            Start(ref writer);
            SampleDescriptionBox.ToBuffer(ref writer);
            TimeToSampleBox.ToBuffer(ref writer);
            if (SyncSampleBox != null)
            {
                SyncSampleBox.ToBuffer(ref writer);
            }
            if (CompositionOffsetBox != null)
            {
                CompositionOffsetBox.ToBuffer(ref writer);
            }
            SampleToChunkBox.ToBuffer(ref writer);
            if (SampleSizeBox != null)
            {
                SampleSizeBox.ToBuffer(ref writer);
            }
            ChunkOffsetBox.ToBuffer(ref writer);
            End(ref writer);
        }