annotate swscale.h @ 3480:9eb59c4a22d2 libavcodec

Modify preset compression levels to utilize log search.
author jbr
date Sun, 16 Jul 2006 17:04:54 +0000
parents ad3d12d04645
children 6bd323607d87
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3249
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
1 #ifndef SWSCALE_EMU_H
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
2 #define SWSCALE_EMU_H
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
3 /* Dummy, only useful for compilation! */
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
4 #define SWS_FAST_BILINEAR 1
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
5 #define SWS_BILINEAR 2
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
6 #define SWS_BICUBIC 4
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
7 #define SWS_X 8
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
8 #define SWS_POINT 0x10
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
9 #define SWS_AREA 0x20
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
10 #define SWS_BICUBLIN 0x40
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
11 #define SWS_GAUSS 0x80
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
12 #define SWS_SINC 0x100
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
13 #define SWS_LANCZOS 0x200
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
14 #define SWS_SPLINE 0x400
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
15
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
16 #define SwsFilter void
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
17 struct SwsContext {
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
18 struct ImgReSampleContext *resampling_ctx;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
19 enum PixelFormat src_pix_fmt, dst_pix_fmt;
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
20 };
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
21
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
22 struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
23 int dstW, int dstH, int dstFormat,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
24 int flags, SwsFilter *srcFilter,
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
25 SwsFilter *dstFilter, double *param);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
26
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
27 int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
28 int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
29
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
30 void sws_freeContext(struct SwsContext *swsContext);
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
31
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
32 static inline void sws_global_init(void *(*alloc)(unsigned int size),
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
33 void (*free)(void *ptr),
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
34 void (*log)(void*, int level, const char *fmt, ...))
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
35 {
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
36 }
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
37
ad3d12d04645 Introduce swscale interface in libavcodec
lucabe
parents:
diff changeset
38 #endif /* SWSCALE_EMU_H */