• Home
  • Raw
  • Download

Lines Matching refs:trun

4582 atom_trun_free (AtomTRUN * trun)  in atom_trun_free()  argument
4584 atom_full_clear (&trun->header); in atom_trun_free()
4585 atom_array_clear (&trun->entries); in atom_trun_free()
4586 g_free (trun); in atom_trun_free()
4704 atom_trun_copy_data (AtomTRUN * trun, guint8 ** buffer, guint64 * size, in atom_trun_copy_data() argument
4710 flags = atom_full_get_flags_as_uint (&trun->header); in atom_trun_copy_data()
4712 atom_full_set_flags_as_uint (&trun->header, flags); in atom_trun_copy_data()
4714 if (!atom_full_copy_data (&trun->header, buffer, size, offset)) { in atom_trun_copy_data()
4718 prop_copy_uint32 (trun->sample_count, buffer, size, offset); in atom_trun_copy_data()
4721 prop_copy_int32 (trun->data_offset, buffer, size, offset); in atom_trun_copy_data()
4724 prop_copy_uint32 (trun->first_sample_flags, buffer, size, offset); in atom_trun_copy_data()
4726 for (i = 0; i < atom_array_get_len (&trun->entries); i++) { in atom_trun_copy_data()
4727 TRUNSampleEntry *entry = &atom_array_index (&trun->entries, i); in atom_trun_copy_data()
4850 atom_trun_init (AtomTRUN * trun) in atom_trun_init() argument
4854 atom_full_init (&trun->header, FOURCC_trun, 0, 0, 0, flags); in atom_trun_init()
4855 trun->sample_count = 0; in atom_trun_init()
4856 trun->data_offset = 0; in atom_trun_init()
4857 trun->first_sample_flags = 0; in atom_trun_init()
4858 atom_array_init (&trun->entries, 512); in atom_trun_init()
4864 AtomTRUN *trun = g_new0 (AtomTRUN, 1); in atom_trun_new() local
4866 atom_trun_init (trun); in atom_trun_new()
4867 return trun; in atom_trun_new()
4903 atom_trun_set_offset (AtomTRUN * trun, gint32 offset) in atom_trun_set_offset() argument
4905 trun->header.flags[2] |= TR_DATA_OFFSET; in atom_trun_set_offset()
4906 trun->data_offset = offset; in atom_trun_set_offset()
4910 atom_trun_can_append_samples_to_entry (AtomTRUN * trun, in atom_trun_can_append_samples_to_entry() argument
4918 if (trun->data_offset + nentry->sample_size != data_offset) in atom_trun_can_append_samples_to_entry()
4930 atom_trun_append_samples (AtomTRUN * trun, TRUNSampleEntry * nentry, in atom_trun_append_samples() argument
4933 trun->sample_count += nsamples; in atom_trun_append_samples()
4937 atom_trun_add_samples (AtomTRUN * trun, guint32 nsamples, guint32 delta, in atom_trun_add_samples() argument
4943 trun->header.flags[1] |= (TR_COMPOSITION_TIME_OFFSETS >> 8); in atom_trun_add_samples()
4956 atom_array_append (&trun->entries, nentry, 256); in atom_trun_add_samples()
4957 trun->sample_count++; in atom_trun_add_samples()
4992 atom_traf_add_trun (AtomTRAF * traf, AtomTRUN * trun) in atom_traf_add_trun() argument
4994 traf->truns = g_list_append (traf->truns, trun); in atom_traf_add_trun()
5003 AtomTRUN *prev_trun, *trun = NULL; in atom_traf_add_samples() local
5012 trun = g_list_last (traf->truns)->data; in atom_traf_add_samples()
5014 &atom_array_index (&trun->entries, in atom_traf_add_samples()
5015 atom_array_get_len (&trun->entries) - 1); in atom_traf_add_samples()
5017 if (!atom_trun_can_append_samples_to_entry (trun, nentry, nsamples, delta, in atom_traf_add_samples()
5020 trun = NULL; in atom_traf_add_samples()
5024 prev_trun = trun; in atom_traf_add_samples()
5035 if (!trun) { in atom_traf_add_samples()
5036 trun = atom_trun_new (); in atom_traf_add_samples()
5037 atom_traf_add_trun (traf, trun); in atom_traf_add_samples()
5038 trun->first_sample_flags = flags; in atom_traf_add_samples()
5039 trun->data_offset = data_offset; in atom_traf_add_samples()
5041 trun->header.flags[2] |= TR_DATA_OFFSET; in atom_traf_add_samples()
5046 if (traf->tfhd.default_sample_duration != delta || prev_trun == trun) { in atom_traf_add_samples()
5052 if (traf->tfhd.default_sample_size != size || prev_trun == trun) { in atom_traf_add_samples()
5058 if (traf->tfhd.default_sample_flags != flags || prev_trun == trun) { in atom_traf_add_samples()
5059 if (trun->sample_count == 1) { in atom_traf_add_samples()
5062 trun->header.flags[2] |= TR_FIRST_SAMPLE_FLAGS; in atom_traf_add_samples()
5066 trun->header.flags[1] |= (TR_SAMPLE_FLAGS >> 8); in atom_traf_add_samples()
5067 trun->header.flags[2] &= ~TR_FIRST_SAMPLE_FLAGS; in atom_traf_add_samples()
5071 if (prev_trun == trun) { in atom_traf_add_samples()
5072 atom_trun_append_samples (trun, nentry, nsamples, delta, size); in atom_traf_add_samples()
5074 atom_trun_add_samples (trun, nsamples, delta, size, flags, pts_offset); in atom_traf_add_samples()
5084 AtomTRUN *trun; in atom_traf_get_sample_num() local
5090 trun = traf->truns->data; in atom_traf_get_sample_num()
5091 return atom_array_get_len (&trun->entries); in atom_traf_get_sample_num()