@@ -13,32 +13,27 @@ cdef class CodecContext:
1313 # Whether AVCodecContext.extradata should be de-allocated upon destruction.
1414 cdef bint extradata_set
1515
16- # Used as a signal that this is within a stream, and also for us to access
17- # that stream. This is set "manually" by the stream after constructing
18- # this object.
16+ # Used as a signal that this is within a stream, and also for us to access that
17+ # stream. This is set "manually" by the stream after constructing this object.
1918 cdef int stream_index
2019
2120 cdef lib.AVCodecParserContext * parser
22-
2321 cdef _init(self , lib.AVCodecContext * ptr, const lib.AVCodec * codec)
2422
23+ # Public API.
24+ cdef readonly bint is_open
2525 cdef readonly Codec codec
26-
2726 cdef public dict options
28-
29- # Public API.
3027 cpdef open (self , bint strict = ?)
31- cdef readonly bint is_open
3228
3329 # Wraps both versions of the transcode API, returning lists.
3430 cpdef encode(self , Frame frame = ?)
3531 cpdef decode(self , Packet packet = ?)
36-
3732 cpdef flush_buffers(self )
3833
3934 # Used by both transcode APIs to setup user-land objects.
40- # TODO: Remove the `Packet` from `_setup_decoded_frame` (because flushing
41- # packets are bogus). It should take all info it needs from the context and/or stream.
35+ # TODO: Remove the `Packet` from `_setup_decoded_frame` (because flushing packets
36+ # are bogus). It should take all info it needs from the context and/or stream.
4237 cdef _prepare_and_time_rebase_frames_for_encode(self , Frame frame)
4338 cdef _prepare_frames_for_encode(self , Frame frame)
4439 cdef _setup_encoded_packet(self , Packet)
0 commit comments