Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions av/dictionary.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ cimport libav as lib
cdef class Dictionary:
cdef lib.AVDictionary *ptr
cpdef Dictionary copy(self)

cdef Dictionary wrap_dictionary(lib.AVDictionary *input_)
7 changes: 0 additions & 7 deletions av/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,3 @@ def update(self, other=(), /, **kwds):
self[key] = value
for key, value in kwds.items():
self[key] = value


@cython.cfunc
def wrap_dictionary(input_: cython.pointer[lib.AVDictionary]) -> Dictionary:
output: Dictionary = Dictionary()
output.ptr = input_
return output
2 changes: 0 additions & 2 deletions av/sidedata/sidedata.pxd
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
cimport libav as lib

from av.buffer cimport Buffer
from av.dictionary cimport Dictionary, wrap_dictionary
from av.frame cimport Frame


cdef class SideData(Buffer):
cdef Frame frame
cdef lib.AVFrameSideData *ptr
cdef Dictionary metadata

cdef SideData wrap_side_data(Frame frame, int index)
cdef int get_display_rotation(Frame frame)
Expand Down
1 change: 0 additions & 1 deletion av/sidedata/sidedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def __cinit__(self, sentinel, frame: Frame, index: cython.int):
raise RuntimeError("cannot manually instantiate SideData")
self.frame = frame
self.ptr = frame.ptr.side_data[index]
self.metadata = wrap_dictionary(self.ptr.metadata)

@cython.cfunc
def _buffer_size(self) -> cython.size_t:
Expand Down