summaryrefslogtreecommitdiff
path: root/toxav/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/codec.h')
-rw-r--r--toxav/codec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxav/codec.h b/toxav/codec.h
index 7ddf2943..d8e9f1a7 100644
--- a/toxav/codec.h
+++ b/toxav/codec.h
@@ -102,6 +102,11 @@ CodecState *codec_init_session ( uint32_t audio_bitrate,
102 102
103void codec_terminate_session(CodecState *cs); 103void codec_terminate_session(CodecState *cs);
104 104
105/* Reconfigure video encoder
106 return 0 on success.
107 return -1 on failure. */
108int reconfigure_video_encoder_resolution(CodecState *cs, uint16_t width, uint16_t height);
109int reconfigure_video_encoder_bitrate(CodecState *cs, uint32_t video_bitrate);
105 110
106/* Calculate energy and return 1 if has voice, 0 if not */ 111/* Calculate energy and return 1 if has voice, 0 if not */
107int energy_VAD(CodecState *cs, int16_t *PCM, uint16_t frame_size, float energy); 112int energy_VAD(CodecState *cs, int16_t *PCM, uint16_t frame_size, float energy);