nsresult TimeToSampleBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(entry_count); return NS_OK; }
nsresult ESDBox::Write() { WRITE_FULLBOX(mControl, size) es_descriptor->Write(); return NS_OK; }
nsresult ChunkOffsetBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(entry_count); return NS_OK; }
nsresult MovieFragmentHeaderBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(sequence_number); return NS_OK; }
nsresult SampleSizeBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(sample_size); mControl->Write(sample_count); return NS_OK; }
nsresult SampleDescriptionBox::Write() { WRITE_FULLBOX(mControl, size) nsresult rv; mControl->Write(entry_count); rv = sample_entry_box->Write(); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; }
nsresult TrackExtendsBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(track_ID); mControl->Write(default_sample_description_index); mControl->Write(default_sample_duration); mControl->Write(default_sample_size); mControl->Write(default_sample_flags); return NS_OK; }
nsresult TrackFragmentHeaderBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(track_ID); if (flags.to_ulong() | base_data_offset_present) { mControl->Write(base_data_offset); } if (flags.to_ulong() | default_sample_duration_present) { mControl->Write(default_sample_duration); } return NS_OK; }
nsresult TrackRunBox::Write() { WRITE_FULLBOX(mControl, size) mControl->Write(sample_count); if (flags.to_ulong() & flags_data_offset_present) { mControl->Write(data_offset); } for (uint32_t i = 0; i < sample_count; i++) { mControl->Write(sample_info_table[i].sample_size); if (flags.to_ulong() & flags_sample_flags_present) { mControl->Write(sample_info_table[i].sample_flags); } } return NS_OK; }