Skip to content

Commit d60764e

Browse files
committed
consistent arg order in ops.py
1 parent 976bd2c commit d60764e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/_core/ops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ def encode_video_to_file_like(
214214
format: str,
215215
file_like: Union[io.RawIOBase, io.BufferedIOBase],
216216
codec: Optional[str] = None,
217-
crf: Optional[int] = None,
218217
pixel_format: Optional[str] = None,
218+
crf: Optional[int] = None,
219219
) -> None:
220220
"""Encode video frames to a file-like object.
221221
@@ -225,8 +225,8 @@ def encode_video_to_file_like(
225225
format: Video format (e.g., "mp4", "mov", "mkv")
226226
file_like: File-like object that supports write() and seek() methods
227227
codec: Optional codec name (e.g., "libx264", "h264")
228-
crf: Optional constant rate factor for encoding quality
229228
pixel_format: Optional pixel format (e.g., "yuv420p", "yuv444p")
229+
crf: Optional constant rate factor for encoding quality
230230
"""
231231
assert _pybind_ops is not None
232232

@@ -338,8 +338,8 @@ def encode_video_to_tensor_abstract(
338338
frame_rate: int,
339339
format: str,
340340
codec: Optional[str],
341-
crf: Optional[int] = None,
342341
pixel_format: Optional[str] = None,
342+
crf: Optional[int] = None,
343343
) -> torch.Tensor:
344344
return torch.empty([], dtype=torch.long)
345345

0 commit comments

Comments
 (0)