Home
last modified time | relevance | path

Searched refs:nb_index_entries (Results 1 – 25 of 25) sorted by relevance

/third_party/ffmpeg/libavformat/
Djvdec.c95 ast->nb_index_entries = avio_rl16(pb); in read_header()
110 ast->index_entries = av_malloc(ast->nb_index_entries * in read_header()
115 jv->frames = av_malloc(ast->nb_index_entries * sizeof(JVFrame)); in read_header()
120 offset = 0x68 + ast->nb_index_entries * 16; in read_header()
121 for (i = 0; i < ast->nb_index_entries; i++) { in read_header()
173 while (!avio_feof(s->pb) && jv->pts < ast->nb_index_entries) { in read_packet()
247 if (i < 0 || i >= ast->nb_index_entries) in read_seek()
Dvocdec.c86 if (index >= 0 && index < st->nb_index_entries - 1) { in voc_read_seek()
92 } else if (st->nb_index_entries && st->index_entries[0].timestamp <= timestamp) { in voc_read_seek()
93 AVIndexEntry *e = &st->index_entries[st->nb_index_entries - 1]; in voc_read_seek()
Davidec.c284 int n = st->nb_index_entries; in clean_index()
444 if (!st->nb_index_entries) in calculate_bitrate()
447 for (j = 0; j < st->nb_index_entries; j++) in calculate_bitrate()
463 for (j = 0; j < st->nb_index_entries; j++) in calculate_bitrate()
466 if (st->nb_index_entries < 2 || st->codecpar->bit_rate > 0) in calculate_bitrate()
1060 if (st->nb_index_entries) in avi_read_header()
1350 if (!st->index_entries || !st->nb_index_entries || in avi_sync()
1351 st->index_entries[st->nb_index_entries - 1].pos < pos) { in avi_sync()
1381 if (!st->nb_index_entries) in ni_prepare_read()
1384 last_ts = st->index_entries[st->nb_index_entries - 1].timestamp; in ni_prepare_read()
[all …]
Dmlvdec.c194 …ff_add_index_entry(&vst->index_entries, &vst->nb_index_entries, &vst->index_entries_allocated_size, in scan_file()
199 …ff_add_index_entry(&ast->index_entries, &ast->nb_index_entries, &ast->index_entries_allocated_size, in scan_file()
377 vst->duration = vst->nb_index_entries; in read_header()
379 ast->duration = ast->nb_index_entries; in read_header()
381 if ((vst && !vst->nb_index_entries) || (ast && !ast->nb_index_entries)) { in read_header()
Dcafdec.c345 } else if (st->nb_index_entries && st->duration > 0) { in read_header()
398 } else if (st->nb_index_entries) { in read_packet()
399 if (caf->packet_cnt < st->nb_index_entries - 1) { in read_packet()
402 } else if (caf->packet_cnt == st->nb_index_entries - 1) { in read_packet()
443 } else if (st->nb_index_entries) { in read_seek()
Dwtvdec.c332 int nb_index_entries; member
770 for (i = 0; i < wtv->nb_index_entries; i++) { in recover()
1036 …ff_add_index_entry(&wtv->index_entries, &wtv->nb_index_entries, &wtv->index_entries_allocated_size, in read_header()
1041 if (wtv->nb_index_entries) { in read_header()
1045 AVIndexEntry *e_end = wtv->index_entries + wtv->nb_index_entries - 1; in read_header()
1107 i = ff_index_search_timestamp(wtv->index_entries, wtv->nb_index_entries, ts_relative, flags); in read_seek()
1112 …} else if (st->duration != AV_NOPTS_VALUE && ts_relative > st->duration && wtv->nb_index_entries) { in read_seek()
1113 if (avio_seek(pb, wtv->index_entries[wtv->nb_index_entries - 1].pos, SEEK_SET) < 0) in read_seek()
Dmov.c3220 int nb_keep = st->nb_index_entries; in find_prev_closest_index()
3234 st->nb_index_entries = nb_old; in find_prev_closest_index()
3288 st->nb_index_entries = nb_keep; in find_prev_closest_index()
3308 const size_t min_size_needed = (st->nb_index_entries + 1) * sizeof(AVIndexEntry); in add_index_entry()
3317 if (st->nb_index_entries + 1U >= UINT_MAX / sizeof(AVIndexEntry)) in add_index_entry()
3328 index= st->nb_index_entries++; in add_index_entry()
3347 av_assert0(end_index >= 0 && end_index <= st->nb_index_entries); in fix_index_entry_timestamps()
3402 for (ind = 0; ind < st->nb_index_entries && ctts_ind < msc->ctts_count; ++ind) { in mov_estimate_video_delay()
3498 int nb_old = st->nb_index_entries; in mov_fix_index()
3545 st->nb_index_entries = 0; in mov_fix_index()
[all …]
Difv.c198 if (ifv->next_video_index < st->nb_index_entries) in ifv_read_packet()
205 if (ifv->next_audio_index < st->nb_index_entries) { in ifv_read_packet()
Dflacdec.c43 for(i=0; i<st->nb_index_entries; i++) { in reset_index_position()
321 if(index<0 || index >= s->streams[0]->nb_index_entries) in flac_seek()
Dutils.c1946 if ((unsigned) st->nb_index_entries >= max_entries) { in ff_reduce_index()
1948 for (i = 0; 2 * i < st->nb_index_entries; i++) in ff_reduce_index()
1950 st->nb_index_entries = i; in ff_reduce_index()
1955 int *nb_index_entries, in ff_add_index_entry() argument
1963 if ((unsigned) *nb_index_entries + 1 >= UINT_MAX / sizeof(AVIndexEntry)) in ff_add_index_entry()
1977 (*nb_index_entries + 1) * in ff_add_index_entry()
1984 index = ff_index_search_timestamp(*index_entries, *nb_index_entries, in ff_add_index_entry()
1988 index = (*nb_index_entries)++; in ff_add_index_entry()
1997 sizeof(AVIndexEntry) * (*nb_index_entries - index)); in ff_add_index_entry()
1998 (*nb_index_entries)++; in ff_add_index_entry()
[all …]
Dmxfdec.c235 int nb_index_entries; member
1095 segment->nb_index_entries = avio_rb32(pb); in mxf_read_index_entry_array()
1098 if(segment->nb_index_entries && length < 11) in mxf_read_index_entry_array()
1101 if (!FF_ALLOC_TYPED_ARRAY(segment->temporal_offset_entries, segment->nb_index_entries) || in mxf_read_index_entry_array()
1102 !FF_ALLOC_TYPED_ARRAY(segment->flag_entries , segment->nb_index_entries) || in mxf_read_index_entry_array()
1103 !FF_ALLOC_TYPED_ARRAY(segment->stream_offset_entries , segment->nb_index_entries)) { in mxf_read_index_entry_array()
1109 for (i = 0; i < segment->nb_index_entries; i++) { in mxf_read_index_entry_array()
1536 if (s->edit_unit_byte_count || s->nb_index_entries) in mxf_get_sorted_table_segments()
1678 if (s->nb_index_entries == 2 * s->index_duration + 1) in mxf_edit_unit_absolute_offset()
1681 if (index < 0 || index >= s->nb_index_entries) { in mxf_edit_unit_absolute_offset()
[all …]
Dmatroskadec.c3854 if (!st->nb_index_entries) in matroska_read_seek()
3858 …ndex = av_index_search_timestamp(st, timestamp, flags)) < 0 || index == st->nb_index_entries - 1) { in matroska_read_seek()
3859 matroska_reset_status(matroska, 0, st->index_entries[st->nb_index_entries - 1].pos); in matroska_read_seek()
3860 …ndex = av_index_search_timestamp(st, timestamp, flags)) < 0 || index == st->nb_index_entries - 1) { in matroska_read_seek()
3868 if (index < 0 || (matroska->cues_parsing_deferred < 0 && index == st->nb_index_entries - 1)) in matroska_read_seek()
3936 int nb_index_entries = s->streams[0]->nb_index_entries; in get_cue_desc() local
3939 for (i = 1; i < nb_index_entries; i++) { in get_cue_desc()
3948 if (i != nb_index_entries - 1) { in get_cue_desc()
3967 if (s->streams[0]->nb_index_entries <= 0) return 0; in webm_clusters_start_with_keyframe()
4095 for (i = 0; i < st->nb_index_entries; i++) { in webm_dash_manifest_compute_bandwidth()
[all …]
Dtta.c160 if (st->nb_index_entries < c->totalframes) { in tta_read_packet()
Dmpc.c197 …if (index >= 0 && st->index_entries[st->nb_index_entries-1].timestamp >= timestamp - DELAY_FRAMES){ in mpc_read_seek()
Drl2.c240 if(rl2->index_pos[i] < s->streams[i]->nb_index_entries in rl2_read_packet()
Dcinedec.c291 if (cine->pts >= st->nb_index_entries) in cine_read_packet()
Dinternal.h541 int *nb_index_entries,
Drpl.c322 if (rpl->chunk_number >= stream->nb_index_entries) in rpl_read_packet()
Dnutenc.c1017 if (!nut->write_index && 2*index > st->nb_index_entries) { in nut_write_packet()
1020 sizeof(*st->index_entries) * (st->nb_index_entries - index)); in nut_write_packet()
1021 st->nb_index_entries -= index; in nut_write_packet()
Dflvdec.c145 if (stream->nb_index_entries == 0) { in add_keyframes_index()
847 for (j = 0; j < st->nb_index_entries; j++) in clear_index_entries()
850 st->nb_index_entries = out; in clear_index_entries()
Dmvdec.c444 if (frame < st->nb_index_entries) { in mv_read_packet()
Dgxf.c579 if (idx < st->nb_index_entries - 2) in gxf_seek()
Davformat.h1094 int nb_index_entries; member
Dmp3dec.c434 for (i = 0; i < st->nb_index_entries; i++) in mp3_read_header()
Dasfdec_o.c1630 if (s->streams[stream_index]->nb_index_entries && asf->is_simple_index) { in asf_read_seek()
1632 if (idx < 0 || idx >= s->streams[stream_index]->nb_index_entries) in asf_read_seek()