view swscale.h @ 3563:a3db61f32f5a libavcodec

Support for Mac OS X Intel, part 3: binary integer constants: Apple's assembler only understands the same integer constants as C does: hex, decimal, octal. It doesn't understand binary integer constants (0b...) so this patch replaces binary integer constants with hex ones. Patch by John Dalgliesh % johnd AH defyne P org % Original thread: Date: Aug 10, 2006 8:16 AM Subject: [Ffmpeg-devel] Mac OS X Intel part 3: binary integer constants
author gpoirier
date Thu, 10 Aug 2006 09:06:06 +0000
parents 6bd323607d87
children 3da79b0751b1
line wrap: on
line source

#ifndef SWSCALE_EMU_H
#define SWSCALE_EMU_H
/* Dummy, only useful for compilation! */
#define SWS_FAST_BILINEAR 1
#define SWS_BILINEAR 2
#define SWS_BICUBIC  4
#define SWS_X        8
#define SWS_POINT    0x10
#define SWS_AREA     0x20
#define SWS_BICUBLIN 0x40
#define SWS_GAUSS    0x80
#define SWS_SINC     0x100
#define SWS_LANCZOS  0x200
#define SWS_SPLINE   0x400

#define SwsFilter void
struct SwsContext {
    struct ImgReSampleContext *resampling_ctx;
    enum PixelFormat src_pix_fmt, dst_pix_fmt;
};

struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
                                  int dstW, int dstH, int dstFormat,
                                  int flags, SwsFilter *srcFilter,
                                  SwsFilter *dstFilter, double *param);

int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
              int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);

void sws_freeContext(struct SwsContext *swsContext);

#endif /* SWSCALE_EMU_H */