Optional alphaThe 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. In custom video rendering scenarios, ensure that both the video frame and alphaBuffer are of the Full Range type; other types may cause abnormal alpha data rendering.
Optional alphaWhen the video frame contains alpha channel data, it represents the relative position of alphaBuffer and the video frame. See AlphaStitchMode.
Optional bufferVideo frame buffer.
Optional colorBy default, the color space properties of video frames will apply the Full Range and BT.709 standard configurations. You can configure the settings according your needs for custom video capturing and rendering.
Optional cropRaw data related parameter. The number of pixels trimmed from the bottom. The default value is 0.
Optional cropRaw data related parameter. The number of pixels trimmed from the left. The default value is 0.
Optional cropRaw data related parameter. The number of pixels trimmed from the right. The default value is 0.
Optional cropRaw data related parameter. The number of pixels trimmed from the top. The default value is 0.
Optional eglThis parameter only applies to video data in Texture format. Texture ID of the video frame.
Optional fillThis parameter only applies to video data in BGRA or RGBA format. Whether to extract the alpha channel data from the video frame and automatically fill it into alphaBuffer : true :Extract and fill the alpha channel data. false : (Default) Do not extract and fill the Alpha channel data. For video data in BGRA or RGBA format, you can set the Alpha channel data in either of the following ways: Automatically by setting this parameter to true. Manually through the alphaBuffer parameter.
Optional formatThe pixel format. See VideoPixelFormat.
Optional heightHeight of the incoming video frame.
Optional matrixThis parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
Optional metadataThis parameter only applies to video data in Texture format. The MetaData buffer. The default value is NULL.
Optional metadataThis parameter only applies to video data in Texture format. The MetaData size. The default value is 0.
Optional rotationRaw 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.
Optional strideLine spacing of the incoming video frame, which must be in pixels instead of bytes. For textures, it is the width of the texture.
Optional textureThis parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
Optional timestampTimestamp (ms) of the incoming video frame. An incorrect timestamp results in frame loss or unsynchronized audio and video.
Optional typeThe video type. See VideoBufferType.
Generated using TypeDoc
The external video frame.