Lines Matching defs:file
1 /* libasf - An Advanced Systems Format media file parser
132 * Takes an initialized asf_file_t structure file as a parameter. Allocates
133 * a new asf_object_header_t in file->header and uses the file->iostream to
139 asf_parse_header(asf_file_t *file)
146 file->header = NULL;
147 iostream = &file->iostream;
157 file->header = malloc(sizeof(asf_object_header_t));
158 header = file->header;
271 tmp = asf_parse_header_validate(file, file->header);
283 * Takes an initialized asf_file_t structure file as a parameter. Allocates
284 * a new asf_object_data_t in file->data and uses the file->iostream to
290 asf_parse_data(asf_file_t *file)
297 file->data = NULL;
298 iostream = &file->iostream;
307 file->data = malloc(sizeof(asf_object_data_t));
308 data = file->data;
324 data->packets_position = file->position + 50;
327 * file_id GUID in headers, the file is corrupted */
328 if (!asf_guid_equals(&data->file_id, &file->file_id)) {
335 data->total_data_packets != file->data_packets_count) {
343 * Takes an initialized asf_file_t structure file as a parameter. Allocates
344 * a new asf_object_index_t in file->index and uses the file->iostream to
350 asf_parse_index(asf_file_t *file)
359 file->index = NULL;
360 iostream = &file->iostream;
403 file->index = index;
439 file->index = index;