summaryrefslogtreecommitdiff
path: root/toxav/video.h
diff options
context:
space:
mode:
authorzoff99 <zoff@zoff.cc>2018-01-19 22:59:42 +0100
committeriphydf <iphydf@users.noreply.github.com>2018-02-11 23:31:46 +0000
commit721358208b6650c62aa654be922867f10a5d6f38 (patch)
tree988aef376cc8c74b19b5e605133072bdf3d23e27 /toxav/video.h
parent0647c2c5bc8c871dbcaed64de40eb252d13d303c (diff)
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
Diffstat (limited to 'toxav/video.h')
-rw-r--r--toxav/video.h5
1 files changed, 2 insertions, 3 deletions
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 @@
31 31
32#include <vpx/vp8cx.h> 32#include <vpx/vp8cx.h>
33#include <vpx/vp8dx.h> 33#include <vpx/vp8dx.h>
34#define VIDEO_CODEC_DECODER_INTERFACE (vpx_codec_vp8_dx()) 34
35#define VIDEO_CODEC_ENCODER_INTERFACE (vpx_codec_vp8_cx())
36 35
37#include <pthread.h> 36#include <pthread.h>
38 37
@@ -64,6 +63,6 @@ VCSession *vc_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_re
64void vc_kill(VCSession *vc); 63void vc_kill(VCSession *vc);
65void vc_iterate(VCSession *vc); 64void vc_iterate(VCSession *vc);
66int vc_queue_message(void *vcp, struct RTPMessage *msg); 65int vc_queue_message(void *vcp, struct RTPMessage *msg);
67int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height); 66int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist);
68 67
69#endif /* VIDEO_H */ 68#endif /* VIDEO_H */