1 | #ifndef SWSCALE_EMU_H
|
---|
2 | #define SWSCALE_EMU_H
|
---|
3 | /* Dummy, only useful for compilation! */
|
---|
4 | #define SWS_FAST_BILINEAR 1
|
---|
5 | #define SWS_BILINEAR 2
|
---|
6 | #define SWS_BICUBIC 4
|
---|
7 | #define SWS_X 8
|
---|
8 | #define SWS_POINT 0x10
|
---|
9 | #define SWS_AREA 0x20
|
---|
10 | #define SWS_BICUBLIN 0x40
|
---|
11 | #define SWS_GAUSS 0x80
|
---|
12 | #define SWS_SINC 0x100
|
---|
13 | #define SWS_LANCZOS 0x200
|
---|
14 | #define SWS_SPLINE 0x400
|
---|
15 |
|
---|
16 | #define SwsFilter void
|
---|
17 | struct SwsContext {
|
---|
18 | struct ImgReSampleContext *resampling_ctx;
|
---|
19 | enum PixelFormat src_pix_fmt, dst_pix_fmt;
|
---|
20 | };
|
---|
21 |
|
---|
22 | struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
|
---|
23 | int dstW, int dstH, int dstFormat,
|
---|
24 | int flags, SwsFilter *srcFilter,
|
---|
25 | SwsFilter *dstFilter, double *param);
|
---|
26 |
|
---|
27 | int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
|
---|
28 | int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
|
---|
29 |
|
---|
30 | void sws_freeContext(struct SwsContext *swsContext);
|
---|
31 |
|
---|
32 | static inline void sws_global_init(void *(*alloc)(unsigned int size),
|
---|
33 | void (*free)(void *ptr),
|
---|
34 | void (*log)(void*, int level, const char *fmt, ...))
|
---|
35 | {
|
---|
36 | }
|
---|
37 |
|
---|
38 | #endif /* SWSCALE_EMU_H */
|
---|