OLD | NEW |
1 #ifndef VPX_SCALE_RTCD_H_ | 1 #ifndef VPX_SCALE_RTCD_H_ |
2 #define VPX_SCALE_RTCD_H_ | 2 #define VPX_SCALE_RTCD_H_ |
3 | 3 |
4 #ifdef RTCD_C | 4 #ifdef RTCD_C |
5 #define RTCD_EXTERN | 5 #define RTCD_EXTERN |
6 #else | 6 #else |
7 #define RTCD_EXTERN extern | 7 #define RTCD_EXTERN extern |
8 #endif | 8 #endif |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void vp8_yv12_extend_frame_borders_neon(struct yv12_buffer_config *ybf); | 42 void vp8_yv12_extend_frame_borders_neon(struct yv12_buffer_config *ybf); |
43 RTCD_EXTERN void (*vp8_yv12_extend_frame_borders)(struct yv12_buffer_config *ybf
); | 43 RTCD_EXTERN void (*vp8_yv12_extend_frame_borders)(struct yv12_buffer_config *ybf
); |
44 | 44 |
45 void vp9_extend_frame_borders_c(struct yv12_buffer_config *ybf); | 45 void vp9_extend_frame_borders_c(struct yv12_buffer_config *ybf); |
46 #define vp9_extend_frame_borders vp9_extend_frame_borders_c | 46 #define vp9_extend_frame_borders vp9_extend_frame_borders_c |
47 | 47 |
48 void vp9_extend_frame_inner_borders_c(struct yv12_buffer_config *ybf); | 48 void vp9_extend_frame_inner_borders_c(struct yv12_buffer_config *ybf); |
49 #define vp9_extend_frame_inner_borders vp9_extend_frame_inner_borders_c | 49 #define vp9_extend_frame_inner_borders vp9_extend_frame_inner_borders_c |
50 | 50 |
51 void vpx_yv12_copy_y_c(const struct yv12_buffer_config *src_ybc, struct yv12_buf
fer_config *dst_ybc); | 51 void vpx_yv12_copy_y_c(const struct yv12_buffer_config *src_ybc, struct yv12_buf
fer_config *dst_ybc); |
52 void vpx_yv12_copy_y_neon(const struct yv12_buffer_config *src_ybc, struct yv12_
buffer_config *dst_ybc); | 52 #define vpx_yv12_copy_y vpx_yv12_copy_y_c |
53 RTCD_EXTERN void (*vpx_yv12_copy_y)(const struct yv12_buffer_config *src_ybc, st
ruct yv12_buffer_config *dst_ybc); | |
54 | 53 |
55 void vpx_scale_rtcd(void); | 54 void vpx_scale_rtcd(void); |
| 55 |
56 #include "vpx_config.h" | 56 #include "vpx_config.h" |
57 | 57 |
58 #ifdef RTCD_C | 58 #ifdef RTCD_C |
59 #include "vpx_ports/arm.h" | 59 #include "vpx_ports/arm.h" |
60 static void setup_rtcd_internal(void) | 60 static void setup_rtcd_internal(void) |
61 { | 61 { |
62 int flags = arm_cpu_caps(); | 62 int flags = arm_cpu_caps(); |
63 | 63 |
64 (void)flags; | 64 (void)flags; |
65 | 65 |
66 | |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | |
73 vp8_yv12_copy_frame = vp8_yv12_copy_frame_c; | 66 vp8_yv12_copy_frame = vp8_yv12_copy_frame_c; |
74 if (flags & HAS_NEON) vp8_yv12_copy_frame = vp8_yv12_copy_frame_neon; | 67 if (flags & HAS_NEON) vp8_yv12_copy_frame = vp8_yv12_copy_frame_neon; |
75 | |
76 vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_c; | 68 vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_borders_c; |
77 if (flags & HAS_NEON) vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_
borders_neon; | 69 if (flags & HAS_NEON) vp8_yv12_extend_frame_borders = vp8_yv12_extend_frame_
borders_neon; |
78 | |
79 | |
80 | |
81 vpx_yv12_copy_y = vpx_yv12_copy_y_c; | |
82 if (flags & HAS_NEON) vpx_yv12_copy_y = vpx_yv12_copy_y_neon; | |
83 } | 70 } |
84 #endif | 71 #endif |
85 | 72 |
86 #ifdef __cplusplus | 73 #ifdef __cplusplus |
87 } // extern "C" | 74 } // extern "C" |
88 #endif | 75 #endif |
89 | 76 |
90 #endif | 77 #endif |
OLD | NEW |