Skip to content

Support yuv420p10le with ndarray conversions#2302

Merged
WyattBlue merged 2 commits into
mainfrom
patch
Jun 13, 2026
Merged

Support yuv420p10le with ndarray conversions#2302
WyattBlue merged 2 commits into
mainfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

Add yuv420p10le to VideoFrame.to_ndarray and from_ndarray, reading the planes as uint16 in the same flat layout used by 8-bit yuv420p.

closes #1981

Add yuv420p10le to VideoFrame.to_ndarray and from_ndarray, reading the
planes as uint16 in the same flat layout used by 8-bit yuv420p.

closes #1981
Add @cython.cdivision(True) to VideoFrame.to_ndarray/from_ndarray and
guard the planar YUV paths against zero width/height frames, which have
no allocated planes and previously raised a cryptic IndexError.
@WyattBlue WyattBlue merged commit 97cccc8 into main Jun 13, 2026
7 checks passed
@WyattBlue WyattBlue deleted the patch branch June 13, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support yuv420p10le with ndarray conversions

1 participant