File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21cdef extern from " libswscale/swscale.h" nogil:
3-
42 cdef int swscale_version()
53 cdef char * swscale_configuration()
64 cdef char * swscale_license()
@@ -13,7 +11,6 @@ cdef extern from "libswscale/swscale.h" nogil:
1311 cdef struct SwsFilter:
1412 pass
1513
16- # Flags.
1714 cdef int SWS_FAST_BILINEAR
1815 cdef int SWS_BILINEAR
1916 cdef int SWS_BICUBIC
@@ -25,7 +22,6 @@ cdef extern from "libswscale/swscale.h" nogil:
2522 cdef int SWS_SINC
2623 cdef int SWS_LANCZOS
2724 cdef int SWS_SPLINE
28-
2925 cdef int SWS_CS_ITU709
3026 cdef int SWS_CS_FCC
3127 cdef int SWS_CS_ITU601
@@ -41,11 +37,9 @@ cdef extern from "libswscale/swscale.h" nogil:
4137 int src_slice_y,
4238 int src_slice_h,
4339 unsigned char * const * dst_slice,
44- int * dst_stride,
40+ const int * dst_stride,
4541 )
46-
4742 cdef void sws_freeContext(SwsContext * ctx)
48-
4943 cdef SwsContext * sws_getCachedContext(
5044 SwsContext * context,
5145 int src_width,
@@ -59,9 +53,7 @@ cdef extern from "libswscale/swscale.h" nogil:
5953 SwsFilter * dst_filter,
6054 double * param,
6155 )
62-
63- cdef int * sws_getCoefficients(int colorspace)
64-
56+ cdef const int * sws_getCoefficients(int colorspace)
6557 cdef int sws_getColorspaceDetails(
6658 SwsContext * context,
6759 int ** inv_table,
@@ -72,7 +64,6 @@ cdef extern from "libswscale/swscale.h" nogil:
7264 int * contrast,
7365 int * saturation
7466 )
75-
7667 cdef int sws_setColorspaceDetails(
7768 SwsContext * context,
7869 const int inv_table[4 ],
You can’t perform that action at this time.
0 commit comments