Searched refs:pts_buffer (Results 1 – 4 of 4) sorted by relevance
65 int64_t *pts_buffer; member139 x4->pts_buffer[avctx->frame_number % (avctx->max_b_frames+1)] = frame->pts; in XAVS_frame()160 pkt->dts = 2*x4->pts_buffer[(x4->out_frame_count-1)%(avctx->max_b_frames+1)] - in XAVS_frame()161 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()233 av_freep(&x4->pts_buffer); in XAVS_close()395 if (!(x4->pts_buffer = av_mallocz_array((avctx->max_b_frames+1), sizeof(*x4->pts_buffer)))) in XAVS_init()
585 st->internal->pts_buffer[0] = pkt->pts;586 for (i = 1; i < delay + 1 && st->internal->pts_buffer[i] == AV_NOPTS_VALUE; i++)587 st->internal->pts_buffer[i] = pkt->pts + (i - delay - 1) * pkt->duration;588 for (i = 0; i<delay && st->internal->pts_buffer[i] > st->internal->pts_buffer[i + 1]; i++)589 FFSWAP(int64_t, st->internal->pts_buffer[i], st->internal->pts_buffer[i + 1]);591 pkt->dts = st->internal->pts_buffer[0];
1044 static int64_t select_from_pts_buffer(AVStream *st, int64_t *pts_buffer, int64_t dts) { in select_from_pts_buffer() argument1059 dts = pts_buffer[i]; in select_from_pts_buffer()1065 if (pts_buffer[i] != AV_NOPTS_VALUE) { in select_from_pts_buffer()1066 int64_t diff = FFABS(pts_buffer[i] - dts) in select_from_pts_buffer()1081 dts = pts_buffer[0]; in select_from_pts_buffer()1097 int64_t pts_buffer[MAX_REORDER_DELAY+1]; in update_dts_from_pts() local1100 pts_buffer[i] = AV_NOPTS_VALUE; in update_dts_from_pts()1107 pts_buffer[0] = pkt_buffer->pkt.pts; in update_dts_from_pts()1108 for (i = 0; i<delay && pts_buffer[i] > pts_buffer[i + 1]; i++) in update_dts_from_pts()1109 FFSWAP(int64_t, pts_buffer[i], pts_buffer[i + 1]); in update_dts_from_pts()[all …]
325 int64_t pts_buffer[MAX_REORDER_DELAY+1]; member