| OLD | NEW |
| 1 #ifndef VP8_RTCD_H_ | 1 #ifndef VP8_RTCD_H_ |
| 2 #define VP8_RTCD_H_ | 2 #define VP8_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 /* | 10 /* |
| 11 * VP8 | 11 * VP8 |
| 12 */ | 12 */ |
| 13 | 13 |
| 14 struct blockd; | 14 struct blockd; |
| 15 struct macroblockd; | 15 struct macroblockd; |
| 16 struct loop_filter_info; | 16 struct loop_filter_info; |
| 17 | 17 |
| 18 /* Encoder forward decls */ | 18 /* Encoder forward decls */ |
| 19 struct block; | 19 struct block; |
| 20 struct macroblock; | 20 struct macroblock; |
| 21 struct variance_vtable; | 21 struct variance_vtable; |
| 22 union int_mv; | 22 union int_mv; |
| 23 struct yv12_buffer_config; | 23 struct yv12_buffer_config; |
| 24 | 24 |
| 25 void vp8_clear_system_state_c(); |
| 26 #define vp8_clear_system_state vp8_clear_system_state_c |
| 27 |
| 25 void vp8_dequantize_b_c(struct blockd*, short *dqc); | 28 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
| 26 void vp8_dequantize_b_v6(struct blockd*, short *dqc); | 29 void vp8_dequantize_b_v6(struct blockd*, short *dqc); |
| 27 void vp8_dequantize_b_neon(struct blockd*, short *dqc); | 30 void vp8_dequantize_b_neon(struct blockd*, short *dqc); |
| 28 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); | 31 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); |
| 29 | 32 |
| 30 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); | 33 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); |
| 31 void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int
stride); | 34 void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int
stride); |
| 32 void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, i
nt stride); | 35 void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, i
nt stride); |
| 33 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); | 36 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); |
| 34 | 37 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 #include "vpx_config.h" | 420 #include "vpx_config.h" |
| 418 | 421 |
| 419 #ifdef RTCD_C | 422 #ifdef RTCD_C |
| 420 #include "vpx_ports/arm.h" | 423 #include "vpx_ports/arm.h" |
| 421 static void setup_rtcd_internal(void) | 424 static void setup_rtcd_internal(void) |
| 422 { | 425 { |
| 423 int flags = arm_cpu_caps(); | 426 int flags = arm_cpu_caps(); |
| 424 | 427 |
| 425 (void)flags; | 428 (void)flags; |
| 426 | 429 |
| 430 |
| 427 vp8_dequantize_b = vp8_dequantize_b_c; | 431 vp8_dequantize_b = vp8_dequantize_b_c; |
| 428 if (flags & HAS_MEDIA) vp8_dequantize_b = vp8_dequantize_b_v6; | 432 if (flags & HAS_MEDIA) vp8_dequantize_b = vp8_dequantize_b_v6; |
| 429 if (flags & HAS_NEON) vp8_dequantize_b = vp8_dequantize_b_neon; | 433 if (flags & HAS_NEON) vp8_dequantize_b = vp8_dequantize_b_neon; |
| 430 | 434 |
| 431 vp8_dequant_idct_add = vp8_dequant_idct_add_c; | 435 vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
| 432 if (flags & HAS_MEDIA) vp8_dequant_idct_add = vp8_dequant_idct_add_v6; | 436 if (flags & HAS_MEDIA) vp8_dequant_idct_add = vp8_dequant_idct_add_v6; |
| 433 if (flags & HAS_NEON) vp8_dequant_idct_add = vp8_dequant_idct_add_neon; | 437 if (flags & HAS_NEON) vp8_dequant_idct_add = vp8_dequant_idct_add_neon; |
| 434 | 438 |
| 435 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; | 439 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
| 436 if (flags & HAS_MEDIA) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y
_block_v6; | 440 if (flags & HAS_MEDIA) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y
_block_v6; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 if (flags & HAS_NEON) vp8_subtract_mbuv = vp8_subtract_mbuv_neon; | 672 if (flags & HAS_NEON) vp8_subtract_mbuv = vp8_subtract_mbuv_neon; |
| 669 | 673 |
| 670 | 674 |
| 671 | 675 |
| 672 | 676 |
| 673 vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_c; | 677 vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_c; |
| 674 if (flags & HAS_NEON) vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_fr
ame_neon; | 678 if (flags & HAS_NEON) vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_fr
ame_neon; |
| 675 } | 679 } |
| 676 #endif | 680 #endif |
| 677 #endif | 681 #endif |
| OLD | NEW |