[vlc-devel] [PATCH 4/4] Add rav1e encoder module
Francois Cartegnie
fcvlcdev at free.fr
Tue Jul 21 13:59:21 CEST 2020
Le 21/07/2020 à 11:34, rustyc a écrit :
> +
> + memcpy(p_block->p_buffer, pkt->data, pkt->len);
> + p_block->i_dts = p_block->i_pts = date_Get(&sys->date);
> + p_block->i_length =
> + vlc_tick_from_samples(enc->fmt_in.video.i_frame_rate_base,
> + enc->fmt_in.video.i_frame_rate);
> + date_Increment(&sys->date, 1);
> +
> + if (pkt->frame_type == RA_FRAME_TYPE_KEY)
> + p_block->i_flags |= BLOCK_FLAG_TYPE_I;
> + block_ChainAppend(&p_out, p_block);
> + rav1e_packet_unref(pkt);
Using date_t to avoid rounding errors and vlc_tick_from_samples to
introduce some ?
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list