~ubuntu-branches/ubuntu/feisty/avidemux/feisty

« back to all changes in this revision

Viewing changes to avidemux/ADM_lavcodec/swscale.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-12-15 17:13:20 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215171320-w79pvpehxx2fr217
Tags: 1:2.3.0-0.0ubuntu1
* Merge from debian-multimedia.org, remaining Ubuntu change:
  - desktop file,
  - no support for ccache and make -j.
* Closes Ubuntu: #69614.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SWSCALE_EMU_H
 
2
#define SWSCALE_EMU_H
 
3
/* Dummy, only useful for compilation! */
 
4
#define SWS_FAST_BILINEAR 1
 
5
#define SWS_BILINEAR 2
 
6
#define SWS_BICUBIC  4
 
7
#define SWS_X        8
 
8
#define SWS_POINT    0x10
 
9
#define SWS_AREA     0x20
 
10
#define SWS_BICUBLIN 0x40
 
11
#define SWS_GAUSS    0x80
 
12
#define SWS_SINC     0x100
 
13
#define SWS_LANCZOS  0x200
 
14
#define SWS_SPLINE   0x400
 
15
 
 
16
#define SwsFilter void
 
17
struct SwsContext {
 
18
    struct ImgReSampleContext *resampling_ctx;
 
19
    enum PixelFormat src_pix_fmt, dst_pix_fmt;
 
20
};
 
21
 
 
22
struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
 
23
                                  int dstW, int dstH, int dstFormat,
 
24
                                  int flags, SwsFilter *srcFilter,
 
25
                                  SwsFilter *dstFilter, double *param);
 
26
 
 
27
int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
 
28
              int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
 
29
 
 
30
void sws_freeContext(struct SwsContext *swsContext);
 
31
 
 
32
#endif /* SWSCALE_EMU_H */