Lines Matching refs:traf
4571 AtomTRAF *traf = (AtomTRAF *) trafs->data; in atom_moof_set_base_offset() local
4573 traf->tfhd.header.flags[2] |= TF_BASE_DATA_OFFSET; in atom_moof_set_base_offset()
4574 traf->tfhd.base_data_offset = offset; in atom_moof_set_base_offset()
4598 atom_traf_free (AtomTRAF * traf) in atom_traf_free() argument
4602 walker = traf->truns; in atom_traf_free()
4607 g_list_free (traf->truns); in atom_traf_free()
4608 traf->truns = NULL; in atom_traf_free()
4610 walker = traf->sdtps; in atom_traf_free()
4615 g_list_free (traf->sdtps); in atom_traf_free()
4616 traf->sdtps = NULL; in atom_traf_free()
4618 g_free (traf); in atom_traf_free()
4763 atom_traf_copy_data (AtomTRAF * traf, guint8 ** buffer, guint64 * size, in atom_traf_copy_data() argument
4769 if (!atom_copy_data (&traf->header, buffer, size, offset)) { in atom_traf_copy_data()
4772 if (!atom_tfhd_copy_data (&traf->tfhd, buffer, size, offset)) { in atom_traf_copy_data()
4775 if (!atom_tfdt_copy_data (&traf->tfdt, buffer, size, offset)) { in atom_traf_copy_data()
4778 walker = g_list_first (traf->truns); in atom_traf_copy_data()
4786 walker = g_list_first (traf->sdtps); in atom_traf_copy_data()
4889 atom_traf_add_sdtp (AtomTRAF * traf, AtomSDTP * sdtp) in atom_traf_add_sdtp() argument
4891 traf->sdtps = g_list_append (traf->sdtps, sdtp); in atom_traf_add_sdtp()
4962 atom_traf_init (AtomTRAF * traf, AtomsContext * context, guint32 track_ID) in atom_traf_init() argument
4964 atom_header_set (&traf->header, FOURCC_traf, 0, 0); in atom_traf_init()
4965 atom_tfdt_init (&traf->tfdt); in atom_traf_init()
4966 atom_tfhd_init (&traf->tfhd, track_ID); in atom_traf_init()
4967 traf->truns = NULL; in atom_traf_init()
4970 atom_traf_add_sdtp (traf, atom_sdtp_new (context)); in atom_traf_init()
4976 AtomTRAF *traf = g_new0 (AtomTRAF, 1); in atom_traf_new() local
4978 atom_traf_init (traf, context, track_ID); in atom_traf_new()
4979 return traf; in atom_traf_new()
4983 atom_traf_set_base_decode_time (AtomTRAF * traf, guint64 base_decode_time) in atom_traf_set_base_decode_time() argument
4985 traf->tfdt.base_media_decode_time = base_decode_time; in atom_traf_set_base_decode_time()
4988 traf->tfdt.header.version = 1; in atom_traf_set_base_decode_time()
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()
4998 atom_traf_add_samples (AtomTRAF * traf, guint32 nsamples, in atom_traf_add_samples() argument
5011 if (traf->truns) { in atom_traf_add_samples()
5012 trun = g_list_last (traf->truns)->data; in atom_traf_add_samples()
5026 if (!traf->truns) { in atom_traf_add_samples()
5028 traf->tfhd.header.flags[2] = TF_DEFAULT_SAMPLE_DURATION | in atom_traf_add_samples()
5030 traf->tfhd.default_sample_duration = delta; in atom_traf_add_samples()
5031 traf->tfhd.default_sample_size = size; in atom_traf_add_samples()
5032 traf->tfhd.default_sample_flags = flags; in atom_traf_add_samples()
5037 atom_traf_add_trun (traf, trun); in atom_traf_add_samples()
5046 if (traf->tfhd.default_sample_duration != delta || prev_trun == trun) { in atom_traf_add_samples()
5047 traf->tfhd.header.flags[2] &= ~TF_DEFAULT_SAMPLE_DURATION; in atom_traf_add_samples()
5048 for (l = traf->truns; l; l = g_list_next (l)) { in atom_traf_add_samples()
5052 if (traf->tfhd.default_sample_size != size || prev_trun == trun) { in atom_traf_add_samples()
5053 traf->tfhd.header.flags[2] &= ~TF_DEFAULT_SAMPLE_SIZE; in atom_traf_add_samples()
5054 for (l = traf->truns; l; l = g_list_next (l)) { in atom_traf_add_samples()
5058 if (traf->tfhd.default_sample_flags != flags || prev_trun == trun) { in atom_traf_add_samples()
5061 traf->tfhd.default_sample_flags = flags; in atom_traf_add_samples()
5065 traf->tfhd.header.flags[2] &= ~TF_DEFAULT_SAMPLE_FLAGS; in atom_traf_add_samples()
5077 if (traf->sdtps) in atom_traf_add_samples()
5078 atom_sdtp_add_samples (traf->sdtps->data, 0x10 | ((flags & 0xff) >> 4)); in atom_traf_add_samples()
5082 atom_traf_get_sample_num (AtomTRAF * traf) in atom_traf_get_sample_num() argument
5086 if (G_UNLIKELY (!traf->truns)) in atom_traf_get_sample_num()
5090 trun = traf->truns->data; in atom_traf_get_sample_num()
5095 atom_moof_add_traf (AtomMOOF * moof, AtomTRAF * traf) in atom_moof_add_traf() argument
5097 moof->trafs = g_list_append (moof->trafs, traf); in atom_moof_add_traf()