VideoFrameBufferInit constructor

VideoFrameBufferInit({
  1. required VideoPixelFormat format,
  2. required int codedWidth,
  3. required int codedHeight,
  4. required int timestamp,
  5. int? duration,
  6. Iterable<PlaneLayout>? layout,
  7. DOMRectInit? visibleRect,
  8. int? displayWidth,
  9. int? displayHeight,
  10. VideoColorSpaceInit? colorSpace,
})

Implementation

factory VideoFrameBufferInit(
        {required VideoPixelFormat format,
        required int codedWidth,
        required int codedHeight,
        required int timestamp,
        int? duration,
        Iterable<PlaneLayout>? layout,
        DOMRectInit? visibleRect,
        int? displayWidth,
        int? displayHeight,
        VideoColorSpaceInit? colorSpace}) =>
    VideoFrameBufferInit._(
        format: format.value,
        codedWidth: codedWidth,
        codedHeight: codedHeight,
        timestamp: timestamp,
        duration: duration ?? undefined,
        layout: layout ?? undefined,
        visibleRect: visibleRect ?? undefined,
        displayWidth: displayWidth ?? undefined,
        displayHeight: displayHeight ?? undefined,
        colorSpace: colorSpace ?? undefined);