Logo Search packages:      
Sourcecode: blender version File versions

imgresample.c File Reference


Detailed Description

High quality image resampling with polyphase filters .

Definition in file imgresample.c.

#include "avcodec.h"
#include "swscale.h"
#include "dsputil.h"

Go to the source code of this file.

Classes

struct  ImgReSampleContext

Defines

#define FCENTER   1
#define FILTER_BITS   8
#define LINE_BUF_HEIGHT   (NB_TAPS * 4)
#define NB_COMPONENTS   3
#define NB_PHASES   (1 << PHASE_BITS)
#define NB_TAPS   4
#define PHASE_BITS   4
#define POS_FRAC   (1 << POS_FRAC_BITS)
#define POS_FRAC_BITS   16

Functions

void av_build_filter (int16_t *filter, double factor, int tap_count, int phase_count, int scale, int type)
static void component_resample (ImgReSampleContext *s, uint8_t *output, int owrap, int owidth, int oheight, uint8_t *input, int iwrap, int iwidth, int iheight)
static int get_phase (int pos)
static void h_resample (uint8_t *dst, int dst_width, const uint8_t *src, int src_width, int src_start, int src_incr, int16_t *filters)
static void h_resample_fast (uint8_t *dst, int dst_width, const uint8_t *src, int src_width, int src_start, int src_incr, int16_t *filters)
static void h_resample_slow (uint8_t *dst, int dst_width, const uint8_t *src, int src_width, int src_start, int src_incr, int16_t *filters)
void img_resample (ImgReSampleContext *s, AVPicture *output, const AVPicture *input)
void img_resample_close (ImgReSampleContext *s)
ImgReSampleContext * img_resample_full_init (int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright)
ImgReSampleContext * img_resample_init (int owidth, int oheight, int iwidth, int iheight)
void sws_freeContext (struct SwsContext *ctx)
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[])
static void v_resample (uint8_t *dst, int dst_width, const uint8_t *src, int wrap, int16_t *filter)


Generated by  Doxygen 1.6.0   Back to index