2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2014-01-29 02:29:52 +01:00
|
|
|
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
2015-05-21 05:14:30 +02:00
|
|
|
#include "./vpx_config.h"
|
2015-07-22 19:40:42 +02:00
|
|
|
#include "./vpx_dsp_rtcd.h"
|
|
|
|
#include "vpx_dsp/x86/convolve.h"
|
2014-09-16 21:47:18 +02:00
|
|
|
|
2013-10-10 22:51:35 +02:00
|
|
|
#if HAVE_SSE2
|
2015-07-22 19:40:42 +02:00
|
|
|
filter8_1dfunction vpx_filter_block1d16_v8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_h8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_v8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_h8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_v8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_h8_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_v8_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_h8_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_v8_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_h8_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_v8_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_h8_avg_sse2;
|
2013-10-10 22:51:35 +02:00
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
filter8_1dfunction vpx_filter_block1d16_v2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_h2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_v2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_h2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_v2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_h2_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_v2_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d16_h2_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_v2_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d8_h2_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_v2_avg_sse2;
|
|
|
|
filter8_1dfunction vpx_filter_block1d4_h2_avg_sse2;
|
2014-01-30 00:49:03 +01:00
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_horiz_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-01-29 02:29:52 +01:00
|
|
|
// int w, int h);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_vert_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-01-29 02:29:52 +01:00
|
|
|
// int w, int h);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_avg_horiz_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4,
|
|
|
|
// int y_step_q4, int w, int h);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_avg_vert_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-01-29 02:29:52 +01:00
|
|
|
// int w, int h);
|
2017-08-28 19:35:43 +02:00
|
|
|
FUN_CONV_1D(horiz, x0_q4, x_step_q4, h, src, , sse2);
|
|
|
|
FUN_CONV_1D(vert, y0_q4, y_step_q4, v, src - src_stride * 3, , sse2);
|
|
|
|
FUN_CONV_1D(avg_horiz, x0_q4, x_step_q4, h, src, avg_, sse2);
|
|
|
|
FUN_CONV_1D(avg_vert, y0_q4, y_step_q4, v, src - src_stride * 3, avg_, sse2);
|
2014-01-29 02:29:52 +01:00
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-01-29 02:29:52 +01:00
|
|
|
// int w, int h);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_convolve8_avg_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-01-29 02:29:52 +01:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-01-29 02:29:52 +01:00
|
|
|
// int w, int h);
|
|
|
|
FUN_CONV_2D(, sse2);
|
2016-07-23 05:07:03 +02:00
|
|
|
FUN_CONV_2D(avg_, sse2);
|
2014-09-16 21:47:18 +02:00
|
|
|
|
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH && ARCH_X86_64
|
2015-07-22 19:40:42 +02:00
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_v8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_h8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_v8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_h8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_v8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_h8_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_v8_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_h8_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_v8_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_h8_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_v8_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_h8_avg_sse2;
|
2014-09-16 21:47:18 +02:00
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_v2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_h2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_v2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_h2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_v2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_h2_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_v2_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d16_h2_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_v2_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d8_h2_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_v2_avg_sse2;
|
|
|
|
highbd_filter8_1dfunction vpx_highbd_filter_block1d4_h2_avg_sse2;
|
2014-09-16 21:47:18 +02:00
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_horiz_sse2(const uint8_t *src,
|
2014-10-08 21:43:22 +02:00
|
|
|
// ptrdiff_t src_stride,
|
|
|
|
// uint8_t *dst,
|
|
|
|
// ptrdiff_t dst_stride,
|
|
|
|
// const int16_t *filter_x,
|
|
|
|
// int x_step_q4,
|
|
|
|
// const int16_t *filter_y,
|
|
|
|
// int y_step_q4,
|
|
|
|
// int w, int h, int bd);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_vert_sse2(const uint8_t *src,
|
2014-10-08 21:43:22 +02:00
|
|
|
// ptrdiff_t src_stride,
|
|
|
|
// uint8_t *dst,
|
|
|
|
// ptrdiff_t dst_stride,
|
|
|
|
// const int16_t *filter_x,
|
|
|
|
// int x_step_q4,
|
|
|
|
// const int16_t *filter_y,
|
|
|
|
// int y_step_q4,
|
|
|
|
// int w, int h, int bd);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_avg_horiz_sse2(const uint8_t *src,
|
2014-10-08 21:43:22 +02:00
|
|
|
// ptrdiff_t src_stride,
|
|
|
|
// uint8_t *dst,
|
|
|
|
// ptrdiff_t dst_stride,
|
|
|
|
// const int16_t *filter_x,
|
|
|
|
// int x_step_q4,
|
|
|
|
// const int16_t *filter_y,
|
|
|
|
// int y_step_q4,
|
|
|
|
// int w, int h, int bd);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_avg_vert_sse2(const uint8_t *src,
|
2014-10-08 21:43:22 +02:00
|
|
|
// ptrdiff_t src_stride,
|
|
|
|
// uint8_t *dst,
|
|
|
|
// ptrdiff_t dst_stride,
|
|
|
|
// const int16_t *filter_x,
|
|
|
|
// int x_step_q4,
|
|
|
|
// const int16_t *filter_y,
|
|
|
|
// int y_step_q4,
|
|
|
|
// int w, int h, int bd);
|
2017-08-28 19:35:43 +02:00
|
|
|
HIGH_FUN_CONV_1D(horiz, x0_q4, x_step_q4, h, src, , sse2);
|
|
|
|
HIGH_FUN_CONV_1D(vert, y0_q4, y_step_q4, v, src - src_stride * 3, , sse2);
|
|
|
|
HIGH_FUN_CONV_1D(avg_horiz, x0_q4, x_step_q4, h, src, avg_, sse2);
|
|
|
|
HIGH_FUN_CONV_1D(avg_vert, y0_q4, y_step_q4, v, src - src_stride * 3, avg_,
|
2014-09-16 21:47:18 +02:00
|
|
|
sse2);
|
|
|
|
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-10-08 21:43:22 +02:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4, int y_step_q4,
|
2014-10-08 21:43:22 +02:00
|
|
|
// int w, int h, int bd);
|
2015-07-22 19:40:42 +02:00
|
|
|
// void vpx_highbd_convolve8_avg_sse2(const uint8_t *src, ptrdiff_t src_stride,
|
2014-10-08 21:43:22 +02:00
|
|
|
// uint8_t *dst, ptrdiff_t dst_stride,
|
2017-08-28 19:35:43 +02:00
|
|
|
// const InterpKernel *filter, int x0_q4,
|
|
|
|
// int32_t x_step_q4, int y0_q4,
|
|
|
|
// int y_step_q4, int w, int h, int bd);
|
2014-09-16 21:47:18 +02:00
|
|
|
HIGH_FUN_CONV_2D(, sse2);
|
2016-07-23 05:07:03 +02:00
|
|
|
HIGH_FUN_CONV_2D(avg_, sse2);
|
2014-09-16 21:47:18 +02:00
|
|
|
#endif // CONFIG_VP9_HIGHBITDEPTH && ARCH_X86_64
|
2014-09-10 19:27:58 +02:00
|
|
|
#endif // HAVE_SSE2
|