2 * Image Scaling Functions (4 tap)
3 * Copyright (c) 2005 David A. Schleef <ds@schleef.org>
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
34 void vs_4tap_init (void);
35 void vs_scanline_resample_4tap_Y (uint8_t *dest, uint8_t *src,
36 int n, int src_width, int *xacc, int increment);
37 void vs_scanline_merge_4tap_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2,
38 uint8_t *src3, uint8_t *src4, int n, int acc);
39 void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
42 void vs_scanline_resample_4tap_RGBA (uint8_t *dest, uint8_t *src,
43 int n, int src_width, int *xacc, int increment);
44 void vs_scanline_merge_4tap_RGBA (uint8_t *dest, uint8_t *src1, uint8_t *src2,
45 uint8_t *src3, uint8_t *src4, int n, int acc);
46 void vs_image_scale_4tap_RGBA (const VSImage * dest, const VSImage * src,
49 void vs_scanline_resample_4tap_RGB (uint8_t *dest, uint8_t *src,
50 int n, int src_width, int *xacc, int increment);
51 void vs_scanline_merge_4tap_RGB (uint8_t *dest, uint8_t *src1, uint8_t *src2,
52 uint8_t *src3, uint8_t *src4, int n, int acc);
53 void vs_image_scale_4tap_RGB (const VSImage * dest, const VSImage * src,
56 void vs_scanline_resample_4tap_YUYV (uint8_t *dest, uint8_t *src,
57 int n, int src_width, int *xacc, int increment);
58 void vs_scanline_merge_4tap_YUYV (uint8_t *dest, uint8_t *src1, uint8_t *src2,
59 uint8_t *src3, uint8_t *src4, int n, int acc);
60 void vs_image_scale_4tap_YUYV (const VSImage * dest, const VSImage * src,
63 void vs_scanline_resample_4tap_UYVY (uint8_t *dest, uint8_t *src,
64 int n, int src_width, int *xacc, int increment);
65 void vs_scanline_merge_4tap_UYVY (uint8_t *dest, uint8_t *src1, uint8_t *src2,
66 uint8_t *src3, uint8_t *src4, int n, int acc);
67 void vs_image_scale_4tap_UYVY (const VSImage * dest, const VSImage * src,
70 void vs_scanline_resample_4tap_RGB565 (uint8_t *dest, uint8_t *src,
71 int n, int src_width, int *xacc, int increment);
72 void vs_scanline_merge_4tap_RGB565 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
73 uint8_t *src3, uint8_t *src4, int n, int acc);
74 void vs_image_scale_4tap_RGB565 (const VSImage * dest, const VSImage * src,
77 void vs_scanline_resample_4tap_RGB555 (uint8_t *dest, uint8_t *src,
78 int n, int src_width, int *xacc, int increment);
79 void vs_scanline_merge_4tap_RGB555 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
80 uint8_t *src3, uint8_t *src4, int n, int acc);
81 void vs_image_scale_4tap_RGB555 (const VSImage * dest, const VSImage * src,
84 void vs_scanline_resample_4tap_Y16 (uint8_t *dest, uint8_t *src,
85 int n, int src_width, int *xacc, int increment);
86 void vs_scanline_merge_4tap_Y16 (uint8_t *dest, uint8_t *src1, uint8_t *src2,
87 uint8_t *src3, uint8_t *src4, int n, int acc);
88 void vs_image_scale_4tap_Y16 (const VSImage * dest, const VSImage * src,
91 void vs_scanline_resample_4tap_AYUV64 (uint16_t *dest, uint16_t *src,
92 int n, int src_width, int *xacc, int increment);
93 void vs_scanline_merge_4tap_AYUV64 (uint16_t *dest, uint16_t *src1, uint16_t *src2,
94 uint16_t *src3, uint16_t *src4, int n, int acc);
95 void vs_image_scale_4tap_AYUV64 (const VSImage * dest, const VSImage * src,