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

Side by Side Diff: source/libvpx/vp8/common/arm/neon/sixtappredict_neon.c

Issue 394353005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 18 matching lines...) Expand all
29 unsigned char *src_ptr, 29 unsigned char *src_ptr,
30 int src_pixels_per_line, 30 int src_pixels_per_line,
31 int xoffset, 31 int xoffset,
32 int yoffset, 32 int yoffset,
33 unsigned char *dst_ptr, 33 unsigned char *dst_ptr,
34 int dst_pitch) { 34 int dst_pitch) {
35 unsigned char *src; 35 unsigned char *src;
36 uint8x8_t d0u8, d1u8, d2u8, d3u8, d4u8, d5u8, d18u8, d19u8, d20u8, d21u8; 36 uint8x8_t d0u8, d1u8, d2u8, d3u8, d4u8, d5u8, d18u8, d19u8, d20u8, d21u8;
37 uint8x8_t d23u8, d24u8, d25u8, d26u8, d27u8, d28u8, d29u8, d30u8, d31u8; 37 uint8x8_t d23u8, d24u8, d25u8, d26u8, d27u8, d28u8, d29u8, d30u8, d31u8;
38 int8x8_t dtmps8, d0s8, d1s8, d2s8, d3s8, d4s8, d5s8; 38 int8x8_t dtmps8, d0s8, d1s8, d2s8, d3s8, d4s8, d5s8;
39 uint32x2_t d27u32, d28u32, d29u32, d30u32, d31u32;
40 uint16x8_t q3u16, q4u16, q5u16, q6u16, q7u16; 39 uint16x8_t q3u16, q4u16, q5u16, q6u16, q7u16;
41 uint16x8_t q8u16, q9u16, q10u16, q11u16, q12u16; 40 uint16x8_t q8u16, q9u16, q10u16, q11u16, q12u16;
42 int16x8_t q3s16, q4s16, q5s16, q6s16, q7s16; 41 int16x8_t q3s16, q4s16, q5s16, q6s16, q7s16;
43 int16x8_t q8s16, q9s16, q10s16, q11s16, q12s16; 42 int16x8_t q8s16, q9s16, q10s16, q11s16, q12s16;
44 uint8x16_t q3u8, q4u8, q5u8, q6u8, q11u8; 43 uint8x16_t q3u8, q4u8, q5u8, q6u8, q11u8;
45 uint64x2_t q3u64, q4u64, q5u64, q6u64, q9u64, q10u64; 44 uint64x2_t q3u64, q4u64, q5u64, q6u64, q9u64, q10u64;
46 uint32x2x2_t d0u32x2, d1u32x2; 45 uint32x2x2_t d0u32x2, d1u32x2;
47 46
48 if (xoffset == 0) { // secondpass_filter4x4_only 47 if (xoffset == 0) { // secondpass_filter4x4_only
48 uint32x2_t d27u32 = vdup_n_u32(0);
49 uint32x2_t d28u32 = vdup_n_u32(0);
50 uint32x2_t d29u32 = vdup_n_u32(0);
51 uint32x2_t d30u32 = vdup_n_u32(0);
52 uint32x2_t d31u32 = vdup_n_u32(0);
53
49 // load second_pass filter 54 // load second_pass filter
50 dtmps8 = vld1_s8(vp8_sub_pel_filters[yoffset]); 55 dtmps8 = vld1_s8(vp8_sub_pel_filters[yoffset]);
51 d0s8 = vdup_lane_s8(dtmps8, 0); 56 d0s8 = vdup_lane_s8(dtmps8, 0);
52 d1s8 = vdup_lane_s8(dtmps8, 1); 57 d1s8 = vdup_lane_s8(dtmps8, 1);
53 d2s8 = vdup_lane_s8(dtmps8, 2); 58 d2s8 = vdup_lane_s8(dtmps8, 2);
54 d3s8 = vdup_lane_s8(dtmps8, 3); 59 d3s8 = vdup_lane_s8(dtmps8, 3);
55 d4s8 = vdup_lane_s8(dtmps8, 4); 60 d4s8 = vdup_lane_s8(dtmps8, 4);
56 d5s8 = vdup_lane_s8(dtmps8, 5); 61 d5s8 = vdup_lane_s8(dtmps8, 5);
57 d0u8 = vreinterpret_u8_s8(vabs_s8(d0s8)); 62 d0u8 = vreinterpret_u8_s8(vabs_s8(d0s8));
58 d1u8 = vreinterpret_u8_s8(vabs_s8(d1s8)); 63 d1u8 = vreinterpret_u8_s8(vabs_s8(d1s8));
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 vst1_u8(dst, d7u8); 1748 vst1_u8(dst, d7u8);
1744 dst += dst_pitch; 1749 dst += dst_pitch;
1745 vst1_u8(dst, d8u8); 1750 vst1_u8(dst, d8u8);
1746 dst += dst_pitch; 1751 dst += dst_pitch;
1747 vst1_u8(dst, d9u8); 1752 vst1_u8(dst, d9u8);
1748 dst += dst_pitch; 1753 dst += dst_pitch;
1749 } 1754 }
1750 } 1755 }
1751 return; 1756 return;
1752 } 1757 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/arm/neon/bilinearpredict_neon.c ('k') | source/libvpx/vp8/common/onyx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698