allocationSize

fun allocationSize(options: VideoFrameCopyToOptions = definedExternally): Int(source)

The allocationSize() method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.

MDN Reference