Mercurial > libavcodec.hg
annotate swscale.h @ 3697:596e62da8f29 libavcodec
rename vector to vect to avoid clash with Apple gcc
author | aurel |
---|---|
date | Sat, 09 Sep 2006 22:53:44 +0000 |
parents | 3da79b0751b1 |
children | c537a97eec66 |
rev | line source |
---|---|
3249 | 1 #ifndef SWSCALE_EMU_H |
2 #define SWSCALE_EMU_H | |
3593
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
3 |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
4 #ifdef __cplusplus |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
5 extern "C" { |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
6 #endif |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
7 |
3249 | 8 /* Dummy, only useful for compilation! */ |
9 #define SWS_FAST_BILINEAR 1 | |
10 #define SWS_BILINEAR 2 | |
11 #define SWS_BICUBIC 4 | |
12 #define SWS_X 8 | |
13 #define SWS_POINT 0x10 | |
14 #define SWS_AREA 0x20 | |
15 #define SWS_BICUBLIN 0x40 | |
16 #define SWS_GAUSS 0x80 | |
17 #define SWS_SINC 0x100 | |
18 #define SWS_LANCZOS 0x200 | |
19 #define SWS_SPLINE 0x400 | |
20 | |
21 #define SwsFilter void | |
22 struct SwsContext { | |
23 struct ImgReSampleContext *resampling_ctx; | |
24 enum PixelFormat src_pix_fmt, dst_pix_fmt; | |
25 }; | |
26 | |
27 struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, | |
28 int dstW, int dstH, int dstFormat, | |
29 int flags, SwsFilter *srcFilter, | |
30 SwsFilter *dstFilter, double *param); | |
31 | |
32 int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[], | |
33 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); | |
34 | |
35 void sws_freeContext(struct SwsContext *swsContext); | |
36 | |
3593
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
37 #ifdef __cplusplus |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
38 } |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
39 #endif |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
40 |
3249 | 41 #endif /* SWSCALE_EMU_H */ |