CABAC assembler optimizations ported to AMD64
[libav.git] / libavcodec / swscale.h
CommitLineData
04d7f601
DB
1/*
2 * copyright (C) 2006 Luca Abeni
3 *
b78e7197
DB
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
04d7f601
DB
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
b78e7197 9 * version 2.1 of the License, or (at your option) any later version.
04d7f601 10 *
b78e7197 11 * FFmpeg is distributed in the hope that it will be useful,
04d7f601
DB
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
b78e7197 17 * License along with FFmpeg; if not, write to the Free Software
04d7f601
DB
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
7b748aff
LA
21#ifndef SWSCALE_EMU_H
22#define SWSCALE_EMU_H
a37e9e86
LA
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
7b748aff
LA
28/* Dummy, only useful for compilation! */
29#define SWS_FAST_BILINEAR 1
30#define SWS_BILINEAR 2
31#define SWS_BICUBIC 4
32#define SWS_X 8
33#define SWS_POINT 0x10
34#define SWS_AREA 0x20
35#define SWS_BICUBLIN 0x40
36#define SWS_GAUSS 0x80
37#define SWS_SINC 0x100
38#define SWS_LANCZOS 0x200
39#define SWS_SPLINE 0x400
40
41#define SwsFilter void
42struct SwsContext {
43 struct ImgReSampleContext *resampling_ctx;
44 enum PixelFormat src_pix_fmt, dst_pix_fmt;
45};
46
47struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
48 int dstW, int dstH, int dstFormat,
49 int flags, SwsFilter *srcFilter,
50 SwsFilter *dstFilter, double *param);
51
52int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
53 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
54
55void sws_freeContext(struct SwsContext *swsContext);
56
96db3808
LA
57struct SwsContext *sws_getCachedContext(struct SwsContext *context,
58 int srcW, int srcH, int srcFormat,
59 int dstW, int dstH, int dstFormat, int flags,
60 SwsFilter *srcFilter, SwsFilter *dstFilter, double *param);
61
a37e9e86
LA
62#ifdef __cplusplus
63}
64#endif
65
7b748aff 66#endif /* SWSCALE_EMU_H */