| cimport libav as lib |
| from libc.stdint cimport int64_t |
|
|
| from av.bytesource cimport ByteSource |
| from av.codec.codec cimport Codec |
| from av.codec.hwaccel cimport HWAccel |
| from av.frame cimport Frame |
| from av.packet cimport Packet |
|
|
|
|
| cdef class CodecContext: |
| cdef lib.AVCodecContext *ptr |
|
|
| |
| cdef bint extradata_set |
|
|
| |
| |
| cdef int stream_index |
|
|
| cdef lib.AVCodecParserContext *parser |
| cdef _init(self, lib.AVCodecContext *ptr, const lib.AVCodec *codec, HWAccel hwaccel) |
|
|
| |
| cdef readonly bint is_open |
| cdef readonly Codec codec |
| cdef readonly HWAccel hwaccel |
| cdef public dict options |
| cpdef open(self, bint strict=?) |
| |
| |
| cpdef encode(self, Frame frame=?) |
| cpdef decode(self, Packet packet=?) |
| cpdef flush_buffers(self) |
|
|
| |
| cdef HWAccel hwaccel_ctx |
|
|
| |
| |
| |
| cdef _prepare_and_time_rebase_frames_for_encode(self, Frame frame) |
| cdef _prepare_frames_for_encode(self, Frame frame) |
| cdef _setup_encoded_packet(self, Packet) |
| cdef _setup_decoded_frame(self, Frame, Packet) |
|
|
| |
| |
| |
| |
| |
| |
| cdef _recv_packet(self) |
| cdef _send_packet_and_recv(self, Packet packet) |
| cdef _recv_frame(self) |
|
|
| cdef _transfer_hwframe(self, Frame frame) |
|
|
| |
| |
| cdef Frame _next_frame |
| cdef Frame _alloc_next_frame(self) |
|
|
| cdef CodecContext wrap_codec_context(lib.AVCodecContext*, const lib.AVCodec*, HWAccel hwaccel) |
|
|