Searched refs:pts_buffer (Results 1 – 6 of 6) sorted by relevance
66 int64_t *pts_buffer; member144 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()
741 static int64_t select_from_pts_buffer(AVStream *st, int64_t *pts_buffer, int64_t dts) in select_from_pts_buffer() argument756 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() local796 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 …]
530 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()
343 int64_t pts_buffer[MAX_REORDER_DELAY+1]; member
305 sti->pts_buffer[i] = AV_NOPTS_VALUE; in avformat_new_stream()
741 sti->pts_buffer[j] = AV_NOPTS_VALUE; in ff_read_frame_flush()