diff options
author | Luca Abeni <lucabe72@email.it> | 2006-04-04 12:35:55 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-04-04 12:35:55 +0000 |
commit | 7b748aff2c84e97e04c5ce9fb2ec7684d52489ee (patch) | |
tree | c9c76e76a7d58d2b4fee6b8b3e26f182258e9f3d /libavcodec/swscale.h | |
parent | 703c8195a89d1784209d2167e1e9164d1d550e8f (diff) | |
download | ffmpeg-7b748aff2c84e97e04c5ce9fb2ec7684d52489ee.tar.gz |
Introduce swscale interface in libavcodec
Originally committed as revision 5266 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/swscale.h')
-rw-r--r-- | libavcodec/swscale.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libavcodec/swscale.h b/libavcodec/swscale.h new file mode 100644 index 0000000000..39ac0f1495 --- /dev/null +++ b/libavcodec/swscale.h @@ -0,0 +1,38 @@ +#ifndef SWSCALE_EMU_H +#define SWSCALE_EMU_H +/* Dummy, only useful for compilation! */ +#define SWS_FAST_BILINEAR 1 +#define SWS_BILINEAR 2 +#define SWS_BICUBIC 4 +#define SWS_X 8 +#define SWS_POINT 0x10 +#define SWS_AREA 0x20 +#define SWS_BICUBLIN 0x40 +#define SWS_GAUSS 0x80 +#define SWS_SINC 0x100 +#define SWS_LANCZOS 0x200 +#define SWS_SPLINE 0x400 + +#define SwsFilter void +struct SwsContext { + struct ImgReSampleContext *resampling_ctx; + enum PixelFormat src_pix_fmt, dst_pix_fmt; +}; + +struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, + int dstW, int dstH, int dstFormat, + int flags, SwsFilter *srcFilter, + SwsFilter *dstFilter, double *param); + +int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[], + int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); + +void sws_freeContext(struct SwsContext *swsContext); + +static inline void sws_global_init(void *(*alloc)(unsigned int size), + void (*free)(void *ptr), + void (*log)(void*, int level, const char *fmt, ...)) +{ +} + +#endif /* SWSCALE_EMU_H */ |