r105: This commit was manufactured by cvs2svn to create tag
[cinelerra_cv/mob.git] / hvirtual / quicktime / avi_odml.c
blob4159bc3e93831da81d3893453642ad976874e899
1 #include "funcprotos.h"
2 #include "quicktime.h"
6 void quicktime_read_odml(quicktime_t *file, quicktime_atom_t *parent_atom)
11 void quicktime_init_odml(quicktime_t *file, quicktime_hdrl_t *hdrl)
13 quicktime_atom_t list_atom, dmlh_atom;
16 // LIST 'odml'
17 quicktime_atom_write_header(file, &list_atom, "LIST");
18 quicktime_write_char32(file, "odml");
19 // 'dmlh'
20 quicktime_atom_write_header(file, &dmlh_atom, "dmlh");
22 // Placeholder for total frames in all RIFF objects
23 hdrl->total_frames_offset = quicktime_position(file);
24 quicktime_write_int32_le(file, 0);
26 quicktime_atom_write_footer(file, &dmlh_atom);
27 quicktime_atom_write_footer(file, &list_atom);
30 void quicktime_finalize_odml(quicktime_t *file, quicktime_hdrl_t *hdrl)
32 // Get length in frames
33 quicktime_set_position(file, hdrl->total_frames_offset);
34 // quicktime_write_int32_le(file, );