- Added options to
VideoSample'sallocationSize()andcopyTo()methods, allowing you to specify output custom pixel formats, plane layouts & more VideoSample.copyTo()now returnsPromise<PlaneLayout[]>instead ofPromise<void>, exactly how the WebCodecs API does it- Added an optional
layoutoption toVideoSampleInit VideoSample'sallocationSize()andcopyTo()now throw with an explicit error message when called whenformat === null(#256)- Added a
VideoSampleColorSpaceexport, now used byVideoSample.colorSpace - Added a
hardwareAccelerationvideo conversion option (#254) - Improved decoder error stack traces (#244)