Home
last modified time | relevance | path

Searched refs:pts_buffer (Results 1 – 6 of 6) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dlibxavs.c66 int64_t *pts_buffer; member
144 x4->pts_buffer[avctx->frame_number % (avctx->max_b_frames+1)] = frame->pts; in XAVS_frame()
165 pkt->dts = 2*x4->pts_buffer[(x4->out_frame_count-1)%(avctx->max_b_frames+1)] - in XAVS_frame()
166 x4->pts_buffer[(x4->out_frame_count-2)%(avctx->max_b_frames+1)]; in XAVS_frame()
176 pkt->dts = pkt->pts - (x4->pts_buffer[1] - x4->pts_buffer[0]); in XAVS_frame()
178 pkt->dts = x4->pts_buffer[(x4->out_frame_count-1)%(avctx->max_b_frames+1)]; in XAVS_frame()
216 av_freep(&x4->pts_buffer); in XAVS_close()
350 if (!FF_ALLOCZ_TYPED_ARRAY(x4->pts_buffer, avctx->max_b_frames + 1)) in XAVS_init()
/third_party/ffmpeg/libavformat/
Ddemux.c741 static int64_t select_from_pts_buffer(AVStream *st, int64_t *pts_buffer, int64_t dts) in select_from_pts_buffer() argument
756 dts = pts_buffer[i]; in select_from_pts_buffer()
762 if (pts_buffer[i] != AV_NOPTS_VALUE) { in select_from_pts_buffer()
763 int64_t diff = FFABS(pts_buffer[i] - dts) in select_from_pts_buffer()
778 dts = pts_buffer[0]; in select_from_pts_buffer()
793 int64_t pts_buffer[MAX_REORDER_DELAY+1]; in update_dts_from_pts() local
796 pts_buffer[i] = AV_NOPTS_VALUE; in update_dts_from_pts()
803 pts_buffer[0] = pkt_buffer->pkt.pts; in update_dts_from_pts()
804 for (int i = 0; i < delay && pts_buffer[i] > pts_buffer[i + 1]; i++) in update_dts_from_pts()
805 FFSWAP(int64_t, pts_buffer[i], pts_buffer[i + 1]); in update_dts_from_pts()
[all …]
Dmux.c530 sti->pts_buffer[0] = pkt->pts; in compute_muxer_pkt_fields()
531 for (int i = 1; i < delay + 1 && sti->pts_buffer[i] == AV_NOPTS_VALUE; i++) in compute_muxer_pkt_fields()
532 sti->pts_buffer[i] = pkt->pts + (i - delay - 1) * pkt->duration; in compute_muxer_pkt_fields()
533 for (int i = 0; i<delay && sti->pts_buffer[i] > sti->pts_buffer[i + 1]; i++) in compute_muxer_pkt_fields()
534 FFSWAP(int64_t, sti->pts_buffer[i], sti->pts_buffer[i + 1]); in compute_muxer_pkt_fields()
536 pkt->dts = sti->pts_buffer[0]; in compute_muxer_pkt_fields()
Dinternal.h343 int64_t pts_buffer[MAX_REORDER_DELAY+1]; member
Doptions.c305 sti->pts_buffer[i] = AV_NOPTS_VALUE; in avformat_new_stream()
Dseek.c741 sti->pts_buffer[j] = AV_NOPTS_VALUE; in ff_read_frame_flush()