• Home
  • Raw
  • Download

Lines Matching refs:track

98                 struct Track *track = tracks->tracks[i];  in find_sidx()  local
99 if (!track->sidx_start) { in find_sidx()
100 track->sidx_start = pos; in find_sidx()
101 track->sidx_length = size; in find_sidx()
102 } else if (pos == track->sidx_start + track->sidx_length) { in find_sidx()
103 track->sidx_length = pos + size - track->sidx_start; in find_sidx()
122 struct Track *track; in handle_file() local
155 track = av_mallocz(sizeof(*track)); in handle_file()
156 if (!track) { in handle_file()
163 av_free(track); in handle_file()
168 tracks->tracks[tracks->nb_tracks] = track; in handle_file()
170 track->name = file; in handle_file()
172 track->name = ptr + 1; in handle_file()
174 track->bitrate = st->codecpar->bit_rate; in handle_file()
175 track->track_id = st->id; in handle_file()
176 track->timescale = st->time_base.den; in handle_file()
177 track->duration = st->duration; in handle_file()
178 track->is_audio = st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO; in handle_file()
179 track->is_video = st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO; in handle_file()
181 if (!track->is_audio && !track->is_video) { in handle_file()
184 track->track_id, file); in handle_file()
190 av_rescale_rnd(track->duration, AV_TIME_BASE, in handle_file()
191 track->timescale, AV_ROUND_UP)); in handle_file()
193 if (track->is_audio) { in handle_file()
194 track->channels = st->codecpar->channels; in handle_file()
195 track->sample_rate = st->codecpar->sample_rate; in handle_file()
197 if (track->is_video) { in handle_file()
198 track->width = st->codecpar->width; in handle_file()
199 track->height = st->codecpar->height; in handle_file()
201 set_codec_str(st->codecpar, track->codec_str, sizeof(track->codec_str)); in handle_file()
296 struct Track *track = adaptation_sets[set][i]; in output_mpd() local
297 if (strcmp(track->name, adaptation_sets[set][0]->name)) in output_mpd()
299 …ut, "\t\t\t<ContentComponent id=\"%d\" contentType=\"%s\" />\n", track->track_id, track->is_audio … in output_mpd()
308 struct Track *track = adaptation_sets[set][j]; in output_mpd() local
309 if (strcmp(track->name, first_track->name)) in output_mpd()
311 if (track->is_audio) { in output_mpd()
312 sample_rate = track->sample_rate; in output_mpd()
313 channels = track->channels; in output_mpd()
315 if (track->is_video) { in output_mpd()
316 width = track->width; in output_mpd()
317 height = track->height; in output_mpd()
319 bitrate += track->bitrate; in output_mpd()
322 fprintf(out, "%s", track->codec_str); in output_mpd()