annotate swscale.h @ 3699:c537a97eec66 libavcodec

Add official LGPL license headers to the files that were missing them.
author diego
date Sun, 10 Sep 2006 14:02:42 +0000
parents 3da79b0751b1
children c8c591fe26f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 *
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
4 * This library is free software; you can redistribute it and/or
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
5 * 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
6 * License as published by the Free Software Foundation; either
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
7 * version 2 of the License, or (at your option) any later version.
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
8 *
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
9 * This library is distributed in the hope that it will be useful,
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
10 * 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
11 * 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
12 * 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
13 *
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
14 * You should have received a copy of the GNU Lesser General Public
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
15 * License along with this library; if not, write to the Free Software
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
16 * 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
17 */
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 3593
diff changeset
18
3249
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
19 #ifndef SWSCALE_EMU_H
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
20 #define SWSCALE_EMU_H
3593
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
21
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
22 #ifdef __cplusplus
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
23 extern "C" {
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
24 #endif
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
25
3249
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
26 /* Dummy, only useful for compilation! */
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
27 #define SWS_FAST_BILINEAR 1
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
28 #define SWS_BILINEAR 2
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
29 #define SWS_BICUBIC 4
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
30 #define SWS_X 8
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
31 #define SWS_POINT 0x10
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
32 #define SWS_AREA 0x20
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
33 #define SWS_BICUBLIN 0x40
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
34 #define SWS_GAUSS 0x80
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
35 #define SWS_SINC 0x100
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
36 #define SWS_LANCZOS 0x200
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
37 #define SWS_SPLINE 0x400
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
38
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
39 #define SwsFilter void
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
40 struct SwsContext {
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
41 struct ImgReSampleContext *resampling_ctx;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
42 enum PixelFormat src_pix_fmt, dst_pix_fmt;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
43 };
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
44
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
45 struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
46 int dstW, int dstH, int dstFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
47 int flags, SwsFilter *srcFilter,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
48 SwsFilter *dstFilter, double *param);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
49
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
50 int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
51 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
52
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
53 void sws_freeContext(struct SwsContext *swsContext);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
54
3593
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
55 #ifdef __cplusplus
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
56 }
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
57 #endif
3da79b0751b1 Allow swscale emulation header to be included by C++ programs
lucabe
parents: 3518
diff changeset
58
3249
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
59 #endif /* SWSCALE_EMU_H */