From 9339f81426c52095f0278faa15f2adcc2dc45c89 Mon Sep 17 00:00:00 2001 From: Zoff Date: Fri, 29 Mar 2024 16:50:32 +0100 Subject: [PATCH] Update ngc_video_v2.md --- docs/ngc_video_v2.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ngc_video_v2.md b/docs/ngc_video_v2.md index 459c718307..4c7d34cfcc 100644 --- a/docs/ngc_video_v2.md +++ b/docs/ngc_video_v2.md @@ -34,6 +34,7 @@ data size: 1 - 36986 bytes do this globally, so you can only send/receive video for 1 NGC group at a time! +```c void* toxav_ngc_video_init(const uint16_t v_bitrate, const uint16_t max_quantizer); bool toxav_ngc_video_encode(void *vngc, const uint16_t vbitrate, const uint16_t width, const uint16_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, @@ -43,7 +44,7 @@ bool toxav_ngc_video_decode(void *vngc, uint8_t *encoded_frame_bytes, uint32_t e uint8_t *y, uint8_t *u, uint8_t *v, int32_t *ystride, int32_t *ustride, int32_t *vstride); void toxav_ngc_video_kill(void *vngc); - +``` use `tox_group_send_custom_packet()` and `lossless` set to `true` to send video data unless the packet size including header is less than `TOX_MAX_CUSTOM_PACKET_SIZE`,