2016-07-11 14:43:47 +03:00
|
|
|
/*
|
2016-09-02 00:32:49 +03:00
|
|
|
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
|
2016-07-11 14:43:47 +03:00
|
|
|
*
|
2016-09-02 00:32:49 +03:00
|
|
|
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
|
|
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
|
|
* was not distributed with this source code in the LICENSE file, you can
|
|
|
|
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
|
|
|
|
* Media Patent License 1.0 was not distributed with this source code in the
|
|
|
|
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
2016-07-11 14:43:47 +03:00
|
|
|
*/
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#include "aom/aom_integer.h"
|
2016-07-11 14:43:47 +03:00
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#include "./aom_dsp_rtcd.h"
|
2016-07-11 14:43:47 +03:00
|
|
|
|
|
|
|
// To start out, just dispatch to the function using the 2D mask and
|
|
|
|
// pass mask stride as 0. This can be improved upon if necessary.
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
void aom_blend_a64_hmask_sse4_1(uint8_t *dst, uint32_t dst_stride,
|
2016-08-09 08:59:08 +03:00
|
|
|
const uint8_t *src0, uint32_t src0_stride,
|
|
|
|
const uint8_t *src1, uint32_t src1_stride,
|
|
|
|
const uint8_t *mask, int h, int w) {
|
2016-08-31 00:01:10 +03:00
|
|
|
aom_blend_a64_mask_sse4_1(dst, dst_stride, src0, src0_stride, src1,
|
2016-08-09 08:59:08 +03:00
|
|
|
src1_stride, mask, 0, h, w, 0, 0);
|
2016-07-11 14:43:47 +03:00
|
|
|
}
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#if CONFIG_AOM_HIGHBITDEPTH
|
|
|
|
void aom_highbd_blend_a64_hmask_sse4_1(
|
2016-08-09 08:59:08 +03:00
|
|
|
uint8_t *dst_8, uint32_t dst_stride, const uint8_t *src0_8,
|
|
|
|
uint32_t src0_stride, const uint8_t *src1_8, uint32_t src1_stride,
|
|
|
|
const uint8_t *mask, int h, int w, int bd) {
|
2016-08-31 00:01:10 +03:00
|
|
|
aom_highbd_blend_a64_mask_sse4_1(dst_8, dst_stride, src0_8, src0_stride,
|
2016-08-09 08:59:08 +03:00
|
|
|
src1_8, src1_stride, mask, 0, h, w, 0, 0,
|
|
|
|
bd);
|
2016-07-11 14:43:47 +03:00
|
|
|
}
|
2016-08-31 00:01:10 +03:00
|
|
|
#endif // CONFIG_AOM_HIGHBITDEPTH
|