videoscale: make 4tap scanline funcs static

This commit is contained in:
Tim-Philipp Müller 2012-08-04 18:51:12 +01:00
parent 07158ff1f2
commit 4c6ea69464
2 changed files with 47 additions and 37 deletions

View file

@ -37,6 +37,52 @@
static int16_t vs_4tap_taps[256][4];
static void vs_scanline_resample_4tap_Y (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_Y (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_RGBA (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_RGBA (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_RGB (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_RGB (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_YUYV (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_YUYV (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_UYVY (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_UYVY (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_RGB565 (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_RGB565 (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_RGB555 (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_RGB555 (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_Y16 (uint8_t * dest, uint8_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_Y16 (uint8_t * dest, uint8_t * src1,
uint8_t * src2, uint8_t * src3, uint8_t * src4, int n, int acc);
static void vs_scanline_resample_4tap_AYUV64 (uint16_t * dest, uint16_t * src,
int n, int src_width, int *xacc, int increment);
static void vs_scanline_merge_4tap_AYUV64 (uint16_t * dest, uint16_t * src1,
uint16_t * src2, uint16_t * src3, uint16_t * src4, int n, int acc);
static double
vs_4tap_func (double x)
{

View file

@ -30,68 +30,32 @@
#include "vs_image.h"
void vs_4tap_init (void);
void vs_scanline_resample_4tap_Y (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_RGBA (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_RGBA (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_RGBA (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_RGB (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_RGB (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_RGB (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_YUYV (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_YUYV (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_YUYV (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_UYVY (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_UYVY (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_UYVY (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_RGB565 (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_RGB565 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_RGB565 (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_RGB555 (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_RGB555 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_RGB555 (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_Y16 (uint8_t *dest, uint8_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_Y16 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
uint8_t *src3, uint8_t *src4, int n, int acc);
void vs_image_scale_4tap_Y16 (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);
void vs_scanline_resample_4tap_AYUV64 (uint16_t *dest, uint16_t *src,
int n, int src_width, int *xacc, int increment);
void vs_scanline_merge_4tap_AYUV64 (uint16_t *dest, uint16_t *src1, uint16_t *src2,
uint16_t *src3, uint16_t *src4, int n, int acc);
void vs_image_scale_4tap_AYUV64 (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf);