Skip to content

Commit e0c6a6c

Browse files
committed
Consolidate stream classes into single module
- Move AttachmentStream and DataStream from separate modules into av/stream.py - Convert stream.pyx from Cython to pure Python - Add missing 'options' property to Stream type hints This consolidation reduces code duplication and simplifies the module structure without changing the public API.
1 parent f964e7a commit e0c6a6c

12 files changed

Lines changed: 106 additions & 107 deletions

File tree

av/attachments/__init__.py

Whitespace-only changes.

av/attachments/stream.pxd

Lines changed: 0 additions & 5 deletions
This file was deleted.

av/attachments/stream.pyi

Lines changed: 0 additions & 8 deletions
This file was deleted.

av/attachments/stream.pyx

Lines changed: 0 additions & 26 deletions
This file was deleted.

av/data/__init__.pxd

Whitespace-only changes.

av/data/__init__.py

Whitespace-only changes.

av/data/stream.pxd

Lines changed: 0 additions & 5 deletions
This file was deleted.

av/data/stream.pyi

Lines changed: 0 additions & 6 deletions
This file was deleted.

av/data/stream.pyx

Lines changed: 0 additions & 16 deletions
This file was deleted.

av/stream.pxd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ cdef class Stream:
1919
# Private API.
2020
cdef _init(self, Container, lib.AVStream*, CodecContext)
2121
cdef _finalize_for_output(self)
22-
cdef _set_time_base(self, value)
2322
cdef _set_id(self, value)
2423

2524

2625
cdef Stream wrap_stream(Container, lib.AVStream*, CodecContext)
26+
27+
28+
cdef class DataStream(Stream):
29+
pass
30+
31+
cdef class AttachmentStream(Stream):
32+
pass

0 commit comments

Comments
 (0)