Skip to content

Commit 1e74501

Browse files
committed
Add missing consts for Ubuntu
1 parent 56aca85 commit 1e74501

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

include/libswscale/swscale.pxd

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
cdef 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],

0 commit comments

Comments
 (0)