alphaBuffer property
Alpha channel data output by portrait segmentation algorithm. This data matches the size of the video frame. Each pixel value ranges from 0,255, where 0 represents background and 255 represents foreground (portrait).
You can use this parameter to render the video background with various effects, such as transparency, solid color, image, video, etc. In custom video rendering scenarios, make sure both the input video frame and alphaBuffer are of Full Range type; other types may cause incorrect rendering of alpha data.
Implementation
@JsonKey(name: 'alphaBuffer', ignore: true)
final Uint8List? alphaBuffer;