|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Properties | |
| NSInteger | type |
| int | width |
| int | height |
| int | yStride |
| int | uStride |
| int | vStride |
| uint8_t *_Nullable | yBuffer |
| uint8_t *_Nullable | uBuffer |
| uint8_t *_Nullable | vBuffer |
| int | rotation |
| int64_t | renderTimeMs |
| int | avSyncType |
| CVPixelBufferRef _Nullable | pixelBuffer |
| uint8_t *_Nullable | alphaBuffer |
| AgoraAlphaStitchMode | alphaStitchMode |
| NSDictionary *_Nonnull | metaInfo |
| AgoraColorSpace *_Nullable | colorSpace |
Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
|
readwritenonatomicassign |
The format of the incoming video frame. This parameter must be specified as one of the following values:
|
readwritenonatomicassign |
The width of the video, in pixels.
|
readwritenonatomicassign |
The height of the video, in pixels.
|
readwritenonatomicassign |
For YUV data, the line span of the Y buffer; for RGBA data, the total data length.
|
readwritenonatomicassign |
For YUV data, the line span of the U buffer; for RGBA data, the value is 0.
|
readwritenonatomicassign |
For YUV data, the line span of the V buffer; for RGBA data, the value is 0.
|
readwritenonatomicassign |
For YUV data, the pointer to the Y buffer; for RGBA data, the data buffer.
|
readwritenonatomicassign |
For YUV data, the pointer to the U buffer; for RGBA data, the value is 0.
|
readwritenonatomicassign |
For YUV data, the pointer to the V buffer; for RGBA data, the value is 0.
|
readwritenonatomicassign |
The clockwise rotation of the video frame before rendering. Supported values include 0, 90, 180, and 270 degrees.
|
readwritenonatomicassign |
The Unix timestamp (ms) when the video frame is rendered. This timestamp can be used to guide the rendering of the video frame. This parameter is required.
|
readwritenonatomicassign |
Reserved for future use.
|
readwritenonatomicassign |
Fills the data to CVPixelBuffer.
|
readwritenonatomicassign |
The alpha channel data output by using portrait segmentation algorithm. This data matches the size of the video frame, with each pixel value ranging from [0,255], where 0 represents the background and 255 represents the foreground (portrait). By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.
alphaBuf is exactly the same size as the video frame (width × height), otherwise it may cause the app to crash.
|
readwritenonatomicassign |
When the video frame contains alpha channel data, it represents the relative position of alphaBuffer and the video frame. See AgoraAlphaStitchMode.
|
readwritenonatomicstrong |
The meta information in the video frame. To use this parameter, contact technical support.
|
readwritenonatomicstrong |
By default, the color space properties of video frames will apply the Full Range and BT.709 standard configurations.