annotate swscale.h @ 3626:a6251ee2dfdb libavcodec

move variable declarations so that their scope is smaller
author michael
date Fri, 25 Aug 2006 13:58:27 +0000
parents 3da79b0751b1
children c537a97eec66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3249
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
1 #ifndef SWSCALE_EMU_H
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
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
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
8 /* Dummy, only useful for compilation! */
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
9 #define SWS_FAST_BILINEAR 1
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
10 #define SWS_BILINEAR 2
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
11 #define SWS_BICUBIC 4
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
12 #define SWS_X 8
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
13 #define SWS_POINT 0x10
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
14 #define SWS_AREA 0x20
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
15 #define SWS_BICUBLIN 0x40
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
16 #define SWS_GAUSS 0x80
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
17 #define SWS_SINC 0x100
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
18 #define SWS_LANCZOS 0x200
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
19 #define SWS_SPLINE 0x400
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
20
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
21 #define SwsFilter void
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
22 struct SwsContext {
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
23 struct ImgReSampleContext *resampling_ctx;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
24 enum PixelFormat src_pix_fmt, dst_pix_fmt;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
25 };
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
26
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
27 struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
28 int dstW, int dstH, int dstFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
29 int flags, SwsFilter *srcFilter,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
30 SwsFilter *dstFilter, double *param);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
31
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
32 int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
33 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
34
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
35 void sws_freeContext(struct SwsContext *swsContext);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
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
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
41 #endif /* SWSCALE_EMU_H */