Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Issues
  • #834
Closed
Open
Issue created Dec 09, 2021 by Administrator@rootContributor

fails test test_reformat_pixel_format_align on PowerPC arches: ALTIVEC: Color Space RGB24

Created by: jonassmedegaard

Debian build fails testsuite on hardware architecture ppc64el:

=================================== FAILURES ===================================
___________ TestVideoFrameReformat.test_reformat_pixel_format_align ____________

self = <tests.test_videoframe.TestVideoFrameReformat testMethod=test_reformat_pixel_format_align>

    def test_reformat_pixel_format_align(self):
        height = 480
        for width in range(2, 258, 2):
            frame_yuv = VideoFrame(width, height, 'yuv420p')
            for plane in frame_yuv.planes:
                plane.update(b'\xff' * plane.buffer_size)
    
            expected_rgb = numpy.zeros(shape=(height, width, 3), dtype=numpy.uint8)
            expected_rgb[:, :, 0] = 255
            expected_rgb[:, :, 1] = 124
            expected_rgb[:, :, 2] = 255
    
            frame_rgb = frame_yuv.reformat(format='rgb24')
            array_rgb = frame_rgb.to_ndarray()
            self.assertEqual(array_rgb.shape, (height, width, 3))
>           self.assertTrue((array_rgb == expected_rgb).all())
E           AssertionError: False is not true

tests/test_videoframe.py:335: AssertionError
------------------------------ Captured log call -------------------------------
WARNING  libav.swscaler:test_videoframe.py:332 No accelerated colorspace conversion found from yuv420p to rgb24.
WARNING  libav.swscaler:test_videoframe.py:332 No accelerated colorspace conversion found from yuv420p to rgb24.
 (repeated 6 more times)
WARNING  libav.swscaler:test_videoframe.py:332 ALTIVEC: Color Space RGB24
=========================== short test summary info ============================
FAILED tests/test_videoframe.py::TestVideoFrameReformat::test_reformat_pixel_format_align
=========== 1 failed, 112 passed, 8 skipped, 43 deselected in 1.20s ============

Full build log: https://buildd.debian.org/status/fetch.php?pkg=python-av&arch=ppc64el&ver=8.0.3-1&stamp=1629295226&raw=0

Assignee
Assign to
Time tracking