1 | use ffi::*; |
2 | use libc::c_int; |
3 | |
4 | bitflags! { |
5 | pub struct Flags: c_int { |
6 | const FAST_BILINEAR = SWS_FAST_BILINEAR; |
7 | const BILINEAR = SWS_BILINEAR; |
8 | const BICUBIC = SWS_BICUBIC; |
9 | const X = SWS_X; |
10 | const POINT = SWS_POINT; |
11 | const AREA = SWS_AREA; |
12 | const BICUBLIN = SWS_BICUBLIN; |
13 | const GAUSS = SWS_GAUSS; |
14 | const SINC = SWS_SINC; |
15 | const LANCZOS = SWS_LANCZOS; |
16 | const SPLINE = SWS_SPLINE; |
17 | const SRC_V_CHR_DROP_MASK = SWS_SRC_V_CHR_DROP_MASK; |
18 | const SRC_V_CHR_DROP_SHIFT = SWS_SRC_V_CHR_DROP_SHIFT; |
19 | const PARAM_DEFAULT = SWS_PARAM_DEFAULT; |
20 | const PRINT_INFO = SWS_PRINT_INFO; |
21 | const FULL_CHR_H_INT = SWS_FULL_CHR_H_INT; |
22 | const FULL_CHR_H_INP = SWS_FULL_CHR_H_INP; |
23 | const DIRECT_BGR = SWS_DIRECT_BGR; |
24 | const ACCURATE_RND = SWS_ACCURATE_RND; |
25 | const BITEXACT = SWS_BITEXACT; |
26 | const ERROR_DIFFUSION = SWS_ERROR_DIFFUSION; |
27 | } |
28 | } |
29 | |