Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: source/config/linux/arm-neon-cpu-detect/vp8_rtcd.h

Issue 13474006: libvpx: Pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/arm-neon/vp8_rtcd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/arm-neon/vp8_rtcd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698