annotate src/ffmpeg/libavcodec/swscale.h @ 815:23a5aa2c545c trunk

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