• Home
  • Raw
  • Download

Lines Matching refs:avist

112     AVIStream *avist = s->streams[stream_index]->priv_data;  in avi_add_ientry()  local
113 AVIIndex *idx = &avist->indexes; in avi_add_ientry()
138 avist->max_size = FFMAX(avist->max_size, size); in avi_add_ientry()
168 AVIStream *avist = s->streams[i]->priv_data; in avi_start_new_riff() local
169 avist->indexes.audio_strm_offset = avist->audio_strm_length; in avi_start_new_riff()
170 avist->indexes.entry = 0; in avi_start_new_riff()
209 AVIStream *avist = s->streams[n]->priv_data; in avi_write_counters() local
211 av_assert0(avist->frames_hdr_strm); in avi_write_counters()
213 avio_seek(pb, avist->frames_hdr_strm, SEEK_SET); in avi_write_counters()
216 avio_wl32(pb, avist->packet_count); in avi_write_counters()
218 avio_wl32(pb, avist->audio_strm_length / au_ssize); in avi_write_counters()
220 nb_frames = FFMAX(nb_frames, avist->packet_count); in avi_write_counters()
238 AVIStream *avist = st->priv_data; in write_odml_master() local
246 avist->indexes.indx_start = ff_start_tag(pb, "JUNK"); in write_odml_master()
257 ff_end_tag(pb, avist->indexes.indx_start); in write_odml_master()
363 AVIStream *avist = st->priv_data; in avi_write_header() local
395 avist->strh_flags_offset = avio_tell(pb); in avi_write_header()
418 avist->frames_hdr_strm = avio_tell(pb); in avi_write_header()
457 avist->pal_offset = avio_tell(pb) + 40; in avi_write_header()
604 AVIStream *avist = s->streams[stream_index]->priv_data; in update_odml_entry() local
611 avio_seek(pb, avist->indexes.indx_start - 8, SEEK_SET); in update_odml_entry()
614 …avio_wl32(pb, avi->riff_id - avist->indexes.master_odml_riff_id_base); /* nEntriesInUse */ in update_odml_entry()
615 avio_skip(pb, 16 * (avi->riff_id - avist->indexes.master_odml_riff_id_base)); in update_odml_entry()
620 uint32_t audio_segm_size = (avist->audio_strm_length - avist->indexes.audio_strm_offset); in update_odml_entry()
621 if ((audio_segm_size % au_ssize > 0) && !avist->sample_requested) { in update_odml_entry()
623 avist->sample_requested = 1; in update_odml_entry()
627 avio_wl32(pb, avist->indexes.entry); /* dwDuration (packet count) */ in update_odml_entry()
643 AVIStream *avist = s->streams[i]->priv_data; in avi_write_ix() local
644 if (avi->riff_id - avist->indexes.master_odml_riff_id_base == avi->master_index_max_size) { in avi_write_ix()
652 avist->indexes.master_odml_riff_id_base = avi->riff_id - 1; in avi_write_ix()
654 … av_assert0(avi->riff_id - avist->indexes.master_odml_riff_id_base < avi->master_index_max_size); in avi_write_ix()
658 AVIStream *avist = s->streams[i]->priv_data; in avi_write_ix() local
667 avio_wl32(pb, avist->indexes.entry * 8 + 24); in avi_write_ix()
672 avio_wl32(pb, avist->indexes.entry); in avi_write_ix()
678 for (j = 0; j < avist->indexes.entry; j++) { in avi_write_ix()
679 AVIIentry *ie = avi_get_ientry(&avist->indexes, j); in avi_write_ix()
699 AVIStream *avist; in avi_write_idx1() local
705 avist = s->streams[i]->priv_data; in avi_write_idx1()
706 avist->entry = 0; in avi_write_idx1()
712 avist = s->streams[i]->priv_data; in avi_write_idx1()
713 if (avist->indexes.entry <= avist->entry) in avi_write_idx1()
716 tie = avi_get_ientry(&avist->indexes, avist->entry); in avi_write_idx1()
724 avist = s->streams[stream_id]->priv_data; in avi_write_idx1()
735 avist->entry++; in avi_write_idx1()
748 AVIStream *avist = s->streams[stream_index]->priv_data; in write_skip_frames() local
751 …ff_dlog(s, "dts:%s packet_count:%d stream_index:%d\n", av_ts2str(dts), avist->packet_count, stream… in write_skip_frames()
753 dts > avist->packet_count && par->codec_id != AV_CODEC_ID_XSUB && avist->packet_count) { in write_skip_frames()
755 if (dts - avist->packet_count > 60000) { in write_skip_frames()
756 …AV_LOG_ERROR, "Too large number of skipped frames %"PRId64" > 60000\n", dts - avist->packet_count); in write_skip_frames()
762 ff_dlog(s, "dup dts:%s packet_count:%d\n", av_ts2str(dts), avist->packet_count); in write_skip_frames()
787 AVIStream *avist = s->streams[stream_index]->priv_data; in avi_write_packet() local
800 ret = ff_get_packet_palette(s, opkt, reshuffle_ret, avist->palette); in avi_write_packet()
809 if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && avist->pal_offset) { in avi_write_packet()
811 avio_seek(pb, avist->pal_offset, SEEK_SET); in avi_write_packet()
813 uint32_t v = avist->palette[i]; in avi_write_packet()
817 memcpy(avist->old_palette, avist->palette, pal_size * 4); in avi_write_packet()
818 avist->pal_offset = 0; in avi_write_packet()
820 if (memcmp(avist->palette, avist->old_palette, pal_size * 4)) { in avi_write_packet()
825 if (avist->strh_flags_offset) { in avi_write_packet()
827 avio_seek(pb, avist->strh_flags_offset, SEEK_SET); in avi_write_packet()
830 avist->strh_flags_offset = 0; in avi_write_packet()
842 uint32_t v = avist->palette[i]; in avi_write_packet()
846 memcpy(avist->old_palette, avist->palette, pal_size * 4); in avi_write_packet()
871 AVIStream *avist = s->streams[stream_index]->priv_data; in avi_write_packet_internal() local
875 avist->last_dts = pkt->dts + pkt->duration; in avi_write_packet_internal()
877 avist->packet_count++; in avi_write_packet_internal()
896 avist->audio_strm_length += size; in avi_write_packet_internal()
923 AVIStream *avist = s->streams[i]->priv_data; in avi_write_trailer() local
924 write_skip_frames(s, i, avist->last_dts); in avi_write_trailer()
944 AVIStream *avist = s->streams[n]->priv_data; in avi_write_trailer() local
947 if (nb_frames < avist->packet_count) in avi_write_trailer()
948 nb_frames = avist->packet_count; in avi_write_trailer()
952 nb_frames += avist->packet_count; in avi_write_trailer()
971 AVIStream *avist = s->streams[i]->priv_data; in avi_write_trailer() local
973 avio_seek(pb, avist->frames_hdr_strm + 4, SEEK_SET); in avi_write_trailer()
974 avio_wl32(pb, avist->max_size); in avi_write_trailer()
988 AVIStream *avist = s->streams[i]->priv_data; in avi_deinit() local
989 if (!avist) in avi_deinit()
991 for (int j = 0; j < avist->indexes.ents_allocated / AVI_INDEX_CLUSTER_SIZE; j++) in avi_deinit()
992 av_freep(&avist->indexes.cluster[j]); in avi_deinit()
993 av_freep(&avist->indexes.cluster); in avi_deinit()
994 avist->indexes.ents_allocated = avist->indexes.entry = 0; in avi_deinit()