/* * Copyright (c) 2020, Alliance for Open Media. All rights reserved. * * 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.
*/
#include <arm_neon.h> #include <string.h>
#include"config/aom_dsp_rtcd.h"
void aom_convolve_copy_neon(const uint8_t *src, ptrdiff_t src_stride,
uint8_t *dst, ptrdiff_t dst_stride, int w, int h) { const uint8_t *src1;
uint8_t *dst1; int y;
if (!(w & 0x0F)) { for (y = 0; y < h; ++y) {
src1 = src;
dst1 = dst; for (int x = 0; x < (w >> 4); ++x) {
vst1q_u8(dst1, vld1q_u8(src1));
src1 += 16;
dst1 += 16;
}
src += src_stride;
dst += dst_stride;
}
} elseif (!(w & 0x07)) { for (y = 0; y < h; ++y) {
vst1_u8(dst, vld1_u8(src));
src += src_stride;
dst += dst_stride;
}
} elseif (!(w & 0x03)) { for (y = 0; y < h; ++y) {
memcpy(dst, src, sizeof(uint32_t));
src += src_stride;
dst += dst_stride;
}
} elseif (!(w & 0x01)) { for (y = 0; y < h; ++y) {
memcpy(dst, src, sizeof(uint16_t));
src += src_stride;
dst += dst_stride;
}
}
}
#if CONFIG_AV1_HIGHBITDEPTH void aom_highbd_convolve_copy_neon(const uint16_t *src, ptrdiff_t src_stride,
uint16_t *dst, ptrdiff_t dst_stride, int w, int h) { if (w < 4) { // copy2 do {
memmove(dst, src, 2 * sizeof(*src));
src += src_stride;
dst += dst_stride;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.