toI420

Returns a memory-backed frame in I420 format. If the pixel data is in another format, a conversion will take place. All implementations must provide a fallback to I420 for compatibility with e.g. the internal WebRTC software encoders.

Conversion may fail, for example if reading the pixel data from a texture fails. If the conversion fails, null is returned.