blob: c91e60ddc8a9fdca4f28e572965bf4dc2947d00f [file] [log] [blame]
Yaowu Xuf883b422016-08-30 14:01:10 -07001sub aom_scale_forward_decls() {
2print <<EOF
3struct yv12_buffer_config;
4EOF
5}
6forward_decls qw/aom_scale_forward_decls/;
7
8# Scaler functions
9if (aom_config("CONFIG_SPATIAL_RESAMPLING") eq "yes") {
10 add_proto qw/void aom_horizontal_line_5_4_scale/, "const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width";
Urvang Joshid650f272016-10-25 13:00:22 -070011 add_proto qw/void aom_vertical_band_5_4_scale/, "unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width";
Yaowu Xuf883b422016-08-30 14:01:10 -070012 add_proto qw/void aom_horizontal_line_5_3_scale/, "const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width";
Urvang Joshid650f272016-10-25 13:00:22 -070013 add_proto qw/void aom_vertical_band_5_3_scale/, "unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width";
Yaowu Xuf883b422016-08-30 14:01:10 -070014 add_proto qw/void aom_horizontal_line_2_1_scale/, "const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width";
Urvang Joshid650f272016-10-25 13:00:22 -070015 add_proto qw/void aom_vertical_band_2_1_scale/, "unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width";
16 add_proto qw/void aom_vertical_band_2_1_scale_i/, "unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width";
Yaowu Xuf883b422016-08-30 14:01:10 -070017}
18
19add_proto qw/void aom_yv12_extend_frame_borders/, "struct yv12_buffer_config *ybf";
20
Debargha Mukherjeea43a2d92017-01-03 15:14:57 -080021add_proto qw/void aom_yv12_copy_frame/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc";
Yaowu Xuf883b422016-08-30 14:01:10 -070022
23add_proto qw/void aom_yv12_copy_y/, "const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc";
24
Debargha Mukherjeea43a2d92017-01-03 15:14:57 -080025add_proto qw/void aom_yv12_copy_u/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc";
26
27add_proto qw/void aom_yv12_copy_v/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc";
28
Yaowu Xuf883b422016-08-30 14:01:10 -070029if (aom_config("CONFIG_AV1") eq "yes") {
30 add_proto qw/void aom_extend_frame_borders/, "struct yv12_buffer_config *ybf";
31 specialize qw/aom_extend_frame_borders dspr2/;
32
33 add_proto qw/void aom_extend_frame_inner_borders/, "struct yv12_buffer_config *ybf";
34 specialize qw/aom_extend_frame_inner_borders dspr2/;
35
36 add_proto qw/void aom_extend_frame_borders_y/, "struct yv12_buffer_config *ybf";
37 specialize qw/aom_extend_frame_borders_y/;
38}
391;