2006-09-10 17:02:42 +03:00
|
|
|
/*
|
|
|
|
* copyright (C) 2006 Luca Abeni
|
|
|
|
*
|
2006-10-07 18:30:46 +03:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2006-09-10 17:02:42 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 18:30:46 +03:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2006-09-10 17:02:42 +03:00
|
|
|
*
|
2006-10-07 18:30:46 +03:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2006-09-10 17:02:42 +03:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2006-10-07 18:30:46 +03:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-09-10 17:02:42 +03:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2006-04-04 15:35:55 +03:00
|
|
|
#ifndef SWSCALE_EMU_H
|
|
|
|
#define SWSCALE_EMU_H
|
2006-08-19 18:14:44 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-04-04 15:35:55 +03:00
|
|
|
/* 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);
|
|
|
|
|
2006-08-19 18:14:44 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-04-04 15:35:55 +03:00
|
|
|
#endif /* SWSCALE_EMU_H */
|