media/libvpx/vpx_scale_rtcd_armv7-android-gcc.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vpx_scale_rtcd_armv7-android-gcc.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,79 @@
     1.4 +#ifndef VPX_SCALE_RTCD_H_
     1.5 +#define VPX_SCALE_RTCD_H_
     1.6 +
     1.7 +#ifdef RTCD_C
     1.8 +#define RTCD_EXTERN
     1.9 +#else
    1.10 +#define RTCD_EXTERN extern
    1.11 +#endif
    1.12 +
    1.13 +struct yv12_buffer_config;
    1.14 +
    1.15 +void vp8_horizontal_line_5_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
    1.16 +#define vp8_horizontal_line_5_4_scale vp8_horizontal_line_5_4_scale_c
    1.17 +
    1.18 +void vp8_vertical_band_5_4_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
    1.19 +#define vp8_vertical_band_5_4_scale vp8_vertical_band_5_4_scale_c
    1.20 +
    1.21 +void vp8_horizontal_line_5_3_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
    1.22 +#define vp8_horizontal_line_5_3_scale vp8_horizontal_line_5_3_scale_c
    1.23 +
    1.24 +void vp8_vertical_band_5_3_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
    1.25 +#define vp8_vertical_band_5_3_scale vp8_vertical_band_5_3_scale_c
    1.26 +
    1.27 +void vp8_horizontal_line_2_1_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width);
    1.28 +#define vp8_horizontal_line_2_1_scale vp8_horizontal_line_2_1_scale_c
    1.29 +
    1.30 +void vp8_vertical_band_2_1_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
    1.31 +#define vp8_vertical_band_2_1_scale vp8_vertical_band_2_1_scale_c
    1.32 +
    1.33 +void vp8_vertical_band_2_1_scale_i_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width);
    1.34 +#define vp8_vertical_band_2_1_scale_i vp8_vertical_band_2_1_scale_i_c
    1.35 +
    1.36 +void vp8_yv12_extend_frame_borders_c(struct yv12_buffer_config *ybf);
    1.37 +void vp8_yv12_extend_frame_borders_neon(struct yv12_buffer_config *ybf);
    1.38 +RTCD_EXTERN void (*vp8_yv12_extend_frame_borders)(struct yv12_buffer_config *ybf);
    1.39 +
    1.40 +void vp8_yv12_copy_frame_c(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.41 +void vp8_yv12_copy_frame_neon(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.42 +RTCD_EXTERN void (*vp8_yv12_copy_frame)(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.43 +
    1.44 +void vpx_yv12_copy_y_c(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.45 +void vpx_yv12_copy_y_neon(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.46 +RTCD_EXTERN void (*vpx_yv12_copy_y)(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
    1.47 +
    1.48 +void vp9_extend_frame_borders_c(struct yv12_buffer_config *ybf, int subsampling_x, int subsampling_y);
    1.49 +#define vp9_extend_frame_borders vp9_extend_frame_borders_c
    1.50 +
    1.51 +void vp9_extend_frame_inner_borders_c(struct yv12_buffer_config *ybf, int subsampling_x, int subsampling_y);
    1.52 +#define vp9_extend_frame_inner_borders vp9_extend_frame_inner_borders_c
    1.53 +
    1.54 +void vpx_scale_rtcd(void);
    1.55 +#include "vpx_config.h"
    1.56 +
    1.57 +#ifdef RTCD_C
    1.58 +#include "vpx_ports/arm.h"
    1.59 +static void setup_rtcd_internal(void)
    1.60 +{
    1.61 +    int flags = arm_cpu_caps();
    1.62 +
    1.63 +    (void)flags;
    1.64 +
    1.65 +
    1.66 +
    1.67 +
    1.68 +
    1.69 +
    1.70 +
    1.71 +
    1.72 +    vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_c;
    1.73 +    if (flags & HAS_NEON) vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_neon;
    1.74 +
    1.75 +    vp8_yv12_copy_frame = vp8_yv12_copy_frame_c;
    1.76 +    if (flags & HAS_NEON) vp8_yv12_copy_frame = vp8_yv12_copy_frame_neon;
    1.77 +
    1.78 +    vpx_yv12_copy_y = vpx_yv12_copy_y_c;
    1.79 +    if (flags & HAS_NEON) vpx_yv12_copy_y = vpx_yv12_copy_y_neon;
    1.80 +}
    1.81 +#endif
    1.82 +#endif

mercurial