comparison src/impl/hoofbaby/codec/libav/swscale.d @ 0:3425707ddbf6

Initial import (hopefully this mercurial stuff works...)
author fraserofthenight
date Mon, 06 Jul 2009 08:06:28 -0700
parents
children a1202aac1124
comparison
equal deleted inserted replaced
-1:000000000000 0:3425707ddbf6
1 /* THIS FILE GENERATED BY bcd.gen */
2 module hoofbaby.codec.libav.swscale;
3
4 import hoofbaby.codec.libav.avutil;
5
6 enum
7 {
8 LIBSWSCALE_VERSION_MAJOR = 0,
9 LIBSWSCALE_VERSION_MINOR = 7,
10 LIBSWSCALE_VERSION_MICRO = 1,
11 SWS_FAST_BILINEAR = 1,
12 SWS_BILINEAR = 2,
13 SWS_BICUBIC = 4,
14 SWS_X = 8,
15 SWS_POINT = 0x10,
16 SWS_AREA = 0x20,
17 SWS_BICUBLIN = 0x40,
18 SWS_GAUSS = 0x80,
19 SWS_SINC = 0x100,
20 SWS_LANCZOS = 0x200,
21 SWS_SPLINE = 0x400,
22 SWS_SRC_V_CHR_DROP_MASK = 0x30000,
23 SWS_SRC_V_CHR_DROP_SHIFT = 16,
24 SWS_PARAM_DEFAULT = 123456,
25 SWS_PRINT_INFO = 0x1000,
26 SWS_FULL_CHR_H_INT = 0x2000,
27 SWS_FULL_CHR_H_INP = 0x4000,
28 SWS_DIRECT_BGR = 0x8000,
29 SWS_ACCURATE_RND = 0x40000,
30 SWS_BITEXACT = 0x80000,
31 SWS_CPU_CAPS_MMX = 0x80000000,
32 SWS_CPU_CAPS_MMX2 = 0x20000000,
33 SWS_CPU_CAPS_3DNOW = 0x40000000,
34 SWS_CPU_CAPS_ALTIVEC = 0x10000000,
35 SWS_CPU_CAPS_BFIN = 0x01000000,
36 SWS_CS_ITU709 = 1,
37 SWS_CS_FCC = 4,
38 SWS_CS_ITU601 = 5,
39 SWS_CS_ITU624 = 5,
40 SWS_CS_SMPTE170M = 5,
41 SWS_CS_SMPTE240M = 7,
42 SWS_CS_DEFAULT = 5,
43 }
44
45 const double SWS_MAX_REDUCE_CUTOFF = 0.002;
46 typedef void SwsContext;
47
48 alias int function() _BCD_func__867;
49
50 struct SwsFilter
51 {
52 SwsVector* lumH;
53 SwsVector* lumV;
54 SwsVector* chrH;
55 SwsVector* chrV;
56 }
57
58 struct SwsVector
59 {
60 double* coeff;
61 int length;
62 }
63
64 extern(C)
65 {
66 SwsContext* sws_getCachedContext(SwsContext*, int, int, int, int, int, int, int, SwsFilter*, SwsFilter*, double*);
67 void sws_freeFilter(SwsFilter*);
68 SwsFilter* sws_getDefaultFilter(float, float, float, float, float, float, int);
69 void sws_freeVec(SwsVector*);
70 void sws_printVec2(SwsVector*, AVCLASS*, int);
71 void sws_printVec(SwsVector*);
72 SwsVector* sws_cloneVec(SwsVector*);
73 void sws_shiftVec(SwsVector*, int);
74 void sws_subVec(SwsVector*, SwsVector*);
75 void sws_addVec(SwsVector*, SwsVector*);
76 void sws_convVec(SwsVector*, SwsVector*);
77 void sws_normalizeVec(SwsVector*, double);
78 void sws_scaleVec(SwsVector*, double);
79 SwsVector* sws_getIdentityVec();
80 SwsVector* sws_getConstVec(double, int);
81 SwsVector* sws_getGaussianVec(double, double);
82 int sws_getColorspaceDetails(SwsContext*, int**, int*, int**, int*, int*, int*, int*);
83 int sws_setColorspaceDetails(SwsContext*, int*, int, int*, int, int, int, int);
84 int sws_scale_ordered(SwsContext*, char**, int*, int, int, char**, int*);
85 int sws_scale(SwsContext*, char**, int*, int, int, char**, int*);
86 SwsContext* sws_getContext(int, int, int, int, int, int, int, SwsFilter*, SwsFilter*, double*);
87 void sws_freeContext(SwsContext*);
88 uint swscale_version();
89 }