• Home
  • Raw
  • Download

Lines Matching +refs:entry +refs:buffer

1610     guint8 ** buffer, guint64 * size, guint64 * offset)  in common_time_info_copy_data()  argument
1615 prop_copy_uint32 ((guint32) ti->creation_time, buffer, size, offset); in common_time_info_copy_data()
1616 prop_copy_uint32 ((guint32) ti->modification_time, buffer, size, offset); in common_time_info_copy_data()
1617 prop_copy_uint32 (ti->timescale, buffer, size, offset); in common_time_info_copy_data()
1618 prop_copy_uint32 ((guint32) ti->duration, buffer, size, offset); in common_time_info_copy_data()
1620 prop_copy_uint64 (ti->creation_time, buffer, size, offset); in common_time_info_copy_data()
1621 prop_copy_uint64 (ti->modification_time, buffer, size, offset); in common_time_info_copy_data()
1622 prop_copy_uint32 (ti->timescale, buffer, size, offset); in common_time_info_copy_data()
1623 prop_copy_uint64 (ti->duration, buffer, size, offset); in common_time_info_copy_data()
1629 atom_write_size (guint8 ** buffer, guint64 * size, guint64 * offset, in atom_write_size() argument
1634 prop_copy_uint32 (*offset - atom_pos, buffer, size, &atom_pos); in atom_write_size()
1638 atom_copy_empty (Atom * atom, guint8 ** buffer, guint64 * size, in atom_copy_empty() argument
1643 prop_copy_uint32 (0, buffer, size, offset); in atom_copy_empty()
1649 atom_copy_data (Atom * atom, guint8 ** buffer, guint64 * size, guint64 * offset) in atom_copy_data() argument
1654 prop_copy_uint32 (atom->size, buffer, size, offset); in atom_copy_data()
1655 prop_copy_fourcc (atom->type, buffer, size, offset); in atom_copy_data()
1662 prop_copy_uint64 (atom->extended_size, buffer, size, offset); in atom_copy_data()
1669 atom_full_copy_data (AtomFull * atom, guint8 ** buffer, guint64 * size, in atom_full_copy_data() argument
1674 if (!atom_copy_data (&atom->header, buffer, size, offset)) { in atom_full_copy_data()
1678 prop_copy_uint8 (atom->version, buffer, size, offset); in atom_full_copy_data()
1679 prop_copy_uint8_array (atom->flags, 3, buffer, size, offset); in atom_full_copy_data()
1681 atom_write_size (buffer, size, offset, original_offset); in atom_full_copy_data()
1686 atom_info_list_copy_data (GList * ai, guint8 ** buffer, guint64 * size, in atom_info_list_copy_data() argument
1694 if (!info->copy_data_func (info->atom, buffer, size, offset)) { in atom_info_list_copy_data()
1704 atom_data_copy_data (AtomData * data, guint8 ** buffer, guint64 * size, in atom_data_copy_data() argument
1709 if (!atom_copy_data (&data->header, buffer, size, offset)) { in atom_data_copy_data()
1713 prop_copy_uint8_array (data->data, data->datalen, buffer, size, offset); in atom_data_copy_data()
1715 atom_write_size (buffer, size, offset, original_offset); in atom_data_copy_data()
1720 atom_uuid_copy_data (AtomUUID * uuid, guint8 ** buffer, guint64 * size, in atom_uuid_copy_data() argument
1725 if (!atom_copy_data (&uuid->header, buffer, size, offset)) { in atom_uuid_copy_data()
1728 prop_copy_uint8_array (uuid->uuid, 16, buffer, size, offset); in atom_uuid_copy_data()
1730 prop_copy_uint8_array (uuid->data, uuid->datalen, buffer, size, offset); in atom_uuid_copy_data()
1732 atom_write_size (buffer, size, offset, original_offset); in atom_uuid_copy_data()
1737 atom_ftyp_copy_data (AtomFTYP * ftyp, guint8 ** buffer, guint64 * size, in atom_ftyp_copy_data() argument
1742 if (!atom_copy_data (&ftyp->header, buffer, size, offset)) { in atom_ftyp_copy_data()
1745 prop_copy_fourcc (ftyp->major_brand, buffer, size, offset); in atom_ftyp_copy_data()
1746 prop_copy_uint32 (ftyp->version, buffer, size, offset); in atom_ftyp_copy_data()
1749 buffer, size, offset); in atom_ftyp_copy_data()
1751 atom_write_size (buffer, size, offset, original_offset); in atom_ftyp_copy_data()
1756 atom_mvhd_copy_data (AtomMVHD * atom, guint8 ** buffer, guint64 * size, in atom_mvhd_copy_data() argument
1762 if (!atom_full_copy_data (&(atom->header), buffer, size, offset)) { in atom_mvhd_copy_data()
1768 common_time_info_copy_data (&atom->time_info, TRUE, buffer, size, offset); in atom_mvhd_copy_data()
1770 common_time_info_copy_data (&atom->time_info, FALSE, buffer, size, offset); in atom_mvhd_copy_data()
1776 prop_copy_uint32 (atom->prefered_rate, buffer, size, offset); in atom_mvhd_copy_data()
1777 prop_copy_uint16 (atom->volume, buffer, size, offset); in atom_mvhd_copy_data()
1778 prop_copy_uint16 (atom->reserved3, buffer, size, offset); in atom_mvhd_copy_data()
1779 prop_copy_uint32_array (atom->reserved4, 2, buffer, size, offset); in atom_mvhd_copy_data()
1780 prop_copy_uint32_array (atom->matrix, 9, buffer, size, offset); in atom_mvhd_copy_data()
1781 prop_copy_uint32 (atom->preview_time, buffer, size, offset); in atom_mvhd_copy_data()
1782 prop_copy_uint32 (atom->preview_duration, buffer, size, offset); in atom_mvhd_copy_data()
1783 prop_copy_uint32 (atom->poster_time, buffer, size, offset); in atom_mvhd_copy_data()
1784 prop_copy_uint32 (atom->selection_time, buffer, size, offset); in atom_mvhd_copy_data()
1785 prop_copy_uint32 (atom->selection_duration, buffer, size, offset); in atom_mvhd_copy_data()
1786 prop_copy_uint32 (atom->current_time, buffer, size, offset); in atom_mvhd_copy_data()
1788 prop_copy_uint32 (atom->next_track_id, buffer, size, offset); in atom_mvhd_copy_data()
1790 atom_write_size (buffer, size, offset, original_offset); in atom_mvhd_copy_data()
1795 atom_tkhd_copy_data (AtomTKHD * tkhd, guint8 ** buffer, guint64 * size, in atom_tkhd_copy_data() argument
1800 if (!atom_full_copy_data (&tkhd->header, buffer, size, offset)) { in atom_tkhd_copy_data()
1805 prop_copy_uint32 ((guint32) tkhd->creation_time, buffer, size, offset); in atom_tkhd_copy_data()
1806 prop_copy_uint32 ((guint32) tkhd->modification_time, buffer, size, offset); in atom_tkhd_copy_data()
1807 prop_copy_uint32 (tkhd->track_ID, buffer, size, offset); in atom_tkhd_copy_data()
1808 prop_copy_uint32 (tkhd->reserved, buffer, size, offset); in atom_tkhd_copy_data()
1809 prop_copy_uint32 ((guint32) tkhd->duration, buffer, size, offset); in atom_tkhd_copy_data()
1811 prop_copy_uint64 (tkhd->creation_time, buffer, size, offset); in atom_tkhd_copy_data()
1812 prop_copy_uint64 (tkhd->modification_time, buffer, size, offset); in atom_tkhd_copy_data()
1813 prop_copy_uint32 (tkhd->track_ID, buffer, size, offset); in atom_tkhd_copy_data()
1814 prop_copy_uint32 (tkhd->reserved, buffer, size, offset); in atom_tkhd_copy_data()
1815 prop_copy_uint64 (tkhd->duration, buffer, size, offset); in atom_tkhd_copy_data()
1818 prop_copy_uint32_array (tkhd->reserved2, 2, buffer, size, offset); in atom_tkhd_copy_data()
1819 prop_copy_uint16 (tkhd->layer, buffer, size, offset); in atom_tkhd_copy_data()
1820 prop_copy_uint16 (tkhd->alternate_group, buffer, size, offset); in atom_tkhd_copy_data()
1821 prop_copy_uint16 (tkhd->volume, buffer, size, offset); in atom_tkhd_copy_data()
1822 prop_copy_uint16 (tkhd->reserved3, buffer, size, offset); in atom_tkhd_copy_data()
1823 prop_copy_uint32_array (tkhd->matrix, 9, buffer, size, offset); in atom_tkhd_copy_data()
1825 prop_copy_uint32 (tkhd->width, buffer, size, offset); in atom_tkhd_copy_data()
1826 prop_copy_uint32 (tkhd->height, buffer, size, offset); in atom_tkhd_copy_data()
1828 atom_write_size (buffer, size, offset, original_offset); in atom_tkhd_copy_data()
1833 atom_hdlr_copy_data (AtomHDLR * hdlr, guint8 ** buffer, guint64 * size, in atom_hdlr_copy_data() argument
1838 if (!atom_full_copy_data (&hdlr->header, buffer, size, offset)) { in atom_hdlr_copy_data()
1842 prop_copy_fourcc (hdlr->component_type, buffer, size, offset); in atom_hdlr_copy_data()
1843 prop_copy_fourcc (hdlr->handler_type, buffer, size, offset); in atom_hdlr_copy_data()
1844 prop_copy_fourcc (hdlr->manufacturer, buffer, size, offset); in atom_hdlr_copy_data()
1845 prop_copy_uint32 (hdlr->flags, buffer, size, offset); in atom_hdlr_copy_data()
1846 prop_copy_uint32 (hdlr->flags_mask, buffer, size, offset); in atom_hdlr_copy_data()
1849 prop_copy_size_string ((guint8 *) hdlr->name, strlen (hdlr->name), buffer, in atom_hdlr_copy_data()
1853 prop_copy_null_terminated_string (hdlr->name, buffer, size, offset); in atom_hdlr_copy_data()
1856 atom_write_size (buffer, size, offset, original_offset); in atom_hdlr_copy_data()
1861 atom_vmhd_copy_data (AtomVMHD * vmhd, guint8 ** buffer, guint64 * size, in atom_vmhd_copy_data() argument
1866 if (!atom_full_copy_data (&vmhd->header, buffer, size, offset)) { in atom_vmhd_copy_data()
1869 prop_copy_uint16 (vmhd->graphics_mode, buffer, size, offset); in atom_vmhd_copy_data()
1870 prop_copy_uint16_array (vmhd->opcolor, 3, buffer, size, offset); in atom_vmhd_copy_data()
1872 atom_write_size (buffer, size, offset, original_offset); in atom_vmhd_copy_data()
1877 atom_smhd_copy_data (AtomSMHD * smhd, guint8 ** buffer, guint64 * size, in atom_smhd_copy_data() argument
1882 if (!atom_full_copy_data (&smhd->header, buffer, size, offset)) { in atom_smhd_copy_data()
1885 prop_copy_uint16 (smhd->balance, buffer, size, offset); in atom_smhd_copy_data()
1886 prop_copy_uint16 (smhd->reserved, buffer, size, offset); in atom_smhd_copy_data()
1888 atom_write_size (buffer, size, offset, original_offset); in atom_smhd_copy_data()
1893 atom_hmhd_copy_data (AtomHMHD * hmhd, guint8 ** buffer, guint64 * size, in atom_hmhd_copy_data() argument
1898 if (!atom_full_copy_data (&hmhd->header, buffer, size, offset)) { in atom_hmhd_copy_data()
1901 prop_copy_uint16 (hmhd->max_pdu_size, buffer, size, offset); in atom_hmhd_copy_data()
1902 prop_copy_uint16 (hmhd->avg_pdu_size, buffer, size, offset); in atom_hmhd_copy_data()
1903 prop_copy_uint32 (hmhd->max_bitrate, buffer, size, offset); in atom_hmhd_copy_data()
1904 prop_copy_uint32 (hmhd->avg_bitrate, buffer, size, offset); in atom_hmhd_copy_data()
1905 prop_copy_uint32 (hmhd->sliding_avg_bitrate, buffer, size, offset); in atom_hmhd_copy_data()
1907 atom_write_size (buffer, size, offset, original_offset); in atom_hmhd_copy_data()
1912 atom_tcmi_copy_data (AtomTCMI * tcmi, guint8 ** buffer, guint64 * size, in atom_tcmi_copy_data() argument
1917 if (!atom_full_copy_data (&tcmi->header, buffer, size, offset)) { in atom_tcmi_copy_data()
1920 prop_copy_uint16 (tcmi->text_font, buffer, size, offset); in atom_tcmi_copy_data()
1921 prop_copy_uint16 (tcmi->text_face, buffer, size, offset); in atom_tcmi_copy_data()
1922 prop_copy_uint16 (tcmi->text_size, buffer, size, offset); in atom_tcmi_copy_data()
1923 prop_copy_uint16 (tcmi->text_color[0], buffer, size, offset); in atom_tcmi_copy_data()
1924 prop_copy_uint16 (tcmi->text_color[1], buffer, size, offset); in atom_tcmi_copy_data()
1925 prop_copy_uint16 (tcmi->text_color[2], buffer, size, offset); in atom_tcmi_copy_data()
1926 prop_copy_uint16 (tcmi->bg_color[0], buffer, size, offset); in atom_tcmi_copy_data()
1927 prop_copy_uint16 (tcmi->bg_color[1], buffer, size, offset); in atom_tcmi_copy_data()
1928 prop_copy_uint16 (tcmi->bg_color[2], buffer, size, offset); in atom_tcmi_copy_data()
1930 prop_copy_uint16 (0, buffer, size, offset); in atom_tcmi_copy_data()
1932 buffer, size, offset); in atom_tcmi_copy_data()
1934 atom_write_size (buffer, size, offset, original_offset); in atom_tcmi_copy_data()
1939 atom_tmcd_copy_data (AtomTMCD * tmcd, guint8 ** buffer, guint64 * size, in atom_tmcd_copy_data() argument
1944 if (!atom_copy_data (&tmcd->header, buffer, size, offset)) { in atom_tmcd_copy_data()
1947 if (!atom_tcmi_copy_data (&tmcd->tcmi, buffer, size, offset)) { in atom_tmcd_copy_data()
1951 atom_write_size (buffer, size, offset, original_offset); in atom_tmcd_copy_data()
1956 atom_gmin_copy_data (AtomGMIN * gmin, guint8 ** buffer, guint64 * size, in atom_gmin_copy_data() argument
1961 if (!atom_full_copy_data (&gmin->header, buffer, size, offset)) { in atom_gmin_copy_data()
1964 prop_copy_uint16 (gmin->graphics_mode, buffer, size, offset); in atom_gmin_copy_data()
1965 prop_copy_uint16 (gmin->opcolor[0], buffer, size, offset); in atom_gmin_copy_data()
1966 prop_copy_uint16 (gmin->opcolor[1], buffer, size, offset); in atom_gmin_copy_data()
1967 prop_copy_uint16 (gmin->opcolor[2], buffer, size, offset); in atom_gmin_copy_data()
1968 prop_copy_uint8 (gmin->balance, buffer, size, offset); in atom_gmin_copy_data()
1970 prop_copy_uint8 (0, buffer, size, offset); in atom_gmin_copy_data()
1972 atom_write_size (buffer, size, offset, original_offset); in atom_gmin_copy_data()
1977 atom_gmhd_copy_data (AtomGMHD * gmhd, guint8 ** buffer, guint64 * size, in atom_gmhd_copy_data() argument
1982 if (!atom_copy_data (&gmhd->header, buffer, size, offset)) { in atom_gmhd_copy_data()
1985 if (!atom_gmin_copy_data (&gmhd->gmin, buffer, size, offset)) { in atom_gmhd_copy_data()
1988 if (gmhd->tmcd && !atom_tmcd_copy_data (gmhd->tmcd, buffer, size, offset)) { in atom_gmhd_copy_data()
1992 atom_write_size (buffer, size, offset, original_offset); in atom_gmhd_copy_data()
1997 atom_nmhd_copy_data (AtomNMHD * nmhd, guint8 ** buffer, guint64 * size, in atom_nmhd_copy_data() argument
2002 if (!atom_copy_data (&nmhd->header, buffer, size, offset)) { in atom_nmhd_copy_data()
2005 prop_copy_uint32 (nmhd->flags, buffer, size, offset); in atom_nmhd_copy_data()
2007 atom_write_size (buffer, size, offset, original_offset); in atom_nmhd_copy_data()
2018 atom_url_copy_data (AtomURL * url, guint8 ** buffer, guint64 * size, in atom_url_copy_data() argument
2023 if (!atom_full_copy_data (&url->header, buffer, size, offset)) { in atom_url_copy_data()
2028 prop_copy_null_terminated_string (url->location, buffer, size, offset); in atom_url_copy_data()
2031 atom_write_size (buffer, size, offset, original_offset); in atom_url_copy_data()
2036 atom_stts_copy_data (AtomSTTS * stts, guint8 ** buffer, guint64 * size, in atom_stts_copy_data() argument
2042 if (!atom_full_copy_data (&stts->header, buffer, size, offset)) { in atom_stts_copy_data()
2046 prop_copy_uint32 (atom_array_get_len (&stts->entries), buffer, size, offset); in atom_stts_copy_data()
2048 prop_copy_ensure_buffer (buffer, size, offset, in atom_stts_copy_data()
2051 STTSEntry *entry = &atom_array_index (&stts->entries, i); in atom_stts_copy_data() local
2053 prop_copy_uint32 (entry->sample_count, buffer, size, offset); in atom_stts_copy_data()
2054 prop_copy_int32 (entry->sample_delta, buffer, size, offset); in atom_stts_copy_data()
2057 atom_write_size (buffer, size, offset, original_offset); in atom_stts_copy_data()
2062 atom_sample_entry_copy_data (SampleTableEntry * se, guint8 ** buffer, in atom_sample_entry_copy_data() argument
2067 if (!atom_copy_data (&se->header, buffer, size, offset)) { in atom_sample_entry_copy_data()
2071 prop_copy_uint8_array (se->reserved, 6, buffer, size, offset); in atom_sample_entry_copy_data()
2072 prop_copy_uint16 (se->data_reference_index, buffer, size, offset); in atom_sample_entry_copy_data()
2078 atom_esds_copy_data (AtomESDS * esds, guint8 ** buffer, guint64 * size, in atom_esds_copy_data() argument
2083 if (!atom_full_copy_data (&esds->header, buffer, size, offset)) { in atom_esds_copy_data()
2086 if (!desc_es_descriptor_copy_data (&esds->es, buffer, size, offset)) { in atom_esds_copy_data()
2090 atom_write_size (buffer, size, offset, original_offset); in atom_esds_copy_data()
2095 atom_frma_copy_data (AtomFRMA * frma, guint8 ** buffer, in atom_frma_copy_data() argument
2100 if (!atom_copy_data (&(frma->header), buffer, size, offset)) in atom_frma_copy_data()
2103 prop_copy_fourcc (frma->media_type, buffer, size, offset); in atom_frma_copy_data()
2105 atom_write_size (buffer, size, offset, original_offset); in atom_frma_copy_data()
2110 atom_hint_sample_entry_copy_data (AtomHintSampleEntry * hse, guint8 ** buffer, in atom_hint_sample_entry_copy_data() argument
2115 if (!atom_sample_entry_copy_data (&hse->se, buffer, size, offset)) { in atom_hint_sample_entry_copy_data()
2119 prop_copy_uint32 (hse->size, buffer, size, offset); in atom_hint_sample_entry_copy_data()
2120 prop_copy_uint8_array (hse->data, hse->size, buffer, size, offset); in atom_hint_sample_entry_copy_data()
2122 atom_write_size (buffer, size, offset, original_offset); in atom_hint_sample_entry_copy_data()
2127 sample_entry_mp4a_copy_data (SampleTableEntryMP4A * mp4a, guint8 ** buffer, in sample_entry_mp4a_copy_data() argument
2132 if (!atom_sample_entry_copy_data (&mp4a->se, buffer, size, offset)) { in sample_entry_mp4a_copy_data()
2136 prop_copy_uint16 (mp4a->version, buffer, size, offset); in sample_entry_mp4a_copy_data()
2137 prop_copy_uint16 (mp4a->revision_level, buffer, size, offset); in sample_entry_mp4a_copy_data()
2138 prop_copy_uint32 (mp4a->vendor, buffer, size, offset); in sample_entry_mp4a_copy_data()
2139 prop_copy_uint16 (mp4a->channels, buffer, size, offset); in sample_entry_mp4a_copy_data()
2140 prop_copy_uint16 (mp4a->sample_size, buffer, size, offset); in sample_entry_mp4a_copy_data()
2141 prop_copy_uint16 (mp4a->compression_id, buffer, size, offset); in sample_entry_mp4a_copy_data()
2142 prop_copy_uint16 (mp4a->packet_size, buffer, size, offset); in sample_entry_mp4a_copy_data()
2143 prop_copy_uint32 (mp4a->sample_rate, buffer, size, offset); in sample_entry_mp4a_copy_data()
2147 prop_copy_uint32 (mp4a->samples_per_packet, buffer, size, offset); in sample_entry_mp4a_copy_data()
2148 prop_copy_uint32 (mp4a->bytes_per_packet, buffer, size, offset); in sample_entry_mp4a_copy_data()
2149 prop_copy_uint32 (mp4a->bytes_per_frame, buffer, size, offset); in sample_entry_mp4a_copy_data()
2150 prop_copy_uint32 (mp4a->bytes_per_sample, buffer, size, offset); in sample_entry_mp4a_copy_data()
2154 if (!atom_info_list_copy_data (mp4a->extension_atoms, buffer, size, offset)) in sample_entry_mp4a_copy_data()
2158 atom_write_size (buffer, size, offset, original_offset); in sample_entry_mp4a_copy_data()
2163 sample_entry_mp4v_copy_data (SampleTableEntryMP4V * mp4v, guint8 ** buffer, in sample_entry_mp4v_copy_data() argument
2168 if (!atom_sample_entry_copy_data (&mp4v->se, buffer, size, offset)) { in sample_entry_mp4v_copy_data()
2172 prop_copy_uint16 (mp4v->version, buffer, size, offset); in sample_entry_mp4v_copy_data()
2173 prop_copy_uint16 (mp4v->revision_level, buffer, size, offset); in sample_entry_mp4v_copy_data()
2174 prop_copy_fourcc (mp4v->vendor, buffer, size, offset); in sample_entry_mp4v_copy_data()
2175 prop_copy_uint32 (mp4v->temporal_quality, buffer, size, offset); in sample_entry_mp4v_copy_data()
2176 prop_copy_uint32 (mp4v->spatial_quality, buffer, size, offset); in sample_entry_mp4v_copy_data()
2178 prop_copy_uint16 (mp4v->width, buffer, size, offset); in sample_entry_mp4v_copy_data()
2179 prop_copy_uint16 (mp4v->height, buffer, size, offset); in sample_entry_mp4v_copy_data()
2181 prop_copy_uint32 (mp4v->horizontal_resolution, buffer, size, offset); in sample_entry_mp4v_copy_data()
2182 prop_copy_uint32 (mp4v->vertical_resolution, buffer, size, offset); in sample_entry_mp4v_copy_data()
2183 prop_copy_uint32 (mp4v->datasize, buffer, size, offset); in sample_entry_mp4v_copy_data()
2185 prop_copy_uint16 (mp4v->frame_count, buffer, size, offset); in sample_entry_mp4v_copy_data()
2187 prop_copy_fixed_size_string ((guint8 *) mp4v->compressor, 32, buffer, size, in sample_entry_mp4v_copy_data()
2190 prop_copy_uint16 (mp4v->depth, buffer, size, offset); in sample_entry_mp4v_copy_data()
2191 prop_copy_uint16 (mp4v->color_table_id, buffer, size, offset); in sample_entry_mp4v_copy_data()
2195 !atom_info_list_copy_data (mp4v->extension_atoms, buffer, size, offset)) in sample_entry_mp4v_copy_data()
2198 atom_write_size (buffer, size, offset, original_offset); in sample_entry_mp4v_copy_data()
2203 sample_entry_tx3g_copy_data (SampleTableEntryTX3G * tx3g, guint8 ** buffer, in sample_entry_tx3g_copy_data() argument
2208 if (!atom_sample_entry_copy_data (&tx3g->se, buffer, size, offset)) { in sample_entry_tx3g_copy_data()
2212 prop_copy_uint32 (tx3g->display_flags, buffer, size, offset); in sample_entry_tx3g_copy_data()
2215 prop_copy_uint8 (1, buffer, size, offset); in sample_entry_tx3g_copy_data()
2216 prop_copy_uint8 (-1, buffer, size, offset); in sample_entry_tx3g_copy_data()
2217 prop_copy_uint32 (0, buffer, size, offset); in sample_entry_tx3g_copy_data()
2219 prop_copy_uint64 (tx3g->default_text_box, buffer, size, offset); in sample_entry_tx3g_copy_data()
2222 prop_copy_uint32 (0, buffer, size, offset); in sample_entry_tx3g_copy_data()
2224 prop_copy_uint16 (tx3g->font_id, buffer, size, offset); in sample_entry_tx3g_copy_data()
2225 prop_copy_uint8 (tx3g->font_face, buffer, size, offset); in sample_entry_tx3g_copy_data()
2226 prop_copy_uint8 (tx3g->font_size, buffer, size, offset); in sample_entry_tx3g_copy_data()
2227 prop_copy_uint32 (tx3g->foreground_color_rgba, buffer, size, offset); in sample_entry_tx3g_copy_data()
2234 if (!atom_copy_data (&atom, buffer, size, offset)) in sample_entry_tx3g_copy_data()
2236 prop_copy_uint16 (1, buffer, size, offset); /* Count must be 1 */ in sample_entry_tx3g_copy_data()
2237 prop_copy_uint16 (1, buffer, size, offset); /* Font id: 1 */ in sample_entry_tx3g_copy_data()
2238 prop_copy_size_string ((guint8 *) "Serif", 5, buffer, size, offset); in sample_entry_tx3g_copy_data()
2241 atom_write_size (buffer, size, offset, original_offset); in sample_entry_tx3g_copy_data()
2246 sample_entry_tmcd_copy_data (SampleTableEntryTMCD * tmcd, guint8 ** buffer, in sample_entry_tmcd_copy_data() argument
2251 if (!atom_sample_entry_copy_data (&tmcd->se, buffer, size, offset)) { in sample_entry_tmcd_copy_data()
2256 prop_copy_uint32 (0, buffer, size, offset); in sample_entry_tmcd_copy_data()
2258 prop_copy_uint32 (tmcd->tc_flags, buffer, size, offset); in sample_entry_tmcd_copy_data()
2259 prop_copy_uint32 (tmcd->timescale, buffer, size, offset); in sample_entry_tmcd_copy_data()
2260 prop_copy_uint32 (tmcd->frame_duration, buffer, size, offset); in sample_entry_tmcd_copy_data()
2261 prop_copy_uint8 (tmcd->n_frames, buffer, size, offset); in sample_entry_tmcd_copy_data()
2264 prop_copy_uint8 (0, buffer, size, offset); in sample_entry_tmcd_copy_data()
2270 if (!atom_copy_data (&atom, buffer, size, offset)) in sample_entry_tmcd_copy_data()
2272 prop_copy_uint16 (strlen (tmcd->name.name), buffer, size, offset); in sample_entry_tmcd_copy_data()
2273 prop_copy_uint16 (tmcd->name.language_code, buffer, size, offset); in sample_entry_tmcd_copy_data()
2275 strlen (tmcd->name.name), buffer, size, offset); in sample_entry_tmcd_copy_data()
2277 atom_write_size (buffer, size, offset, name_offset); in sample_entry_tmcd_copy_data()
2280 atom_write_size (buffer, size, offset, original_offset); in sample_entry_tmcd_copy_data()
2285 sample_entry_generic_copy_data (SampleTableEntry * entry, guint8 ** buffer, in sample_entry_generic_copy_data() argument
2290 if (!atom_sample_entry_copy_data (entry, buffer, size, offset)) { in sample_entry_generic_copy_data()
2294 atom_write_size (buffer, size, offset, original_offset); in sample_entry_generic_copy_data()
2299 atom_stsz_copy_data (AtomSTSZ * stsz, guint8 ** buffer, guint64 * size, in atom_stsz_copy_data() argument
2305 if (!atom_full_copy_data (&stsz->header, buffer, size, offset)) { in atom_stsz_copy_data()
2309 prop_copy_uint32 (stsz->sample_size, buffer, size, offset); in atom_stsz_copy_data()
2310 prop_copy_uint32 (stsz->table_size, buffer, size, offset); in atom_stsz_copy_data()
2313 prop_copy_ensure_buffer (buffer, size, offset, 4 * stsz->table_size); in atom_stsz_copy_data()
2317 prop_copy_uint32 (atom_array_index (&stsz->entries, i), buffer, size, in atom_stsz_copy_data()
2322 atom_write_size (buffer, size, offset, original_offset); in atom_stsz_copy_data()
2327 atom_stsc_copy_data (AtomSTSC * stsc, guint8 ** buffer, guint64 * size, in atom_stsc_copy_data() argument
2334 if (!atom_full_copy_data (&stsc->header, buffer, size, offset)) { in atom_stsc_copy_data()
2351 prop_copy_uint32 (atom_array_get_len (&stsc->entries), buffer, size, offset); in atom_stsc_copy_data()
2353 prop_copy_ensure_buffer (buffer, size, offset, in atom_stsc_copy_data()
2357 STSCEntry *entry = &atom_array_index (&stsc->entries, i); in atom_stsc_copy_data() local
2359 prop_copy_uint32 (entry->first_chunk, buffer, size, offset); in atom_stsc_copy_data()
2360 prop_copy_uint32 (entry->samples_per_chunk, buffer, size, offset); in atom_stsc_copy_data()
2361 prop_copy_uint32 (entry->sample_description_index, buffer, size, offset); in atom_stsc_copy_data()
2364 atom_write_size (buffer, size, offset, original_offset); in atom_stsc_copy_data()
2378 atom_ctts_copy_data (AtomCTTS * ctts, guint8 ** buffer, guint64 * size, in atom_ctts_copy_data() argument
2384 if (!atom_full_copy_data (&ctts->header, buffer, size, offset)) { in atom_ctts_copy_data()
2388 prop_copy_uint32 (atom_array_get_len (&ctts->entries), buffer, size, offset); in atom_ctts_copy_data()
2390 prop_copy_ensure_buffer (buffer, size, offset, in atom_ctts_copy_data()
2393 CTTSEntry *entry = &atom_array_index (&ctts->entries, i); in atom_ctts_copy_data() local
2395 prop_copy_uint32 (entry->samplecount, buffer, size, offset); in atom_ctts_copy_data()
2396 prop_copy_uint32 (entry->sampleoffset, buffer, size, offset); in atom_ctts_copy_data()
2399 atom_write_size (buffer, size, offset, original_offset); in atom_ctts_copy_data()
2404 atom_svmi_copy_data (AtomSVMI * svmi, guint8 ** buffer, guint64 * size, in atom_svmi_copy_data() argument
2409 if (!atom_full_copy_data (&svmi->header, buffer, size, offset)) { in atom_svmi_copy_data()
2413 prop_copy_uint8 (svmi->stereoscopic_composition_type, buffer, size, offset); in atom_svmi_copy_data()
2414 prop_copy_uint8 (svmi->is_left_first ? 1 : 0, buffer, size, offset); in atom_svmi_copy_data()
2416 prop_copy_uint32 (0, buffer, size, offset); in atom_svmi_copy_data()
2418 atom_write_size (buffer, size, offset, original_offset); in atom_svmi_copy_data()
2423 atom_stco64_copy_data (AtomSTCO64 * stco64, guint8 ** buffer, guint64 * size, in atom_stco64_copy_data() argument
2440 if (!atom_full_copy_data (&stco64->header, buffer, size, offset)) { in atom_stco64_copy_data()
2444 prop_copy_uint32 (atom_array_get_len (&stco64->entries), buffer, size, in atom_stco64_copy_data()
2448 prop_copy_ensure_buffer (buffer, size, offset, in atom_stco64_copy_data()
2455 prop_copy_uint64 (value, buffer, size, offset); in atom_stco64_copy_data()
2457 prop_copy_uint32 ((guint32) value, buffer, size, offset); in atom_stco64_copy_data()
2461 atom_write_size (buffer, size, offset, original_offset); in atom_stco64_copy_data()
2466 atom_stss_copy_data (AtomSTSS * stss, guint8 ** buffer, guint64 * size, in atom_stss_copy_data() argument
2477 if (!atom_full_copy_data (&stss->header, buffer, size, offset)) { in atom_stss_copy_data()
2481 prop_copy_uint32 (atom_array_get_len (&stss->entries), buffer, size, offset); in atom_stss_copy_data()
2483 prop_copy_ensure_buffer (buffer, size, offset, in atom_stss_copy_data()
2486 prop_copy_uint32 (atom_array_index (&stss->entries, i), buffer, size, in atom_stss_copy_data()
2490 atom_write_size (buffer, size, offset, original_offset); in atom_stss_copy_data()
2495 atom_stsd_copy_data (AtomSTSD * stsd, guint8 ** buffer, guint64 * size, in atom_stsd_copy_data() argument
2501 if (!atom_full_copy_data (&stsd->header, buffer, size, offset)) { in atom_stsd_copy_data()
2505 prop_copy_uint32 (stsd->n_entries, buffer, size, offset); in atom_stsd_copy_data()
2514 buffer, size, offset)) { in atom_stsd_copy_data()
2520 buffer, size, offset)) { in atom_stsd_copy_data()
2527 walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2532 walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2537 walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2542 walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2547 walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2552 (AtomHintSampleEntry *) walker->data, buffer, size, offset)) { in atom_stsd_copy_data()
2560 atom_write_size (buffer, size, offset, original_offset); in atom_stsd_copy_data()
2565 atom_stbl_copy_data (AtomSTBL * stbl, guint8 ** buffer, guint64 * size, in atom_stbl_copy_data() argument
2570 if (!atom_copy_data (&stbl->header, buffer, size, offset)) { in atom_stbl_copy_data()
2574 if (!atom_stsd_copy_data (&stbl->stsd, buffer, size, offset)) { in atom_stbl_copy_data()
2577 if (!atom_stts_copy_data (&stbl->stts, buffer, size, offset)) { in atom_stbl_copy_data()
2583 if (!atom_stss_copy_data (&stbl->stss, buffer, size, offset)) { in atom_stbl_copy_data()
2588 if (!atom_stsc_copy_data (&stbl->stsc, buffer, size, offset)) { in atom_stbl_copy_data()
2591 if (!atom_stsz_copy_data (&stbl->stsz, buffer, size, offset)) { in atom_stbl_copy_data()
2595 if (!atom_ctts_copy_data (stbl->ctts, buffer, size, offset)) { in atom_stbl_copy_data()
2600 if (!atom_svmi_copy_data (stbl->svmi, buffer, size, offset)) { in atom_stbl_copy_data()
2604 if (!atom_stco64_copy_data (&stbl->stco64, buffer, size, offset)) { in atom_stbl_copy_data()
2608 atom_write_size (buffer, size, offset, original_offset); in atom_stbl_copy_data()
2614 atom_dref_copy_data (AtomDREF * dref, guint8 ** buffer, guint64 * size, in atom_dref_copy_data() argument
2620 if (!atom_full_copy_data (&dref->header, buffer, size, offset)) { in atom_dref_copy_data()
2624 prop_copy_uint32 (g_list_length (dref->entries), buffer, size, offset); in atom_dref_copy_data()
2631 if (!atom_url_copy_data ((AtomURL *) atom, buffer, size, offset)) in atom_dref_copy_data()
2634 if (!atom_full_copy_data ((AtomFull *) atom, buffer, size, offset)) in atom_dref_copy_data()
2642 atom_write_size (buffer, size, offset, original_offset); in atom_dref_copy_data()
2647 atom_dinf_copy_data (AtomDINF * dinf, guint8 ** buffer, guint64 * size, in atom_dinf_copy_data() argument
2652 if (!atom_copy_data (&dinf->header, buffer, size, offset)) { in atom_dinf_copy_data()
2656 if (!atom_dref_copy_data (&dinf->dref, buffer, size, offset)) { in atom_dinf_copy_data()
2660 atom_write_size (buffer, size, offset, original_offset); in atom_dinf_copy_data()
2665 atom_minf_copy_data (AtomMINF * minf, guint8 ** buffer, guint64 * size, in atom_minf_copy_data() argument
2670 if (!atom_copy_data (&minf->header, buffer, size, offset)) { in atom_minf_copy_data()
2675 if (!atom_vmhd_copy_data (minf->vmhd, buffer, size, offset)) { in atom_minf_copy_data()
2679 if (!atom_smhd_copy_data (minf->smhd, buffer, size, offset)) { in atom_minf_copy_data()
2683 if (!atom_hmhd_copy_data (minf->hmhd, buffer, size, offset)) { in atom_minf_copy_data()
2687 if (!atom_gmhd_copy_data (minf->gmhd, buffer, size, offset)) { in atom_minf_copy_data()
2691 if (!atom_nmhd_copy_data (minf->nmhd, buffer, size, offset)) { in atom_minf_copy_data()
2697 if (!atom_hdlr_copy_data (minf->hdlr, buffer, size, offset)) { in atom_minf_copy_data()
2702 if (!atom_dinf_copy_data (&minf->dinf, buffer, size, offset)) { in atom_minf_copy_data()
2705 if (!atom_stbl_copy_data (&minf->stbl, buffer, size, offset)) { in atom_minf_copy_data()
2709 atom_write_size (buffer, size, offset, original_offset); in atom_minf_copy_data()
2714 atom_mdhd_copy_data (AtomMDHD * mdhd, guint8 ** buffer, guint64 * size, in atom_mdhd_copy_data() argument
2719 if (!atom_full_copy_data (&mdhd->header, buffer, size, offset)) { in atom_mdhd_copy_data()
2724 atom_full_get_version (&mdhd->header) == 0, buffer, size, offset)) { in atom_mdhd_copy_data()
2728 prop_copy_uint16 (mdhd->language_code, buffer, size, offset); in atom_mdhd_copy_data()
2729 prop_copy_uint16 (mdhd->quality, buffer, size, offset); in atom_mdhd_copy_data()
2731 atom_write_size (buffer, size, offset, original_offset); in atom_mdhd_copy_data()
2736 atom_mdia_copy_data (AtomMDIA * mdia, guint8 ** buffer, guint64 * size, in atom_mdia_copy_data() argument
2741 if (!atom_copy_data (&mdia->header, buffer, size, offset)) { in atom_mdia_copy_data()
2744 if (!atom_mdhd_copy_data (&mdia->mdhd, buffer, size, offset)) { in atom_mdia_copy_data()
2747 if (!atom_hdlr_copy_data (&mdia->hdlr, buffer, size, offset)) { in atom_mdia_copy_data()
2751 if (!atom_minf_copy_data (&mdia->minf, buffer, size, offset)) { in atom_mdia_copy_data()
2755 atom_write_size (buffer, size, offset, original_offset); in atom_mdia_copy_data()
2760 atom_elst_copy_data (AtomELST * elst, guint8 ** buffer, guint64 * size, in atom_elst_copy_data() argument
2766 if (!atom_full_copy_data (&elst->header, buffer, size, offset)) { in atom_elst_copy_data()
2770 prop_copy_uint32 (g_slist_length (elst->entries), buffer, size, offset); in atom_elst_copy_data()
2773 EditListEntry *entry = (EditListEntry *) walker->data; in atom_elst_copy_data() local
2774 prop_copy_uint32 (entry->duration, buffer, size, offset); in atom_elst_copy_data()
2775 prop_copy_uint32 (entry->media_time, buffer, size, offset); in atom_elst_copy_data()
2776 prop_copy_uint32 (entry->media_rate, buffer, size, offset); in atom_elst_copy_data()
2778 atom_write_size (buffer, size, offset, original_offset); in atom_elst_copy_data()
2783 atom_tref_copy_data (AtomTREF * tref, guint8 ** buffer, guint64 * size, in atom_tref_copy_data() argument
2791 if (!atom_copy_data (&tref->header, buffer, size, offset)) { in atom_tref_copy_data()
2795 prop_copy_uint32 (8 + 4 * atom_array_get_len (&tref->entries), buffer, size, in atom_tref_copy_data()
2797 prop_copy_fourcc (tref->reftype, buffer, size, offset); in atom_tref_copy_data()
2799 prop_copy_ensure_buffer (buffer, size, offset, in atom_tref_copy_data()
2802 prop_copy_uint32 (atom_array_index (&tref->entries, i), buffer, size, in atom_tref_copy_data()
2806 atom_write_size (buffer, size, offset, original_offset); in atom_tref_copy_data()
2811 atom_edts_copy_data (AtomEDTS * edts, guint8 ** buffer, guint64 * size, in atom_edts_copy_data() argument
2816 if (!atom_copy_data (&(edts->header), buffer, size, offset)) in atom_edts_copy_data()
2819 if (!atom_elst_copy_data (&(edts->elst), buffer, size, offset)) in atom_edts_copy_data()
2822 atom_write_size (buffer, size, offset, original_offset); in atom_edts_copy_data()
2827 atom_tag_data_copy_data (AtomTagData * data, guint8 ** buffer, guint64 * size, in atom_tag_data_copy_data() argument
2832 if (!atom_full_copy_data (&data->header, buffer, size, offset)) { in atom_tag_data_copy_data()
2836 prop_copy_uint32 (data->reserved, buffer, size, offset); in atom_tag_data_copy_data()
2837 prop_copy_uint8_array (data->data, data->datalen, buffer, size, offset); in atom_tag_data_copy_data()
2839 atom_write_size (buffer, size, offset, original_offset); in atom_tag_data_copy_data()
2844 atom_tag_copy_data (AtomTag * tag, guint8 ** buffer, guint64 * size, in atom_tag_copy_data() argument
2849 if (!atom_copy_data (&tag->header, buffer, size, offset)) { in atom_tag_copy_data()
2853 if (!atom_tag_data_copy_data (&tag->data, buffer, size, offset)) { in atom_tag_copy_data()
2857 atom_write_size (buffer, size, offset, original_offset); in atom_tag_copy_data()
2862 atom_ilst_copy_data (AtomILST * ilst, guint8 ** buffer, guint64 * size, in atom_ilst_copy_data() argument
2867 if (!atom_copy_data (&ilst->header, buffer, size, offset)) { in atom_ilst_copy_data()
2872 !atom_info_list_copy_data (ilst->entries, buffer, size, offset)) in atom_ilst_copy_data()
2875 atom_write_size (buffer, size, offset, original_offset); in atom_ilst_copy_data()
2880 atom_meta_copy_data (AtomMETA * meta, guint8 ** buffer, guint64 * size, in atom_meta_copy_data() argument
2885 if (!atom_full_copy_data (&meta->header, buffer, size, offset)) { in atom_meta_copy_data()
2888 if (!atom_hdlr_copy_data (&meta->hdlr, buffer, size, offset)) { in atom_meta_copy_data()
2892 if (!atom_ilst_copy_data (meta->ilst, buffer, size, offset)) { in atom_meta_copy_data()
2897 atom_write_size (buffer, size, offset, original_offset); in atom_meta_copy_data()
2907 atom_xyz_copy_data(Atom * atom, guint8 ** buffer, guint64 * size, in atom_xyz_copy_data() argument
2937 prop_copy_uint32 (boxsize, buffer, size, offset); in atom_xyz_copy_data()
2938 prop_copy_fourcc (FOURCC__xyz, buffer, size, offset); in atom_xyz_copy_data()
2939 prop_copy_uint32 (format_language_code, buffer, size, offset); in atom_xyz_copy_data()
2941 prop_copy_uint8 (lat_sign, buffer, size, offset); in atom_xyz_copy_data()
2942 prop_copy_uint8 (lat_integer / 10 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2943 prop_copy_uint8 (lat_integer % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2945 prop_copy_uint8 (decimal_point, buffer, size, offset); in atom_xyz_copy_data()
2947 prop_copy_uint8 (lat_decimals / 1000 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2948 prop_copy_uint8 (lat_decimals / 100 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2949 prop_copy_uint8 (lat_decimals / 10 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2950 prop_copy_uint8 (lat_decimals % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2952 prop_copy_uint8 (lng_sign, buffer, size, offset); in atom_xyz_copy_data()
2953 prop_copy_uint8 (lng_integer / 100 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2954 prop_copy_uint8 (lng_integer / 10 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2955 prop_copy_uint8 (lng_integer % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2957 prop_copy_uint8 (decimal_point, buffer, size, offset); in atom_xyz_copy_data()
2959 prop_copy_uint8 (lng_decimals / 1000 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2960 prop_copy_uint8 (lng_decimals / 100 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2961 prop_copy_uint8 (lng_decimals / 10 % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2962 prop_copy_uint8 (lng_decimals % 10 + hexadecimal_zero, buffer, size, offset); in atom_xyz_copy_data()
2964 prop_copy_uint8 (end_sign, buffer, size, offset); in atom_xyz_copy_data()
2971 atom_udta_copy_data (AtomUDTA * udta, guint8 ** buffer, guint64 * size, in atom_udta_copy_data() argument
2976 if (!atom_copy_data (&udta->header, buffer, size, offset)) { in atom_udta_copy_data()
2987 … if (!atom_xyz_copy_data (&udta->header, buffer, size, offset, udta->latitude, udta->longitude)) { in atom_udta_copy_data()
2993 if (!atom_meta_copy_data (udta->meta, buffer, size, offset)) { in atom_udta_copy_data()
2999 if (!atom_info_list_copy_data (udta->entries, buffer, size, offset)) in atom_udta_copy_data()
3003 atom_write_size (buffer, size, offset, original_offset); in atom_udta_copy_data()
3008 atom_mehd_copy_data (AtomMEHD * mehd, guint8 ** buffer, guint64 * size, in atom_mehd_copy_data() argument
3013 if (!atom_full_copy_data (&mehd->header, buffer, size, offset)) { in atom_mehd_copy_data()
3017 prop_copy_uint64 (mehd->fragment_duration, buffer, size, offset); in atom_mehd_copy_data()
3019 atom_write_size (buffer, size, offset, original_offset); in atom_mehd_copy_data()
3024 atom_trex_copy_data (AtomTREX * trex, guint8 ** buffer, guint64 * size, in atom_trex_copy_data() argument
3029 if (!atom_full_copy_data (&trex->header, buffer, size, offset)) { in atom_trex_copy_data()
3033 prop_copy_uint32 (trex->track_ID, buffer, size, offset); in atom_trex_copy_data()
3034 prop_copy_uint32 (trex->default_sample_description_index, buffer, size, in atom_trex_copy_data()
3036 prop_copy_uint32 (trex->default_sample_duration, buffer, size, offset); in atom_trex_copy_data()
3037 prop_copy_uint32 (trex->default_sample_size, buffer, size, offset); in atom_trex_copy_data()
3038 prop_copy_uint32 (trex->default_sample_flags, buffer, size, offset); in atom_trex_copy_data()
3040 atom_write_size (buffer, size, offset, original_offset); in atom_trex_copy_data()
3045 atom_mvex_copy_data (AtomMVEX * mvex, guint8 ** buffer, guint64 * size, in atom_mvex_copy_data() argument
3051 if (!atom_copy_data (&mvex->header, buffer, size, offset)) { in atom_mvex_copy_data()
3056 if (!atom_mehd_copy_data (&mvex->mehd, buffer, size, offset)) { in atom_mvex_copy_data()
3062 if (!atom_trex_copy_data ((AtomTREX *) walker->data, buffer, size, offset)) { in atom_mvex_copy_data()
3068 atom_write_size (buffer, size, offset, original_offset); in atom_mvex_copy_data()
3073 atom_trak_copy_data (AtomTRAK * trak, guint8 ** buffer, guint64 * size, in atom_trak_copy_data() argument
3078 if (!atom_copy_data (&trak->header, buffer, size, offset)) { in atom_trak_copy_data()
3081 if (!atom_tkhd_copy_data (&trak->tkhd, buffer, size, offset)) { in atom_trak_copy_data()
3085 if (!trak->tapt->copy_data_func (trak->tapt->atom, buffer, size, offset)) { in atom_trak_copy_data()
3090 if (!atom_edts_copy_data (trak->edts, buffer, size, offset)) { in atom_trak_copy_data()
3097 if (!atom_tref_copy_data (trak->tref, buffer, size, offset)) { in atom_trak_copy_data()
3103 if (!atom_mdia_copy_data (&trak->mdia, buffer, size, offset)) { in atom_trak_copy_data()
3107 if (!atom_udta_copy_data (&trak->udta, buffer, size, offset)) { in atom_trak_copy_data()
3111 atom_write_size (buffer, size, offset, original_offset); in atom_trak_copy_data()
3117 atom_moov_copy_data (AtomMOOV * atom, guint8 ** buffer, guint64 * size, in atom_moov_copy_data() argument
3123 if (!atom_copy_data (&(atom->header), buffer, size, offset)) in atom_moov_copy_data()
3126 if (!atom_mvhd_copy_data (&(atom->mvhd), buffer, size, offset)) in atom_moov_copy_data()
3131 if (!atom_trak_copy_data ((AtomTRAK *) walker->data, buffer, size, offset)) { in atom_moov_copy_data()
3137 if (!atom_udta_copy_data (&atom->udta, buffer, size, offset)) { in atom_moov_copy_data()
3142 if (!atom_mvex_copy_data (&atom->mvex, buffer, size, offset)) { in atom_moov_copy_data()
3147 atom_write_size (buffer, size, offset, original_offset); in atom_moov_copy_data()
3152 atom_wave_copy_data (AtomWAVE * wave, guint8 ** buffer, in atom_wave_copy_data() argument
3157 if (!atom_copy_data (&(wave->header), buffer, size, offset)) in atom_wave_copy_data()
3161 if (!atom_info_list_copy_data (wave->extension_atoms, buffer, size, offset)) in atom_wave_copy_data()
3165 atom_write_size (buffer, size, offset, original_offset); in atom_wave_copy_data()
3217 STTSEntry *entry = NULL; in atom_stts_add_entry() local
3220 entry = &atom_array_index (&stts->entries, in atom_stts_add_entry()
3223 if (entry && entry->sample_delta == sample_delta) { in atom_stts_add_entry()
3224 entry->sample_count += sample_count; in atom_stts_add_entry()
3257 atom_stco64_add_entry (AtomSTCO64 * stco64, guint64 entry) in atom_stco64_add_entry() argument
3263 ((atom_array_index (&stco64->entries, len - 1)) == entry)) in atom_stco64_add_entry()
3266 atom_array_append (&stco64->entries, entry, 256); in atom_stco64_add_entry()
3267 if (entry > stco64->max_offset) in atom_stco64_add_entry()
3268 stco64->max_offset = entry; in atom_stco64_add_entry()
3296 CTTSEntry *entry = NULL; in atom_ctts_add_entry() local
3299 entry = &atom_array_index (&ctts->entries, in atom_ctts_add_entry()
3302 if (entry == NULL || entry->sampleoffset != offset) { in atom_ctts_add_entry()
3311 entry->samplecount += nsamples; in atom_ctts_add_entry()
3425 STTSEntry *entry = &atom_array_index (&stts->entries, i); in atom_stts_get_total_duration() local
3427 sum += (guint64) (entry->sample_count) * entry->sample_delta; in atom_stts_get_total_duration()
3450 STTSEntry *entry; in timecode_atom_trak_set_duration() local
3459 SampleTableEntry *entry = iter->data; in timecode_atom_trak_set_duration() local
3460 if (entry->kind == TIMECODE) { in timecode_atom_trak_set_duration()
3461 SampleTableEntryTMCD *tmcd = (SampleTableEntryTMCD *) entry; in timecode_atom_trak_set_duration()
3473 entry = &atom_array_index (&trak->mdia.minf.stbl.stts.entries, 0); in timecode_atom_trak_set_duration()
3474 entry->sample_delta = duration; in timecode_atom_trak_set_duration()
3569 SampleTableEntry *entry = iter->data; in atom_trak_update_bitrates() local
3571 switch (entry->kind) { in atom_trak_update_bitrates()
3573 SampleTableEntryMP4A *audioentry = (SampleTableEntryMP4A *) entry; in atom_trak_update_bitrates()
3578 SampleTableEntryMP4V *videoentry = (SampleTableEntryMP4V *) entry; in atom_trak_update_bitrates()
3635 SampleTableEntry *entry = iter->data; in atom_trak_tx3g_update_dimension() local
3637 switch (entry->kind) { in atom_trak_tx3g_update_dimension()
3639 tx3g = (SampleTableEntryTX3G *) entry; in atom_trak_tx3g_update_dimension()
3967 atom_edts_add_entry (AtomEDTS * edts, gint index, EditListEntry * entry) in atom_edts_add_entry() argument
3978 *e = *entry; in atom_edts_add_entry()
4001 EditListEntry entry; in atom_trak_set_elst_entry() local
4003 entry.duration = duration; in atom_trak_set_elst_entry()
4004 entry.media_time = media_time; in atom_trak_set_elst_entry()
4005 entry.media_rate = rate; in atom_trak_set_elst_entry()
4010 atom_edts_add_entry (trak->edts, index, &entry); in atom_trak_set_elst_entry()
4199 AudioSampleEntry * entry, guint32 scale, AtomInfo * ext, gint sample_size) in atom_trak_set_audio_type() argument
4205 ste = atom_trak_add_audio_entry (trak, context, entry->fourcc); in atom_trak_set_audio_type()
4210 ste->version = entry->version; in atom_trak_set_audio_type()
4211 ste->compression_id = entry->compression_id; in atom_trak_set_audio_type()
4212 ste->sample_size = entry->sample_size; in atom_trak_set_audio_type()
4213 ste->sample_rate = entry->sample_rate << 16; in atom_trak_set_audio_type()
4214 ste->channels = entry->channels; in atom_trak_set_audio_type()
4216 ste->samples_per_packet = entry->samples_per_packet; in atom_trak_set_audio_type()
4217 ste->bytes_per_sample = entry->bytes_per_sample; in atom_trak_set_audio_type()
4218 ste->bytes_per_packet = entry->bytes_per_packet; in atom_trak_set_audio_type()
4219 ste->bytes_per_frame = entry->bytes_per_frame; in atom_trak_set_audio_type()
4458 VisualSampleEntry * entry, guint32 scale, GList * ext_atoms_list) in atom_trak_set_video_type() argument
4464 par_n = entry->par_n; in atom_trak_set_video_type()
4465 par_d = entry->par_d; in atom_trak_set_video_type()
4467 dwidth = entry->width; in atom_trak_set_video_type()
4468 dheight = entry->height; in atom_trak_set_video_type()
4472 dwidth = entry->width * par_n / par_d; in atom_trak_set_video_type()
4473 dheight = entry->height; in atom_trak_set_video_type()
4479 trak->is_h264 = (entry->fourcc == FOURCC_avc1 in atom_trak_set_video_type()
4480 || entry->fourcc == FOURCC_avc3); in atom_trak_set_video_type()
4482 ste = atom_trak_add_video_entry (trak, context, entry->fourcc); in atom_trak_set_video_type()
4484 ste->version = entry->version; in atom_trak_set_video_type()
4485 ste->width = entry->width; in atom_trak_set_video_type()
4486 ste->height = entry->height; in atom_trak_set_video_type()
4487 ste->depth = entry->depth; in atom_trak_set_video_type()
4488 ste->color_table_id = entry->color_table_id; in atom_trak_set_video_type()
4489 ste->frame_count = entry->frame_count; in atom_trak_set_video_type()
4508 subtitle_sample_entry_init (SubtitleSampleEntry * entry) in subtitle_sample_entry_init() argument
4510 entry->font_size = 0; in subtitle_sample_entry_init()
4511 entry->font_face = 0; in subtitle_sample_entry_init()
4512 entry->foreground_color_rgba = 0xFFFFFFFF; /* all white, opaque */ in subtitle_sample_entry_init()
4517 SubtitleSampleEntry * entry) in atom_trak_set_subtitle_type() argument
4523 tx3g = atom_trak_add_subtitle_entry (trak, context, entry->fourcc); in atom_trak_set_subtitle_type()
4525 tx3g->font_face = entry->font_face; in atom_trak_set_subtitle_type()
4526 tx3g->font_size = entry->font_size; in atom_trak_set_subtitle_type()
4527 tx3g->foreground_color_rgba = entry->foreground_color_rgba; in atom_trak_set_subtitle_type()
4638 atom_mfhd_copy_data (AtomMFHD * mfhd, guint8 ** buffer, guint64 * size, in atom_mfhd_copy_data() argument
4643 if (!atom_full_copy_data (&mfhd->header, buffer, size, offset)) { in atom_mfhd_copy_data()
4647 prop_copy_uint32 (mfhd->sequence_number, buffer, size, offset); in atom_mfhd_copy_data()
4649 atom_write_size (buffer, size, offset, original_offset); in atom_mfhd_copy_data()
4654 atom_tfhd_copy_data (AtomTFHD * tfhd, guint8 ** buffer, guint64 * size, in atom_tfhd_copy_data() argument
4660 if (!atom_full_copy_data (&tfhd->header, buffer, size, offset)) { in atom_tfhd_copy_data()
4664 prop_copy_uint32 (tfhd->track_ID, buffer, size, offset); in atom_tfhd_copy_data()
4669 prop_copy_uint64 (tfhd->base_data_offset, buffer, size, offset); in atom_tfhd_copy_data()
4671 prop_copy_uint32 (tfhd->sample_description_index, buffer, size, offset); in atom_tfhd_copy_data()
4673 prop_copy_uint32 (tfhd->default_sample_duration, buffer, size, offset); in atom_tfhd_copy_data()
4675 prop_copy_uint32 (tfhd->default_sample_size, buffer, size, offset); in atom_tfhd_copy_data()
4677 prop_copy_uint32 (tfhd->default_sample_flags, buffer, size, offset); in atom_tfhd_copy_data()
4679 atom_write_size (buffer, size, offset, original_offset); in atom_tfhd_copy_data()
4684 atom_tfdt_copy_data (AtomTFDT * tfdt, guint8 ** buffer, guint64 * size, in atom_tfdt_copy_data() argument
4689 if (!atom_full_copy_data (&tfdt->header, buffer, size, offset)) { in atom_tfdt_copy_data()
4695 prop_copy_uint32 (tfdt->base_media_decode_time, buffer, size, offset); in atom_tfdt_copy_data()
4697 prop_copy_uint64 (tfdt->base_media_decode_time, buffer, size, offset); in atom_tfdt_copy_data()
4699 atom_write_size (buffer, size, offset, original_offset); in atom_tfdt_copy_data()
4704 atom_trun_copy_data (AtomTRUN * trun, guint8 ** buffer, guint64 * size, in atom_trun_copy_data() argument
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()
4727 TRUNSampleEntry *entry = &atom_array_index (&trun->entries, i); in atom_trun_copy_data() local
4730 prop_copy_uint32 (entry->sample_duration, buffer, size, offset); in atom_trun_copy_data()
4732 prop_copy_uint32 (entry->sample_size, buffer, size, offset); in atom_trun_copy_data()
4734 prop_copy_uint32 (entry->sample_flags, buffer, size, offset); in atom_trun_copy_data()
4736 prop_copy_uint32 (entry->sample_composition_time_offset, in atom_trun_copy_data()
4737 buffer, size, offset); in atom_trun_copy_data()
4740 atom_write_size (buffer, size, offset, original_offset); in atom_trun_copy_data()
4745 atom_sdtp_copy_data (AtomSDTP * sdtp, guint8 ** buffer, guint64 * size, in atom_sdtp_copy_data() argument
4750 if (!atom_full_copy_data (&sdtp->header, buffer, size, offset)) { in atom_sdtp_copy_data()
4756 atom_array_get_len (&sdtp->entries), buffer, size, offset); in atom_sdtp_copy_data()
4758 atom_write_size (buffer, size, offset, original_offset); in atom_sdtp_copy_data()
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()
4780 if (!atom_trun_copy_data ((AtomTRUN *) walker->data, buffer, size, offset)) { in atom_traf_copy_data()
4788 if (!atom_sdtp_copy_data ((AtomSDTP *) walker->data, buffer, size, offset)) { in atom_traf_copy_data()
4794 atom_write_size (buffer, size, offset, original_offset); in atom_traf_copy_data()
4801 atom_moof_copy_data (AtomMOOF * moof, guint8 ** buffer, in atom_moof_copy_data() argument
4807 if (!atom_copy_data (&moof->header, buffer, size, offset)) in atom_moof_copy_data()
4810 if (!atom_mfhd_copy_data (&moof->mfhd, buffer, size, offset)) in atom_moof_copy_data()
4815 if (!atom_traf_copy_data ((AtomTRAF *) walker->data, buffer, size, offset)) { in atom_moof_copy_data()
4821 atom_write_size (buffer, size, offset, original_offset); in atom_moof_copy_data()
5174 TFRAEntry entry; in atom_tfra_add_entry() local
5176 entry.time = dts; in atom_tfra_add_entry()
5178 entry.moof_offset = 0; in atom_tfra_add_entry()
5180 entry.traf_number = 1; in atom_tfra_add_entry()
5181 entry.trun_number = 1; in atom_tfra_add_entry()
5182 entry.sample_number = sample_num; in atom_tfra_add_entry()
5193 atom_array_append (&tfra->entries, entry, 256); in atom_tfra_add_entry()
5206 TFRAEntry *entry = &atom_array_index (&tfra->entries, i); in atom_tfra_update_offset() local
5208 if (entry->moof_offset) in atom_tfra_update_offset()
5210 entry->moof_offset = offset; in atom_tfra_update_offset()
5215 atom_tfra_copy_data (AtomTFRA * tfra, guint8 ** buffer, guint64 * size, in atom_tfra_copy_data() argument
5220 TFRAEntry *entry; in atom_tfra_copy_data() local
5225 if (!atom_full_copy_data (&tfra->header, buffer, size, offset)) { in atom_tfra_copy_data()
5229 prop_copy_uint32 (tfra->track_ID, buffer, size, offset); in atom_tfra_copy_data()
5230 prop_copy_uint32 (tfra->lengths, buffer, size, offset); in atom_tfra_copy_data()
5231 prop_copy_uint32 (atom_array_get_len (&tfra->entries), buffer, size, offset); in atom_tfra_copy_data()
5235 entry = &atom_array_index (&tfra->entries, i); in atom_tfra_copy_data()
5237 prop_copy_uint64 (entry->time, buffer, size, offset); in atom_tfra_copy_data()
5238 prop_copy_uint64 (entry->moof_offset, buffer, size, offset); in atom_tfra_copy_data()
5240 prop_copy_uint32 (entry->time, buffer, size, offset); in atom_tfra_copy_data()
5241 prop_copy_uint32 (entry->moof_offset, buffer, size, offset); in atom_tfra_copy_data()
5245 data = GUINT32_TO_BE (entry->traf_number); in atom_tfra_copy_data()
5247 buffer, size, offset); in atom_tfra_copy_data()
5250 data = GUINT32_TO_BE (entry->trun_number); in atom_tfra_copy_data()
5252 buffer, size, offset); in atom_tfra_copy_data()
5255 data = GUINT32_TO_BE (entry->sample_number); in atom_tfra_copy_data()
5257 buffer, size, offset); in atom_tfra_copy_data()
5261 atom_write_size (buffer, size, offset, original_offset); in atom_tfra_copy_data()
5266 atom_mfro_copy_data (guint32 s, guint8 ** buffer, guint64 * size, in atom_mfro_copy_data() argument
5275 if (!atom_full_copy_data (&mfro, buffer, size, offset)) { in atom_mfro_copy_data()
5279 prop_copy_uint32 (s, buffer, size, offset); in atom_mfro_copy_data()
5281 atom_write_size (buffer, size, offset, original_offset); in atom_mfro_copy_data()
5288 atom_mfra_copy_data (AtomMFRA * mfra, guint8 ** buffer, guint64 * size, in atom_mfra_copy_data() argument
5294 if (!atom_copy_data (&mfra->header, buffer, size, offset)) in atom_mfra_copy_data()
5299 if (!atom_tfra_copy_data ((AtomTFRA *) walker->data, buffer, size, offset)) { in atom_mfra_copy_data()
5306 if (!atom_mfro_copy_data (*offset - original_offset + 16, buffer, in atom_mfra_copy_data()
5310 atom_write_size (buffer, size, offset, original_offset); in atom_mfra_copy_data()