Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
24
venv/lib/python3.12/site-packages/av/container/pyio.pxd
Normal file
24
venv/lib/python3.12/site-packages/av/container/pyio.pxd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
cimport libav as lib
|
||||
from libc.stdint cimport int64_t, uint8_t
|
||||
|
||||
|
||||
cdef int pyio_read(void *opaque, uint8_t *buf, int buf_size) noexcept nogil
|
||||
cdef int pyio_write(void *opaque, const uint8_t *buf, int buf_size) noexcept nogil
|
||||
cdef int64_t pyio_seek(void *opaque, int64_t offset, int whence) noexcept nogil
|
||||
cdef int pyio_close_gil(lib.AVIOContext *pb)
|
||||
cdef int pyio_close_custom_gil(lib.AVIOContext *pb)
|
||||
|
||||
cdef class PyIOFile:
|
||||
# File-like source.
|
||||
cdef readonly object file
|
||||
cdef object fread
|
||||
cdef object fwrite
|
||||
cdef object fseek
|
||||
cdef object ftell
|
||||
cdef object fclose
|
||||
|
||||
# Custom IO for above.
|
||||
cdef lib.AVIOContext *iocontext
|
||||
cdef unsigned char *buffer
|
||||
cdef long pos
|
||||
cdef bint pos_is_valid
|
||||
Loading…
Add table
Add a link
Reference in a new issue