Lines Matching defs:entry
170 if (track->entry > 0 && track->cluster[track->entry - 1].pos + track->data_offset > UINT32_MAX)
203 avio_wb32(pb, track->chunkCount); /* entry count */
204 for (i = 0; i < track->entry; i++) {
226 for (i = 0; i < track->entry; i++) {
233 if (equalChunks && track->entry) {
234 int sSize = track->entry ? track->cluster[0].size / track->cluster[0].entries : 0;
241 for (i = 0; i < track->entry; i++) {
262 avio_wb32(pb, track->chunkCount); // entry count
263 for (i = 0; i < track->entry; i++) {
290 avio_wb32(pb, track->entry); // entry count
291 for (i = 0; i < track->entry; i++) {
313 for (i = 0; i < track->entry; i++) {
447 if (!track->entry) {
676 for (i = 0; i < track->entry; i++)
1014 /* Assume inline sequence and entry headers. */
1066 put_bits(&pbc, 1, !packet_entry); /* no multiple entry */
1141 if (cluster_idx >= track->entry)
1144 if (cluster_idx + 1 == track->entry)
1168 if (!track->entry)
1171 for (i = 1; i < track->entry; i++) {
2643 avio_wb32(pb, 1); /* entry count */
2675 ctts_entries = av_malloc_array((track->entry + 1), sizeof(*ctts_entries)); /* worst case */
2680 for (i = 1; i < track->entry; i++) {
2698 avio_wb32(pb, entries); /* entry count */
2716 stts_entries = av_malloc(sizeof(*stts_entries)); /* one entry */
2723 if (track->entry) {
2724 stts_entries = av_malloc_array(track->entry, sizeof(*stts_entries)); /* worst case */
2728 for (i = 0; i < track->entry; i++) {
2744 avio_wb32(pb, entries); /* entry count */
2758 avio_wb32(pb, 1); /* entry count */
2786 if (!track->entry)
2789 sgpd_entries = av_malloc_array(track->entry, sizeof(*sgpd_entries));
2796 for (i = 0; i < track->entry; i++) {
2882 track->has_keyframes && track->has_keyframes < track->entry)
2889 track->flags & MOV_TRACK_CTTS && track->entry) {
3409 if (!track->entry && mov->mode == MODE_ISM)
3411 else if (!track->entry)
3506 if (!track->entry && mov->mode == MODE_ISM)
3508 else if (!track->entry)
3606 if (track->entry) {
3637 * offset, and the second edit list entry below trims out
3842 int entry_backup = track->entry;
3849 track->chunkCount = track->entry = 0;
3860 else if ((track->entry && track->cluster[0].dts) || track->mode == MODE_PSP || is_clcp_track(track))
3886 track->entry = entry_backup;
3898 if (mov->tracks[i].entry > 0 || mov->flags & FF_MOV_FLAG_EMPTY_MOOV) {
3952 if (mov->tracks[i].entry > 0 && mov->tracks[i].timescale) {
4465 avio_wb32(pb, 0); /* entry count */
4476 avio_wb32(pb, count); // rewrite entry count
4548 avio_wb32(pb, 0); /* entry count */
4563 avio_wb32(pb, count); // rewrite entry count
4820 for (i = 1; i<trk->entry; i++){
4861 if (mov->tracks[i].entry <= 0 && !(mov->flags & FF_MOV_FLAG_FRAGMENT))
4868 if (mov->tracks[i].entry <= 0 && !(mov->flags & FF_MOV_FLAG_FRAGMENT))
4891 if (mov->tracks[i].entry <= 0 && !(mov->flags & FF_MOV_FLAG_FRAGMENT))
4896 if (mov->tracks[i].entry)
4970 if (mov->tracks[i].entry > 0 || mov->flags & FF_MOV_FLAG_FRAGMENT ||
5146 static uint32_t get_sample_flags(MOVTrack *track, MOVIentry *entry)
5148 return entry->flags & MOV_SYNC_SAMPLE ? MOV_FRAG_SAMPLE_FLAG_DEPENDS_NO :
5158 if (!track->entry) {
5197 track->default_size = track->entry ? track->cluster[0].size : 1;
5205 if (track->entry > 1)
5234 if (!(flags & MOV_TRUN_SAMPLE_FLAGS) && track->entry > 0 &&
5295 MOVTrack *track, int entry)
5297 int n = track->nb_frag_info - 1 - entry, i;
5304 if (entry < 0)
5307 avio_seek(pb, track->frag_info[entry].tfrf_offset, SEEK_SET);
5315 int index = entry + 1 + i;
5350 if ((tracks >= 0 && i != tracks) || !track->entry)
5387 if ((tracks >= 0 && i != tracks) || !track->entry)
5420 for (i = 1; i < track->entry; i++) {
5426 mov_write_trun_tag(pb, mov, track, moof_size, start, track->entry);
5462 if (!track->entry)
5478 if (track->entry) {
5514 if (!track->entry) {
5556 // When writing a sidx for the full file, entry is 0, but
5559 if (!track->entry && ref_size > 0)
5582 if (!first_track->entry) {
5992 int seq = 0, entry = 0;
6002 entry = 1;
6009 if (!trk->entry && trk->vc1_info.first_packet_seen)
6011 if (!trk->entry && !trk->vc1_info.first_frag_written) {
6014 trk->vc1_info.first_packet_entry = entry;
6017 (entry && !trk->vc1_info.packet_entry)) {
6019 for (i = 0; i < trk->entry; i++)
6024 if (entry)
6029 (!entry || trk->vc1_info.first_packet_entry)) {
6038 key = seq && entry;
6042 key = entry;
6044 trk->cluster[trk->entry].flags |= MOV_SYNC_SAMPLE;
6061 trk->cluster[trk->entry].flags |= MOV_SYNC_SAMPLE;
6087 for (i = track->entries_flushed; i < track->entry; i++)
6089 track->entries_flushed = track->entry;
6139 if (track->squash_fragment_samples_to_one && !track->entry) {
6198 if (track->entry <= 1)
6206 if (get_cluster_duration(track, track->entry - 1) != 0)
6212 track->track_duration += get_cluster_duration(track, track->entry - 2);
6213 track->end_pts += get_cluster_duration(track, track->entry - 2);
6229 if (!mov->tracks[i].entry && !is_cover_image(mov->tracks[i].st))
6265 mov->tracks[i].entry = 0;
6294 if (track->entry)
6299 if (!track->entry)
6320 if (!track->entry)
6338 track->entry = 0;
6384 if (trk->entry) {
6385 ref = trk->cluster[trk->entry - 1].dts;
6434 if (trk->entry - trk->entries_flushed >= mov->frag_interleave) {
6619 if (trk->entry >= trk->cluster_capacity) {
6620 unsigned new_capacity = trk->entry + MOV_INDEX_CLUSTER_SIZE;
6630 trk->cluster[trk->entry].pos = avio_tell(pb) - size;
6631 trk->cluster[trk->entry].samples_in_chunk = samples_in_chunk;
6632 trk->cluster[trk->entry].chunkNum = 0;
6633 trk->cluster[trk->entry].size = size;
6634 trk->cluster[trk->entry].entries = samples_in_chunk;
6635 trk->cluster[trk->entry].dts = pkt->dts;
6636 trk->cluster[trk->entry].pts = pkt->pts;
6638 !trk->entry && trk->start_dts != AV_NOPTS_VALUE) {
6644 trk->cluster[trk->entry].dts = trk->start_dts + trk->track_duration;
6653 pkt->pts = pkt->dts + trk->end_pts - trk->cluster[trk->entry].dts;
6663 if (!trk->entry && trk->start_dts == AV_NOPTS_VALUE && !mov->use_editlist &&
6670 trk->cluster[trk->entry].dts = trk->start_dts = 0;
6702 trk->cluster[trk->entry].cts = pkt->pts - pkt->dts;
6703 trk->cluster[trk->entry].flags = 0;
6707 trk->end_pts = trk->cluster[trk->entry].dts +
6708 trk->cluster[trk->entry].cts + pkt->duration;
6710 trk->end_pts = FFMAX(trk->end_pts, trk->cluster[trk->entry].dts +
6711 trk->cluster[trk->entry].cts +
6720 trk->entry > 0) { // force sync sample for the first key frame
6721 mov_parse_mpeg2_frame(pkt, &trk->cluster[trk->entry].flags);
6722 if (trk->cluster[trk->entry].flags & MOV_PARTIAL_SYNC_SAMPLE)
6725 trk->cluster[trk->entry].flags = MOV_SYNC_SAMPLE;
6727 if (trk->cluster[trk->entry].flags & MOV_SYNC_SAMPLE)
6731 trk->cluster[trk->entry].flags |= MOV_DISPOSABLE_SAMPLE;
6737 trk->cluster[trk->entry].flags |= MOV_DISPOSABLE_EXT_SAMPLE;
6744 memcpy(&trk->cluster[trk->entry].prft, prft, prft_size);
6746 memset(&trk->cluster[trk->entry].prft, 0, sizeof(AVProducerReferenceTime));
6748 trk->entry++;
6753 ff_mov_add_hinted_packet(s, pkt, trk->hint_track, trk->entry,
6821 if (trk->entry && pkt->stream_index < s->nb_streams)
6830 trk->entry && pkt->flags & AV_PKT_FLAG_KEY) ||
6833 if (trk->entry) {
6839 // If we have trk->entry == 0, no fragment will be written
6933 (trk->entry == 0 || !trk->last_sample_is_subtitle_end)) {
7027 0x00, 0x01, // entry count