Mercurial > libavcodec.hg
annotate swscale.h @ 4059:219f4a12f52a libavcodec
removed useless variables
author | bcoudurier |
---|---|
date | Sun, 22 Oct 2006 16:12:13 +0000 |
parents | 207c22206d53 |
children |
rev | line source |
---|---|
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
1 /* |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
2 * copyright (C) 2006 Luca Abeni |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
3 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
4 * This file is part of FFmpeg. |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
5 * |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
6 * FFmpeg is free software; you can redistribute it and/or |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
7 * modify it under the terms of the GNU Lesser General Public |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
8 * License as published by the Free Software Foundation; either |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
9 * version 2.1 of the License, or (at your option) any later version. |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
10 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
11 * FFmpeg is distributed in the hope that it will be useful, |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
14 * Lesser General Public License for more details. |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
15 * |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
16 * You should have received a copy of the GNU Lesser General Public |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3699
diff
changeset
|
17 * License along with FFmpeg; if not, write to the Free Software |
3699
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
19 */ |
c537a97eec66
Add official LGPL license headers to the files that were missing them.
diego
parents:
3593
diff
changeset
|
20 |
3249 | 21 #ifndef SWSCALE_EMU_H |
22 #define SWSCALE_EMU_H | |
3593
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
23 |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
24 #ifdef __cplusplus |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
25 extern "C" { |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
26 #endif |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
27 |
3249 | 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 | |
42 struct SwsContext { | |
43 struct ImgReSampleContext *resampling_ctx; | |
44 enum PixelFormat src_pix_fmt, dst_pix_fmt; | |
45 }; | |
46 | |
47 struct 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 | |
52 int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[], | |
53 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); | |
54 | |
55 void sws_freeContext(struct SwsContext *swsContext); | |
56 | |
4036
207c22206d53
Implement sws_getCachedContext() in swscale emulation
lucabe
parents:
3947
diff
changeset
|
57 struct SwsContext *sws_getCachedContext(struct SwsContext *context, |
207c22206d53
Implement sws_getCachedContext() in swscale emulation
lucabe
parents:
3947
diff
changeset
|
58 int srcW, int srcH, int srcFormat, |
207c22206d53
Implement sws_getCachedContext() in swscale emulation
lucabe
parents:
3947
diff
changeset
|
59 int dstW, int dstH, int dstFormat, int flags, |
207c22206d53
Implement sws_getCachedContext() in swscale emulation
lucabe
parents:
3947
diff
changeset
|
60 SwsFilter *srcFilter, SwsFilter *dstFilter, double *param); |
207c22206d53
Implement sws_getCachedContext() in swscale emulation
lucabe
parents:
3947
diff
changeset
|
61 |
3593
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
62 #ifdef __cplusplus |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
63 } |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
64 #endif |
3da79b0751b1
Allow swscale emulation header to be included by C++ programs
lucabe
parents:
3518
diff
changeset
|
65 |
3249 | 66 #endif /* SWSCALE_EMU_H */ |