The definition of the VideoFrame struct.
◆ VideoFrame()
◆ type
◆ width
The width of the video frame.
◆ height
The height of the video frame.
◆ yStride
The line span of Y buffer in the YUV data.
◆ uStride
The line span of U buffer in the YUV data.
◆ vStride
The line span of V buffer in the YUV data.
◆ yBuffer
The pointer to the Y buffer in the YUV data.
◆ uBuffer
The pointer to the U buffer in the YUV data.
◆ vBuffer
The pointer to the V buffer in the YUV data.
◆ rotation
The clockwise rotation information of this frame. You can set it as 0, 90, 180 or 270.
◆ renderTimeMs
The timestamp to render the video stream. Use this parameter for audio-video synchronization when rendering the video.
- Note
- This parameter is for rendering the video, not capturing the video.
◆ avsync_type
The type of audio-video synchronization.
◆ metadata_buffer
[Texture related parameter] The MetaData buffer. The default value is NULL
◆ metadata_size
[Texture related parameter] The MetaData size. The default value is 0
◆ sharedContext
[Texture related parameter], egl context.
◆ textureId
[Texture related parameter], Texture ID used by the video frame.
◆ d3d11Texture2d
[Texture related parameter] The pointer of ID3D11Texture2D used by the video frame,for Windows only.
◆ matrix
[Texture related parameter], Incoming 4 × 4 transformational matrix.
◆ alphaBuffer
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 NULL.
◆ alphaStitchMode
The relative position between alphabuffer and the frame. 0: Normal frame; 1: Alphabuffer is above the frame; 2: Alphabuffer is below the frame; 3: Alphabuffer is on the left of frame; 4: Alphabuffer is on the right of frame; The default value is 0.
◆ pixelBuffer
The type of CVPixelBufferRef, for iOS and macOS only.
◆ metaInfo
◆ hdr10MetadataInfo
metadata info used for hdr video data
◆ colorSpace