summaryrefslogtreecommitdiff
path: root/other/apidsl/toxav.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'other/apidsl/toxav.in.h')
-rw-r--r--other/apidsl/toxav.in.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/other/apidsl/toxav.in.h b/other/apidsl/toxav.in.h
index 07808eec..6e3e9c17 100644
--- a/other/apidsl/toxav.in.h
+++ b/other/apidsl/toxav.in.h
@@ -557,23 +557,24 @@ namespace video {
557 /** 557 /**
558 * The function type for the ${event receive_frame} callback. 558 * The function type for the ${event receive_frame} callback.
559 * 559 *
560 * The size of plane data is derived from width and height as documented
561 * below.
562 *
563 * Strides represent padding for each plane that may or may not be present.
564 * You must handle strides in your image processing code. Strides are
565 * negative if the image is bottom-up hence why you MUST abs() it when
566 * calculating plane buffer size.
567 *
560 * @param friend_number The friend number of the friend who sent a video frame. 568 * @param friend_number The friend number of the friend who sent a video frame.
561 * @param width Width of the frame in pixels. 569 * @param width Width of the frame in pixels.
562 * @param height Height of the frame in pixels. 570 * @param height Height of the frame in pixels.
563 * @param y 571 * @param y Luminosity plane. Size = MAX(width, abs(ystride)) * height.
564 * @param u 572 * @param u U chroma plane. Size = MAX(width/2, abs(ustride)) * (height/2).
565 * @param v Plane data. 573 * @param v V chroma plane. Size = MAX(width/2, abs(vstride)) * (height/2).
566 * The size of plane data is derived from width and height where 574 *
567 * Y = MAX(width, abs(ystride)) * height, 575 * @param ystride Luminosity plane stride.
568 * U = MAX(width/2, abs(ustride)) * (height/2) and 576 * @param ustride U chroma plane stride.
569 * V = MAX(width/2, abs(vstride)) * (height/2). 577 * @param vstride V chroma plane stride.
570 * @param ystride
571 * @param ustride
572 * @param vstride Strides data. Strides represent padding for each plane
573 * that may or may not be present. You must handle strides in
574 * your image processing code. Strides are negative if the
575 * image is bottom-up hence why you MUST abs() it when
576 * calculating plane buffer size.
577 */ 578 */
578 typedef void(uint32_t friend_number, uint16_t width, uint16_t height, 579 typedef void(uint32_t friend_number, uint16_t width, uint16_t height,
579 const uint8_t *y, const uint8_t *u, const uint8_t *v, 580 const uint8_t *y, const uint8_t *u, const uint8_t *v,