|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
| (void) | - fillAlphaData |
Properties | |
| NSInteger | format |
| CMTime | time |
| int | stride |
| int | strideInPixels |
| int | height |
| CVPixelBufferRef _Nullable | textureBuf |
| IMAGE_CLASS *_Nullable | image |
| NSData *_Nullable | dataBuf |
| NSData *_Nullable | alphaBuf |
| AgoraAlphaStitchMode | alphaStitchMode |
| int | cropLeft |
| int | cropTop |
| int | cropRight |
| int | cropBottom |
| int | rotation |
| AgoraColorSpace *_Nullable | colorSpace |
| - (void) fillAlphaData |
If data format is BGRA or RGBA and alphaBuf is nill, it is required to call fillAlphaData to fill alphaBuf.
|
readwritenonatomicassign |
The format of the incoming video frame. This parameter must be specified as one of the following values:
|
readwritenonatomicassign |
Timestamp (ms) of the incoming video frame. An incorrect timestamp results in frame loss or unsynchronized audio and video.
|
readwritenonatomicassign |
The line span of the frame, that is, the number of pixels between two adjacent lines of video frames.
|
readwritenonatomicassign |
Line spacing of the incoming video frame, which must be in pixels instead of bytes. For textures, it is the width of the texture.
|
readwritenonatomicassign |
Height of the incoming video frame.
|
readwritenonatomicassign |
Buffer of iOS texture.
|
readwritenonatomicstrong |
Still Image (UIImage for iPhone, NSImage for Mac)
|
readwritenonatomicstrong |
Raw data buffer. This parameter does not apply to iOS textures.
|
readwritenonatomicstrong |
Indicates the alpha channel of current frame, which is consistent with the dimension of the video frame. The value range of each pixel is [0,255], where 0 represents the background; 255 represents the foreground. The default value is nill.
|
readwritenonatomicassign |
When the video frame contains alpha channel data, it represents the relative position of alphaBuffer and the video frame. See AgoraAlphaStitchMode.
|
readwritenonatomicassign |
Raw data related parameter. The number of pixels trimmed from the left. The default value is 0.
|
readwritenonatomicassign |
Raw data related parameter. The number of pixels trimmed from the top. The default value is 0.
|
readwritenonatomicassign |
Raw data related parameter. The number of pixels trimmed from the right. The default value is 0.
|
readwritenonatomicassign |
Raw data related parameter. The number of pixels trimmed from the bottom. The default value is 0.
|
readwritenonatomicassign |
Raw data related parameter. The clockwise rotation of the video frame. You can set the rotation angle as 0, 90, 180, or 270. The default value is 0.
|
readwritenonatomicstrong |
By default, the color space properties of video frames will apply the Full Range and BT.709 standard configurations.