From 721358208b6650c62aa654be922867f10a5d6f38 Mon Sep 17 00:00:00 2001 From: zoff99 Date: Fri, 19 Jan 2018 22:59:42 +0100 Subject: Improve video key frame sending. This change does not include the addition of VP9. We do that in a separate pull request. Changes: * fix the video bug (video frames larger than 65KBytes) by sending full frame length in alternate header field * improve video frame reconstruction logic with slots * configure video encoder and decoder to be multihtreaded * set error resilience flags on video codec * change encoder and decoder softdeadline --- toxav/video.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'toxav/video.h') diff --git a/toxav/video.h b/toxav/video.h index 02670e0a..85ad3129 100644 --- a/toxav/video.h +++ b/toxav/video.h @@ -31,8 +31,7 @@ #include #include -#define VIDEO_CODEC_DECODER_INTERFACE (vpx_codec_vp8_dx()) -#define VIDEO_CODEC_ENCODER_INTERFACE (vpx_codec_vp8_cx()) + #include @@ -64,6 +63,6 @@ VCSession *vc_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_re void vc_kill(VCSession *vc); void vc_iterate(VCSession *vc); int vc_queue_message(void *vcp, struct RTPMessage *msg); -int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height); +int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist); #endif /* VIDEO_H */ -- cgit v1.2.3