Skip to content

Conversation

@z-khan
Copy link
Contributor

@z-khan z-khan commented Apr 21, 2025

extend supported_np_pix_fmts pixel formats with bgr48be, bgr48le, bgra64be, bgra64le

add handling for argb, abgr, grayf32le, grayf32be pixel formats

z-khan added 2 commits April 21, 2025 15:22
added "bgra64be", "bgra64le" pixel formats to VideoFrame.from_numpy()
@WyattBlue
Copy link
Member

Can we have some tests please?

z-khan added 3 commits April 23, 2025 17:52
ndarray and memory shares tests for bgr48, bgra64, bayer8, bayer16
add other missing tests for gray16, grayf32
specify endianness with format name in tests
The returned array need to be compared with original array after byteswap depending on the system byte order and format byte order.
Since no such share memory tests exist for previous formats ending with "le" or "be", I'm removing these tests.
@z-khan
Copy link
Contributor Author

z-khan commented Apr 23, 2025

Tests added.

@WyattBlue WyattBlue merged commit fc1402c into PyAV-Org:main Apr 23, 2025
5 checks passed
@z-khan z-khan deleted the patch-3 branch May 14, 2025 06:19
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.

2 participants