Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jan 15, 2025
1 parent edfe351 commit df75ae8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Features

- Add hardware decoding by :gh-user:`matthewlai` and :gh-user:`WyattBlue` in (:pr:`1685`).
- Add ``VideoFrame.rotation`` by :gh-user:`lgeiger` in (:pr:`1675`).
- Support grayf32le and gbrapf32le in numpy convertion by :gh-user:`robinechuca` in (:pr:`1712`).


v14.0.1
Expand Down
2 changes: 1 addition & 1 deletion av/video/frame.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ cdef class VideoFrame(Frame):
.. note:: For ``pal8``, an ``(image, palette)`` tuple will be returned,
with the palette being in ARGB (PyAV will swap bytes if needed).
.. note:: For ``gbrp`` formats, channels are fliped in RGB order.
.. note:: For ``gbrp`` formats, channels are flipped to RGB order.
"""
cdef VideoFrame frame = self.reformat(**kwargs)
Expand Down
1 change: 1 addition & 0 deletions tests/test_videoframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def test_ndarray_gray_align() -> None:
assert frame.format.name == "gray"
assertNdarraysEqual(frame.to_ndarray(), array)


def test_ndarray_grayf32() -> None:
array = numpy.random.random_sample(size=(480, 640)).astype(numpy.float32)
for format in ("grayf32be", "grayf32le"):
Expand Down

0 comments on commit df75ae8

Please sign in to comment.