Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1674

QVideoFrame does not have the bits method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.2.9
    • PySide
    • None
    • All
    • d410d3b621a9273be7a466a7ab3eb278fc225cdf (pyside/pyside-setup/dev) a4f505e5274a58477a1df4e9ca4b9c25f50e1a7d (pyside/pyside-setup/6.2)

    Description

      QVideoFrame does not expose the bits() method.

      >>> from PySide6.QtMultimedia import QVideoFrame
      >>> dir(QVideoFrame)
      ['HandleType', 'MapMode', 'NoHandle', 'NotMapped', 'ReadOnly', 'ReadWrite', 'RhiTextureHandle', 'WriteOnly', '__class__', '__copy__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'bytesPerLine', 'endTime', 'handleType', 'height', 'isMapped', 'isReadable', 'isValid', 'isWritable', 'map', 'mapMode', 'mappedBytes', 'pixelFormat', 'planeCount', 'setEndTime', 'setStartTime', 'setSubtitleText', 'size', 'startTime', 'subtitleText', 'surfaceFormat', 'swap', 'textureHandle', 'toImage', 'unmap', 'width']
      

      On the other hand, in PyQt6 it is available:

      >>> from PyQt6.QtMultimedia import QVideoFrame
      >>> dir(QVideoFrame)
      ['HandleType', 'MapMode', 'PaintOptions', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'bits', 'bytesPerLine', 'endTime', 'handleType', 'height', 'isMapped', 'isReadable', 'isValid', 'isWritable', 'map', 'mapMode', 'mappedBytes', 'paint', 'pixelFormat', 'planeCount', 'setEndTime', 'setStartTime', 'setSubtitleText', 'size', 'startTime', 'subtitleText', 'surfaceFormat', 'toImage', 'unmap', 'width']
      

      Attachments

        For Gerrit Dashboard: PYSIDE-1674
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            eyllanesc Edwin Christian Yllanes Cucho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes