-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathswscale.pxd
More file actions
78 lines (73 loc) · 1.99 KB
/
swscale.pxd
File metadata and controls
78 lines (73 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from libc.stdint cimport uint8_t
cdef extern from "libswscale/swscale.h" nogil:
cdef int swscale_version()
cdef char* swscale_configuration()
cdef char* swscale_license()
# See: http://ffmpeg.org/doxygen/trunk/structSwsContext.html
cdef struct SwsContext:
pass
# See: http://ffmpeg.org/doxygen/trunk/structSwsFilter.html
cdef struct SwsFilter:
pass
cdef int SWS_FAST_BILINEAR
cdef int SWS_BILINEAR
cdef int SWS_BICUBIC
cdef int SWS_X
cdef int SWS_POINT
cdef int SWS_AREA
cdef int SWS_BICUBLIN
cdef int SWS_GAUSS
cdef int SWS_SINC
cdef int SWS_LANCZOS
cdef int SWS_SPLINE
cdef int SWS_CS_ITU709
cdef int SWS_CS_FCC
cdef int SWS_CS_ITU601
cdef int SWS_CS_ITU624
cdef int SWS_CS_SMPTE170M
cdef int SWS_CS_SMPTE240M
cdef int SWS_CS_DEFAULT
cdef int sws_scale(
SwsContext *ctx,
const uint8_t *const *src_slice,
const int *src_stride,
int src_slice_y,
int src_slice_h,
unsigned char *const *dst_slice,
const int *dst_stride,
)
cdef void sws_freeContext(SwsContext *ctx)
cdef SwsContext *sws_getCachedContext(
SwsContext *context,
int src_width,
int src_height,
AVPixelFormat src_format,
int dst_width,
int dst_height,
AVPixelFormat dst_format,
int flags,
SwsFilter *src_filter,
SwsFilter *dst_filter,
double *param,
)
cdef const int* sws_getCoefficients(int colorspace)
cdef int sws_getColorspaceDetails(
SwsContext *context,
int **inv_table,
int *srcRange,
int **table,
int *dstRange,
int *brightness,
int *contrast,
int *saturation
)
cdef int sws_setColorspaceDetails(
SwsContext *context,
const int inv_table[4],
int srcRange,
const int table[4],
int dstRange,
int brightness,
int contrast,
int saturation
)