Skip to content

Commit

Permalink
Adjust to pixutils format module change
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Aug 29, 2024
1 parent 3ed177c commit 275309d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion utils/cam-rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import traceback

from pixutils.conv.qt import buffer_to_pix
from pixutils import PixelFormats, MetaFormat, MetaFormats
from pixutils.formats import PixelFormats, MetaFormat, MetaFormats
from PyQt6 import QtCore, QtWidgets
from PyQt6.QtCore import Qt
import PyQt6.QtNetwork
Expand Down
3 changes: 1 addition & 2 deletions utils/cam_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import typing
from typing import TYPE_CHECKING

from pixutils import MetaFormat
import v4l2
import v4l2.uapi

Expand Down Expand Up @@ -82,7 +81,7 @@ def tx(self, stream, vbuf, is_drm):

fmt = stream['format']

if isinstance(fmt, MetaFormat):
if isinstance(fmt, v4l2.MetaFormat):
num_planes = 1
else:
num_planes = len(fmt.planes)
Expand Down
3 changes: 1 addition & 2 deletions v4l2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from pixutils import *
from pixutils.fourcc_str import fourcc_to_str, str_to_fourcc
from pixutils.formats import *

from .helpers import *
from .mbusformats import *
Expand Down

0 comments on commit 275309d

Please sign in to comment.