5
* Copyright (C) 1998 Rasca, Berlin
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Library General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Library General Public License for more details.
18
* You should have received a copy of the GNU Library General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
#include <gt/gtatoms.h>
27
#include <gt/gttypes.h>
29
void *alloc_atom (int);
31
void *gt_alloc_atom (int type, int nmb);
32
void gt_atom_free (gt_atom *);
33
int gt_write_atom (gt_atom *, FILE *);
34
unsigned int gt_time(void);
35
gt_atom *gt_get_movie (FILE *);
37
void gt_swap2byte (ui16 *);
38
void gt_swap4byte (ui32 *);
40
int gt_write2byte (ui16, FILE *fp);
41
int gt_write4byte (ui32, FILE *fp);
43
int gt_read2byte (ui16 *, FILE *fp);
44
int gt_read4byte (ui32 *, FILE *fp);
46
gt_movie *gt_movie_new (int type, int tracks, const char *file);
47
void gt_movie_free (gt_movie *);
48
int gt_movie_add_atom (gt_movie *, gt_atom *);
49
int gt_movie_write_moov (gt_movie *, const char *file);
50
gt_trak_atom *gt_track_new (int id, int width, int height, int type, int subs);
51
gt_minf_atom *gt_media_info_new (int type, int subatoms);
52
gt_mdia_atom *gt_media_new (int type, int time, int subatoms);
53
gt_dinf_atom *gt_data_info_new (int subatoms);
54
gt_stbl_atom *gt_sample_new (int format, int width,int height,int,int subatoms);
55
void gt_atom_add (gt_atom *, gt_atom *);