Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit baf863b

Browse files
committed
more descriptive comment
1 parent 4f8587f commit baf863b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web_ui/lib/src/engine/canvaskit/image.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ class CkImage implements ui.Image, StackTraceDebugger {
376376
ui.ImageByteFormat format = ui.ImageByteFormat.rawRgba,
377377
}) {
378378
assert(_debugCheckIsNotDisposed());
379-
// Web codecs do not support I420, I444, I422 videoFrame formats.
379+
// readPixelsFromVideoFrame currently does not convert I420, I444, I422
380+
// videoFrame formats to RGBA
380381
if (videoFrame != null && videoFrame!.format != 'I420' && videoFrame!.format != 'I444' && videoFrame!.format != 'I422') {
381382
return readPixelsFromVideoFrame(videoFrame!, format);
382383
} else {

0 commit comments

Comments
 (0)