Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 1 | sub aom_scale_forward_decls() { |
| 2 | print <<EOF |
| 3 | struct yv12_buffer_config; |
| 4 | EOF |
| 5 | } |
| 6 | forward_decls qw/aom_scale_forward_decls/; |
| 7 | |
| 8 | # Scaler functions |
| 9 | if (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 Joshi | d650f27 | 2016-10-25 13:00:22 -0700 | [diff] [blame] | 11 | 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 12 | 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 Joshi | d650f27 | 2016-10-25 13:00:22 -0700 | [diff] [blame] | 13 | 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 14 | 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 Joshi | d650f27 | 2016-10-25 13:00:22 -0700 | [diff] [blame] | 15 | 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | add_proto qw/void aom_yv12_extend_frame_borders/, "struct yv12_buffer_config *ybf"; |
| 20 | |
Debargha Mukherjee | a43a2d9 | 2017-01-03 15:14:57 -0800 | [diff] [blame] | 21 | add_proto qw/void aom_yv12_copy_frame/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc"; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 22 | |
| 23 | add_proto qw/void aom_yv12_copy_y/, "const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc"; |
| 24 | |
Debargha Mukherjee | a43a2d9 | 2017-01-03 15:14:57 -0800 | [diff] [blame] | 25 | add_proto qw/void aom_yv12_copy_u/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc"; |
| 26 | |
| 27 | add_proto qw/void aom_yv12_copy_v/, "const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc"; |
| 28 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 29 | if (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 | } |
| 39 | 1; |