qt6 fixes
This commit is contained in:
parent
4d2d4034f9
commit
d1c8d445bc
9 changed files with 75 additions and 47 deletions
|
@ -320,7 +320,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
name='_video_thread')
|
||||
self._video_thread.start()
|
||||
|
||||
def stop_video_thread(self):
|
||||
def stop_video_thread(self) -> None:
|
||||
if self._video_thread is None:
|
||||
return
|
||||
|
||||
|
@ -341,7 +341,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
|
||||
# Incoming chunks
|
||||
|
||||
def audio_chunk(self, samples, channels_count, rate):
|
||||
def audio_chunk(self, samples, channels_count, rate) -> None:
|
||||
"""
|
||||
Incoming chunk
|
||||
"""
|
||||
|
@ -377,7 +377,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
|
||||
# AV sending
|
||||
|
||||
def send_audio_data(self, data, count, *largs, **kwargs):
|
||||
def send_audio_data(self, data, count, *largs, **kwargs) -> None:
|
||||
pcm = data
|
||||
# :param sampling_rate: Audio sampling rate used in this frame.
|
||||
if self._toxav is None:
|
||||
|
@ -404,7 +404,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
# util_ui.tr("Error send_audio audio_send_frame"))
|
||||
pass
|
||||
|
||||
def send_audio(self):
|
||||
def send_audio(self) -> None:
|
||||
"""
|
||||
This method sends audio to friends
|
||||
"""
|
||||
|
@ -425,7 +425,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
i += 1
|
||||
sleep(0.01)
|
||||
|
||||
def send_video(self):
|
||||
def send_video(self) -> None:
|
||||
"""
|
||||
This method sends video to friends
|
||||
"""
|
||||
|
@ -466,7 +466,7 @@ class AV(common.tox_save.ToxAvSave):
|
|||
|
||||
sleep( 1.0/iFPS)
|
||||
|
||||
def convert_bgr_to_yuv(self, frame):
|
||||
def convert_bgr_to_yuv(self, frame) -> tuple:
|
||||
"""
|
||||
:param frame: input bgr frame
|
||||
:return y, u, v: y, u, v values of frame
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue