Debian Codegraph @

av/video/format.pxd

raw
1 cimport libav as lib
2
3
4 cdef class VideoFormat:
5 cdef lib.AVPixelFormat pix_fmt
6 cdef const lib.AVPixFmtDescriptor *ptr
7 cdef readonly unsigned int width, height
8 cdef _init(self, lib.AVPixelFormat pix_fmt, unsigned int width, unsigned int height)
9 cpdef chroma_width(self, int luma_width=?)
10 cpdef chroma_height(self, int luma_height=?)
11
12
13 cdef class VideoFormatComponent:
14 cdef VideoFormat format
15 cdef readonly unsigned int index
16 cdef const lib.AVComponentDescriptor *ptr
17
18
19 cdef VideoFormat get_video_format(lib.AVPixelFormat c_format, unsigned int width, unsigned int height)
20 cdef lib.AVPixelFormat get_pix_fmt(const char *name) except lib.AV_PIX_FMT_NONE