Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add S12M_TIMECODE #1381

Merged
merged 1 commit into from
Apr 18, 2024
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/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
Loading