Skip to content

Commit

Permalink
Add S12_TIMECODE
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Apr 18, 2024
1 parent 8dd74b8 commit a837bb5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions av/sidedata/sidedata.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ from av.frame cimport Frame


cdef class SideData(Buffer):

cdef Frame frame
cdef lib.AVFrameSideData *ptr
cdef _Dictionary metadata
Expand All @@ -16,7 +15,6 @@ cdef class SideData(Buffer):
cdef SideData wrap_side_data(Frame frame, int index)

cdef class _SideDataContainer:

cdef Frame frame

cdef list _by_index
Expand Down
1 change: 1 addition & 0 deletions av/sidedata/sidedata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Type(EnumItem):
CONTENT_LIGHT_LEVEL: int
ICC_PROFILE: int
SEI_UNREGISTERED: int
S12M_TIMECODE: int

class SideData(Buffer):
type: Type
Expand Down
3 changes: 2 additions & 1 deletion av/sidedata/sidedata.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Type = define_enum("Type", __name__, (
("SPHERICAL", lib.AV_FRAME_DATA_SPHERICAL),
("CONTENT_LIGHT_LEVEL", lib.AV_FRAME_DATA_CONTENT_LIGHT_LEVEL),
("ICC_PROFILE", lib.AV_FRAME_DATA_ICC_PROFILE),
("SEI_UNREGISTERED", lib.AV_FRAME_DATA_SEI_UNREGISTERED) if lib.AV_FRAME_DATA_SEI_UNREGISTERED != -1 else None,
("SEI_UNREGISTERED", lib.AV_FRAME_DATA_SEI_UNREGISTERED),
("S12M_TIMECODE", lib.AV_FRAME_DATA_S12M_TIMECODE),
))


Expand Down
3 changes: 1 addition & 2 deletions include/libavcodec/avcodec.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ cdef extern from "libavcodec/avcodec.h" nogil:
#define AV_FRAME_DATA_SEI_UNREGISTERED -1
#endif
"""

# custom
cdef set pyav_get_available_codecs()

cdef int avcodec_version()
Expand Down Expand Up @@ -326,6 +324,7 @@ cdef extern from "libavcodec/avcodec.h" nogil:
AV_FRAME_DATA_QP_TABLE_PROPERTIES
AV_FRAME_DATA_QP_TABLE_DATA
AV_FRAME_DATA_SEI_UNREGISTERED
AV_FRAME_DATA_S12M_TIMECODE

cdef struct AVFrameSideData:
AVFrameSideDataType type
Expand Down

0 comments on commit a837bb5

Please sign in to comment.