Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Oct 27, 2023
1 parent cd0634a commit a788af3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion livekit-rtc/livekit/rtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
LocalTrack,
RemoteTrack,
AudioTrack,
VideoTrack
VideoTrack,
)
from .e2ee import (
E2EEManager,
Expand Down
11 changes: 11 additions & 0 deletions livekit-rtc/livekit/rtc/video_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,17 @@ def __init__(
height: int,
stride: int = 0,
) -> None:
"""
Create a new ArgbFrame.
Args:
data: The data for the frame. Must be at least width * height * sizeof(uint32) bytes.
format: The format of the data.
width: The width of the frame.
height: The height of the frame.
stride: The stride of the frame. If 0, the stride will be set to width * sizeof(uint32).
"""

if stride == 0:
stride = width * ctypes.sizeof(ctypes.c_uint32)

Expand Down

0 comments on commit a788af3

Please sign in to comment.