videoscale: sprinkle some G_GNUC_INTERNAL

Not sure it actually makes any difference for plugins though.
This commit is contained in:
Tim-Philipp Müller 2012-08-04 19:08:20 +01:00
parent 4c6ea69464
commit a314325002
5 changed files with 191 additions and 120 deletions

View file

@ -91,7 +91,7 @@ struct _GstVideoScaleClass {
GstVideoFilterClass parent_class;
};
GType gst_video_scale_get_type(void);
G_GNUC_INTERNAL GType gst_video_scale_get_type (void);
G_END_DECLS

View file

@ -30,33 +30,42 @@
#include "vs_image.h"
void vs_4tap_init (void);
G_GNUC_INTERNAL void vs_4tap_init (void);
void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_Y (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_RGBA (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_RGBA (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_RGB (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_RGB (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_YUYV (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_YUYV (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_UYVY (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_UYVY (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_RGB565 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_RGB565 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_RGB555 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_RGB555 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_Y16 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_Y16 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_4tap_AYUV64 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_4tap_AYUV64 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
#endif

View file

@ -31,14 +31,14 @@
#include <_stdint.h>
#include "vs_image.h"
void vs_fill_borders_RGBA (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_RGB (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_YUYV (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_UYVY (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_Y (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_Y16 (const VSImage *dest, const uint16_t val);
void vs_fill_borders_RGB565 (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_RGB555 (const VSImage *dest, const uint8_t *val);
void vs_fill_borders_AYUV64 (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_RGBA (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_RGB (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_YUYV (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_UYVY (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_Y (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_Y16 (const VSImage *dest, const uint16_t val);
G_GNUC_INTERNAL void vs_fill_borders_RGB565 (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_RGB555 (const VSImage *dest, const uint8_t *val);
G_GNUC_INTERNAL void vs_fill_borders_AYUV64 (const VSImage *dest, const uint8_t *val);
#endif /* __VS_FILL_BORDERS_H__ */

View file

@ -45,68 +45,129 @@ struct _VSImage {
int stride;
};
void vs_image_scale_nearest_RGBA (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_nearest_RGBA (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_linear_RGBA (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_lanczos_AYUV (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf, double sharpness, gboolean dither, int submethod,
double a, double sharpen);
void vs_image_scale_lanczos_AYUV64 (const VSImage * dest, const VSImage * src,
uint8_t * tmpbuf, double sharpness, gboolean dither, int submethod,
double a, double sharpen);
void vs_image_scale_nearest_RGB (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_RGB (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_linear_RGBA (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_YUYV (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_YUYV (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_lanczos_AYUV (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf,
double sharpness,
gboolean dither,
int submethod,
double a,
double sharpen);
G_GNUC_INTERNAL void vs_image_scale_lanczos_AYUV64 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf,
double sharpness,
gboolean dither,
int submethod,
double a,
double sharpen);
G_GNUC_INTERNAL void vs_image_scale_nearest_RGB (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_UYVY (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_UYVY (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_linear_RGB (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_NV12 (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_NV12 (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_nearest_YUYV (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_Y (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_Y (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_lanczos_Y (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf, double sharpness, gboolean dither, int submethod,
double a, double sharpen);
void vs_image_scale_nearest_RGB565 (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_RGB565 (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_linear_YUYV (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_RGB555 (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_RGB555 (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_nearest_UYVY (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_Y16 (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_Y16 (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_linear_UYVY (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_AYUV16 (const VSImage *dest, const VSImage *src,
uint8_t *tmpbuf);
void vs_image_scale_linear_AYUV16 (const VSImage *dest, const VSImage *src,
G_GNUC_INTERNAL void vs_image_scale_nearest_NV12 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
void vs_image_scale_nearest_AYUV64 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_linear_NV12 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_nearest_Y (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_linear_Y (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_lanczos_Y (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf,
double sharpness,
gboolean dither,
int submethod,
double a,
double sharpen);
G_GNUC_INTERNAL void vs_image_scale_nearest_RGB565 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_linear_RGB565 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_nearest_RGB555 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_linear_RGB555 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_nearest_Y16 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_linear_Y16 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_nearest_AYUV16 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_linear_AYUV16 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf);
G_GNUC_INTERNAL void vs_image_scale_nearest_AYUV64 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf8);
void vs_image_scale_linear_AYUV64 (const VSImage * dest, const VSImage * src,
G_GNUC_INTERNAL void vs_image_scale_linear_AYUV64 (const VSImage * dest,
const VSImage * src,
uint8_t * tmpbuf8);
#endif

View file

@ -29,55 +29,56 @@
#define __VS_SCANLINE_H__
#include <_stdint.h>
#include <glib.h>
void vs_scanline_downsample_Y (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_Y (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
void vs_scanline_resample_linear_Y (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
void vs_scanline_merge_linear_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_Y (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_Y (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_Y (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_RGBA (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_RGBA (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_RGBA (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_RGBA (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_RGBA (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_RGBA (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_RGBA (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_RGBA (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_RGB (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_RGB (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_RGB (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_RGB (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_RGB (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_RGB (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_RGB (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_RGB (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_YUYV (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_YUYV (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_YUYV (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_YUYV (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_YUYV (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_YUYV (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_YUYV (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_YUYV (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_UYVY (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_UYVY (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_UYVY (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_UYVY (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_UYVY (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_UYVY (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_UYVY (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_UYVY (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_NV12 (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_NV12 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_NV12 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_NV12 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_NV12 (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_NV12 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_NV12 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_NV12 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_RGB565 (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_RGB565 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_RGB565 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_RGB565 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_RGB565 (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_RGB565 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_RGB565 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_RGB565 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_RGB555 (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_RGB555 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_RGB555 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
void vs_scanline_merge_linear_RGB555 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_RGB555 (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_RGB555 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_RGB555 (uint8_t *dest, uint8_t *src, int src_width, int n, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_RGB555 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_downsample_Y16 (uint8_t *dest, uint8_t *src, int n);
void vs_scanline_resample_nearest_Y16 (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
void vs_scanline_resample_linear_Y16 (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
void vs_scanline_merge_linear_Y16 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
G_GNUC_INTERNAL void vs_scanline_downsample_Y16 (uint8_t *dest, uint8_t *src, int n);
G_GNUC_INTERNAL void vs_scanline_resample_nearest_Y16 (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_resample_linear_Y16 (uint8_t *dest, uint8_t *src, int n, int src_width, int *accumulator, int increment);
G_GNUC_INTERNAL void vs_scanline_merge_linear_Y16 (uint8_t *dest, uint8_t *src1, uint8_t *src2, int n, int x);
void vs_scanline_resample_nearest_AYUV64 (uint8_t * dest, uint8_t * src,
G_GNUC_INTERNAL void vs_scanline_resample_nearest_AYUV64 (uint8_t * dest, uint8_t * src,
int src_width, int n, int *accumulator, int increment);
void vs_scanline_resample_linear_AYUV64 (uint8_t * dest, uint8_t * src,
G_GNUC_INTERNAL void vs_scanline_resample_linear_AYUV64 (uint8_t * dest, uint8_t * src,
int src_width, int n, int *accumulator, int increment);
#endif