Skip to content

Commit

Permalink
Merge pull request #56 from pupil-labs/fix-h264-to-bgr-conversion
Browse files Browse the repository at this point in the history
Fix H264 to BGR conversion
  • Loading branch information
papr authored Mar 9, 2020
2 parents 0000402 + c80b98d commit ca44f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndsi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, message):
from ndsi.formatter import DataFormat


__version__ = "1.2"
__version__ = "1.3"
__protocol_version__ = str(DataFormat.latest().version_major)


Expand Down
2 changes: 1 addition & 1 deletion ndsi/frame.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ cdef class H264Frame:
cdef int result
self._bgr_buffer = np.empty(self.width*self.height*channels, dtype=np.uint8)
result = turbojpeg.tjDecodeYUV(
self.tj_context, &self._yuv_buffer[0], 4, turbojpeg.TJSAMP_420,
self.tj_context, &self._yuv_buffer[0], 4, turbojpeg.TJSAMP_422,
&self._bgr_buffer[0], self.width, 0,
self.height, turbojpeg.TJPF_BGR, 0)
if result == -1:
Expand Down

0 comments on commit ca44f60

Please sign in to comment.