mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
Remove 73 function declarations and 7 HAS_ feature macros from include/libyuv/ headers (and unused MAKEROWY/MAKEROWYJ definitions from source/row_common.cc) that have no corresponding implementation or SIMD: - include/libyuv/convert_from_argb.h: Remove unimplemented ARGBToG and RGBToNV21Matrix declarations. - include/libyuv/mjpeg_decoder.h: Remove unimplemented MJpegDecoder::GetComponentScanlinePadding declaration. - include/libyuv/scale.h: Remove obsolete SetUseReferenceImpl declaration. - include/libyuv/scale_row.h: Remove 10 unimplemented ScaleUVRowDown2 and ScaleUVRowDownEven SSSE3/NEON declarations. - include/libyuv/row.h and source/row_common.cc: Remove 59 orphaned row function declarations (ABGR/BGRA/RGBA ToYRow/ToYJRow/ToUVRow/ToUVJRow _C and _Any wrappers, RGB24/RAW ToUVRow_C/ToUVJRow_C, MirrorRow_Any_SSE2, DetileRow_AVX, DetileRow_Any_AVX, I444ToARGBRow_AVX512BW, and I444ToARGBRow_Any_AVX512BW) and 7 unused HAS_ macros (HAS_ABGRTOYJROW_SSSE3, HAS_RGBATOYJROW_SSSE3, HAS_ABGRTOYJROW_NEON_DOTPROD, HAS_ABGRTOYROW_NEON_DOTPROD, HAS_BGRATOYROW_NEON_DOTPROD, HAS_RGBATOYJROW_NEON_DOTPROD, and HAS_RGBATOYROW_NEON_DOTPROD). - include/libyuv/row.h: Fix typo HAS_I422TORGBBAROW_SSSE3 to HAS_I422TORGBAROW_SSSE3 to re-enable I422ToRGBARow_SSSE3. Maximum SIMD ISA supported per C row function: ------------------------------------------------------------------------ C Row Function arm x86 riscv wasm loongson hexagon ------------------------------------------------------------------------ AB64ToARGBRow_C NEON AVX2 RVV - - HVX ABGRToAR30Row_C NEON AVX512BW - - - - AR30ToAB30Row_C - AVX512BW - - - - AR30ToABGRRow_C - AVX512BW - - - - AR30ToARGBRow_C - AVX512BW - - - - AR64ShuffleRow_C NEON AVX512BW RVV WASMSIMD - - AR64ToAB64Row_C NEON AVX512BW RVV WASMSIMD - HVX AR64ToARGBRow_C NEON AVX2 RVV - - HVX ARGB1555ToARGBRow_C SVE2 AVX2 - WASMSIMD LASX - ARGB1555ToUVMatrixRow_C NEON AVX2 - WASMSIMD - - ARGB1555ToUVRow_C NEON - - - LASX - ARGB1555ToYMatrixRow_C NEON AVX2 - WASMSIMD - - ARGB1555ToYRow_C NEON - - - LASX - ARGB4444ToARGBRow_C NEON AVX2 - WASMSIMD LASX - ARGB4444ToUVMatrixRow_C NEON AVX2 - WASMSIMD - - ARGB4444ToUVRow_C NEON - - - - - ARGB4444ToYMatrixRow_C NEON AVX2 - WASMSIMD - - ARGB4444ToYRow_C NEON - - - - - ARGBAddRow_C NEON AVX2 - - LASX HVX ARGBAffineRow_C - SSE2 - - - - ARGBAlphaBlendRow_C SME AVX512BW RVV WASMSIMD LASX HVX ARGBAttenuateRow_C NEON AVX512BW RVV - LASX HVX ARGBBlendRow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBColorMatrixRow_C I8MM SSSE3 - - LASX - ARGBColorTableRow_C - X86 - - - - ARGBCopyAlphaRow_C - AVX2 - - - HVX ARGBCopyYToAlphaRow_C NEON AVX512BW RVV WASMSIMD - HVX ARGBExtractAlphaRow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBGrayRow_C DOTPROD AVX512VNNI - - LASX - ARGBLumaColorTableRow_C - SSSE3 - - - - ARGBMirrorRow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBMultiplyRow_C SME AVX512BW RVV - LASX HVX ARGBOrRow_C SME AVX512BW RVV WASMSIMD LASX HVX ARGBPolynomialRow_C - AVX2 - - - - ARGBQuantizeRow_C NEON SSE2 - - LASX - ARGBSepiaRow_C DOTPROD SSSE3 - - LASX - ARGBSetRow_C NEON X86 RVV - LASX HVX ARGBShadeRow_C NEON SSE2 - - LASX - ARGBShuffleRow_C NEON AVX512BW RVV WASMSIMD LASX - ARGBSubtractRow_C NEON AVX2 - - LASX HVX ARGBToAB64Row_C NEON AVX2 RVV - - HVX ARGBToABGRRow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBToAR30Row_C NEON AVX512BW - - - - ARGBToAR64Row_C NEON AVX2 RVV - - HVX ARGBToARGB1555Row_C NEON AVX2 - WASMSIMD LASX - ARGBToARGB4444Row_C NEON AVX2 - WASMSIMD LASX - ARGBToBGRARow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBToRAWRow_C SVE2 AVX512BW RVV - LASX - ARGBToRGB24Row_C SVE2 AVX512BW RVV - LASX - ARGBToRGB565DitherRow_C SVE2 AVX2 - WASMSIMD LASX - ARGBToRGB565Row_C SVE2 AVX2 - WASMSIMD LASX - ARGBToRGBARow_C NEON AVX512BW RVV WASMSIMD LASX HVX ARGBToUV444MatrixRow_C I8MM AVX512VNNI RVV WASMSIMD - HVX ARGBToUVMatrixRow_C SME AVX512VNNI RVV WASMSIMD - HVX ARGBToYMatrixRow_C SME AVX512VNNI RVV WASMSIMD LASX HVX ARGBUnattenuateRow_C - AVX2 - - - - AYUVToUVRow_C SVE2 AVX512VBMI - - - - AYUVToVURow_C SVE2 AVX512VBMI - - - - AYUVToYRow_C NEON AVX512VBMI - - - - BlendPlaneRow_C NEON AVX512BW RVV WASMSIMD - HVX ByteToFloatRow_C NEON - - - - - ComputeCumulativeSumRow_C NEON AVX2 - - - - Convert16To8Row_C SME AVX512BW RVV - - HVX Convert8To16Row_C SME AVX512BW RVV WASMSIMD - HVX Convert8To8Row_C SME AVX2 - - - HVX CopyRow_C SME AVX512BW RVV - LASX HVX CopyRow_16_C - - - - - HVX CumulativeSumToAverageRow_C NEON AVX2 - - - - DetileRow_C NEON SSE2 - - - - DetileRow_16_C NEON AVX - - - - DetileSplitUVRow_C NEON SSSE3 - - - - DivideRow_16_C SVE2 AVX2 - - - HVX GaussRow_C NEON - - - - - GaussRow_F32_C NEON - - - - - HalfFloatRow_C SVE2 AVX2 - - LASX - HalfMergeUVRow_C SVE2 AVX512BW - - - - HalfRow_16To8_C SME AVX512BW RVV - - HVX HalfWidthRow_16To8_C SME AVX512BW RVV - - - I210AlphaToARGBRow_C SME AVX2 - - - - I210ToAR30Row_C SME AVX2 - - - - I210ToARGBRow_C SME AVX2 - - - - I212ToAR30Row_C SME AVX2 - - - - I212ToARGBRow_C SME AVX2 - - - - I400ToARGBRow_C SME AVX512BW RVV - LASX HVX I410AlphaToARGBRow_C SME AVX2 - - - - I410ToAR30Row_C SME AVX2 - - - - I410ToARGBRow_C SME AVX2 - - - - I422AlphaToARGBRow_C SME AVX512BW RVV - LASX HVX I422ToAR30Row_C SME AVX512BW RVV WASMSIMD - - I422ToARGB1555Row_C SME AVX2 - WASMSIMD LASX - I422ToARGB4444Row_C SME AVX2 - WASMSIMD LASX - I422ToARGBRow_C SME AVX512BW RVV WASMSIMD LASX HVX I422ToRGB24Row_C SME AVX512VBMI RVV WASMSIMD LASX - I422ToRGB565Row_C SME AVX2 - WASMSIMD LASX - I422ToRGBARow_C SME AVX2 RVV - LASX HVX I422ToUYVYRow_C NEON AVX2 - - LASX - I422ToYUY2Row_C NEON AVX2 - - LASX - I444AlphaToARGBRow_C SME AVX2 RVV - - HVX I444ToARGBRow_C SME AVX2 RVV - LASX HVX I444ToRGB24Row_C SME AVX2 RVV - - - InterpolateRow_C SME AVX512BW RVV WASMSIMD LASX HVX InterpolateRow_16_C SME AVX512BW - WASMSIMD - HVX J400ToARGBRow_C NEON AVX512BW RVV WASMSIMD LASX HVX MergeAR64Row_C NEON AVX2 - - - - MergeARGB16To8Row_C NEON AVX2 - - - - MergeARGBRow_C NEON AVX2 RVV - - HVX MergeRGBRow_C NEON AVX512VBMI RVV - - - MergeUVRow_C SME AVX512BW RVV WASMSIMD LASX HVX MergeUVRow_16_C SME AVX2 - - - HVX MergeXR30Row_C NEON AVX512BW - - - - MergeXR64Row_C NEON AVX2 - - - - MergeXRGB16To8Row_C NEON AVX2 - - - - MergeXRGBRow_C NEON AVX2 RVV - - HVX MirrorRow_C NEON AVX512BW - WASMSIMD LASX HVX MirrorRow_16_C - AVX512BW - - - HVX MirrorSplitUVRow_C NEON AVX512BW - WASMSIMD LASX HVX MirrorUVRow_C NEON AVX512BW RVV WASMSIMD LASX HVX MultiplyRow_16_C SME AVX512BW RVV WASMSIMD - HVX NV12ToARGBRow_C SME AVX512BW RVV WASMSIMD LASX HVX NV12ToRGB24Row_C SME AVX512VBMI RVV - - - NV12ToRGB565Row_C NEON AVX2 - WASMSIMD LASX - NV21ToARGBRow_C SME AVX512BW RVV WASMSIMD LASX HVX NV21ToRGB24Row_C SME AVX512VBMI RVV - - - NV21ToYUV24Row_C NEON AVX2 - - - - P210ToAR30Row_C SME AVX2 - - - - P210ToARGBRow_C SME AVX2 - - - - P410ToAR30Row_C SME AVX2 - - - - P410ToARGBRow_C SME AVX2 - - - - RAWToARGBRow_C SVE2 AVX512BW RVV WASMSIMD LASX - RAWToRGB24Row_C SVE2 AVX512VBMI RVV WASMSIMD LASX - RAWToRGBARow_C SVE2 AVX512VBMI RVV - - - RGB24MirrorRow_C NEON AVX512VBMI - WASMSIMD - - RGB24ToARGBRow_C SVE2 AVX512BW RVV WASMSIMD LASX - RGB565ToARGBRow_C NEON AVX2 - WASMSIMD LASX - RGB565ToUVMatrixRow_C NEON AVX2 - WASMSIMD - - RGB565ToUVRow_C NEON - - - LASX - RGB565ToYMatrixRow_C NEON AVX2 - WASMSIMD - - RGB565ToYRow_C NEON - - - LASX - RGBAToARGBRow_C NEON AVX512BW RVV WASMSIMD LASX HVX RGBColorTableRow_C - X86 - - - - RGBToUV444MatrixRow_C NEON AVX512BW RVV WASMSIMD - - RGBToUVMatrixRow_C NEON AVX512BW RVV WASMSIMD - - RGBToYMatrixRow_C DOTPROD AVX512BW RVV WASMSIMD LASX - SetRow_C NEON ERMS - - LASX HVX SobelRow_C NEON SSE2 - - LASX - SobelToPlaneRow_C NEON SSE2 - - LASX - SobelXRow_C NEON SSE2 - - - - SobelXYRow_C NEON SSE2 - - LASX - SobelYRow_C NEON SSE2 - - - - SplitARGBRow_C NEON AVX2 RVV - - HVX SplitRGBRow_C NEON AVX2 RVV - - - SplitUVRow_C SVE2 AVX512BW RVV - LASX HVX SplitUVRow_16_C NEON AVX2 - - - HVX SplitXRGBRow_C NEON AVX2 RVV - - HVX SwapUVRow_C NEON AVX512BW RVV WASMSIMD - HVX UYVYToARGBRow_C SME AVX2 - - LASX - UYVYToUV422Row_C NEON AVX2 - - LASX HVX UYVYToUVRow_C SVE2 AVX2 - - LASX HVX UYVYToYRow_C SVE2 AVX2 - - LASX HVX YUY2ToARGBRow_C SME AVX2 - - LASX - YUY2ToNVUVRow_C NEON AVX2 - - - - YUY2ToUV422Row_C NEON AVX2 - - LASX HVX YUY2ToUVRow_C SVE2 AVX2 - - LASX HVX YUY2ToYRow_C SVE2 AVX2 - - LASX HVX ------------------------------------------------------------------------ SIMD (164/164 100%) 152 93% 154 94% 64 39% 56 34% 73 45% 64 39% ------------------------------------------------------------------------ Bug: None Change-Id: I969a3c5060173aa46b4d1f085837e284fbed1a85
2006 lines
91 KiB
C++
2006 lines
91 KiB
C++
/*
|
|
* Copyright 2013 The LibYuv Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef INCLUDE_LIBYUV_SCALE_ROW_H_
|
|
#define INCLUDE_LIBYUV_SCALE_ROW_H_
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "libyuv/cpu_support.h"
|
|
#include "libyuv/scale.h"
|
|
|
|
#ifdef __cplusplus
|
|
namespace libyuv {
|
|
extern "C" {
|
|
#endif
|
|
|
|
// The following are available on all x86 platforms:
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(_M_IX86) || ((defined(__x86_64__) || defined(__i386__)) && \
|
|
!defined(LIBYUV_ENABLE_ROWWIN)))
|
|
#define HAS_FIXEDDIV1_X86
|
|
#define HAS_FIXEDDIV_X86
|
|
#define HAS_SCALEARGBCOLS_SSE2
|
|
#define HAS_SCALEARGBCOLSUP2_SSE2
|
|
#define HAS_SCALEARGBFILTERCOLS_SSSE3
|
|
#define HAS_SCALEARGBROWDOWN2_SSE2
|
|
#define HAS_SCALEARGBROWDOWNEVEN_SSE2
|
|
#define HAS_SCALECOLSUP2_SSE2
|
|
#define HAS_SCALEFILTERCOLS_SSSE3
|
|
#define HAS_SCALEROWDOWN2_SSSE3
|
|
#define HAS_SCALEROWDOWN34_SSSE3
|
|
#define HAS_SCALEROWDOWN4_SSSE3
|
|
#endif
|
|
|
|
// The following are available for gcc/clang x86 platforms:
|
|
// TODO(fbarchard): Port to Visual C
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(__x86_64__) || defined(__i386__)) && \
|
|
!defined(LIBYUV_ENABLE_ROWWIN)
|
|
#define HAS_SCALEADDROW_SSE2
|
|
#define HAS_SCALEROWDOWN38_SSSE3
|
|
#define HAS_SCALEUVROWDOWN2BOX_SSSE3
|
|
#define HAS_SCALEROWUP2_LINEAR_SSE2
|
|
#define HAS_SCALEROWUP2_LINEAR_SSSE3
|
|
#define HAS_SCALEROWUP2_BILINEAR_SSE2
|
|
#define HAS_SCALEROWUP2_BILINEAR_SSSE3
|
|
#define HAS_SCALEROWUP2_LINEAR_12_SSSE3
|
|
#define HAS_SCALEROWUP2_BILINEAR_12_SSSE3
|
|
#define HAS_SCALEROWUP2_LINEAR_16_SSE2
|
|
#define HAS_SCALEROWUP2_BILINEAR_16_SSE2
|
|
#define HAS_SCALEUVROWUP2_LINEAR_SSSE3
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_SSSE3
|
|
#define HAS_SCALEUVROWUP2_LINEAR_16_SSE41
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_16_SSE41
|
|
#endif
|
|
|
|
// The following are available for gcc/clang x86 platforms, but
|
|
// require clang 3.4 or gcc 4.7.
|
|
// TODO(fbarchard): Port to Visual C
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(__x86_64__) || defined(__i386__)) && \
|
|
(defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) && \
|
|
!defined(LIBYUV_ENABLE_ROWWIN)
|
|
#define HAS_SCALEADDROW_AVX2
|
|
#define HAS_SCALEUVADDCOLS3_AVX2
|
|
#define HAS_SCALEUVROWDOWN2BOX_AVX2
|
|
#define HAS_SCALEROWUP2_LINEAR_AVX2
|
|
#define HAS_SCALEROWUP2_BILINEAR_AVX2
|
|
#define HAS_SCALEROWUP2_LINEAR_12_AVX2
|
|
#define HAS_SCALEROWUP2_BILINEAR_12_AVX2
|
|
#define HAS_SCALEROWUP2_LINEAR_16_AVX2
|
|
#define HAS_SCALEROWUP2_BILINEAR_16_AVX2
|
|
#define HAS_SCALEUVROWUP2_LINEAR_AVX2
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_AVX2
|
|
#define HAS_SCALEUVROWUP2_LINEAR_16_AVX2
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_16_AVX2
|
|
#endif
|
|
|
|
// The following are available on all x86 platforms, but
|
|
// require VS2012, clang 3.4 or gcc 4.7.
|
|
// The code supports NaCL but requires a new compiler and validator.
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2) || \
|
|
defined(GCC_HAS_AVX2))
|
|
#define HAS_SCALEROWDOWN2_AVX2
|
|
#define HAS_SCALEROWDOWN4_AVX2
|
|
#endif
|
|
|
|
// The following are available for AVX512 clang x64 platforms:
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(__x86_64__) || defined(_M_X64)) && defined(CLANG_HAS_AVX512) && \
|
|
!defined(LIBYUV_ENABLE_ROWWIN)
|
|
#define HAS_SCALEADDROW_AVX512BW
|
|
#define HAS_SCALEADDCOLS_AVX512BW
|
|
#define HAS_SCALEUVADDCOLS3_AVX512VBMI
|
|
#define HAS_SCALEROWDOWN2_AVX512BW
|
|
#endif
|
|
|
|
// The following are available for Visual C 32/64 bit, and for clang with
|
|
// LIBYUV_ENABLE_ROWWIN, which is also enabled for MemorySanitizer:
|
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
(defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || \
|
|
defined(_M_IX86)) && \
|
|
((defined(_MSC_VER) && !defined(__clang__)) || \
|
|
defined(LIBYUV_ENABLE_ROWWIN))
|
|
#define HAS_SCALEADDROW_SSE2
|
|
#define HAS_SCALEROWDOWN38_SSSE3
|
|
#define HAS_SCALEADDROW_AVX2
|
|
#define HAS_SCALEUVADDCOLS3_AVX2
|
|
#if defined(__x86_64__) || defined(_M_X64)
|
|
#define HAS_SCALEADDROW_AVX512BW
|
|
#define HAS_SCALEADDCOLS_AVX512BW
|
|
#define HAS_SCALEUVADDCOLS3_AVX512VBMI
|
|
#endif
|
|
#endif
|
|
|
|
// The following are available on Neon platforms:
|
|
#if !defined(LIBYUV_DISABLE_NEON) && \
|
|
(defined(__ARM_NEON__) || defined(LIBYUV_NEON) || defined(__aarch64__))
|
|
#define HAS_SCALEADDROW_NEON
|
|
#define HAS_SCALEARGBCOLS_NEON
|
|
#define HAS_SCALEARGBFILTERCOLS_NEON
|
|
#define HAS_SCALEARGBROWDOWN2_NEON
|
|
#define HAS_SCALEARGBROWDOWNEVEN_NEON
|
|
#define HAS_SCALEFILTERCOLS_NEON
|
|
#define HAS_SCALEROWDOWN2_NEON
|
|
#define HAS_SCALEROWDOWN34_NEON
|
|
#define HAS_SCALEROWDOWN38_NEON
|
|
#define HAS_SCALEROWDOWN4_NEON
|
|
#define HAS_SCALEUVADDCOLS3_NEON
|
|
#define HAS_SCALEUVROWDOWN2_NEON
|
|
#define HAS_SCALEUVROWDOWN2LINEAR_NEON
|
|
#define HAS_SCALEUVROWDOWN2BOX_NEON
|
|
#define HAS_SCALEUVROWDOWNEVEN_NEON
|
|
#define HAS_SCALEROWUP2_LINEAR_NEON
|
|
#define HAS_SCALEROWUP2_BILINEAR_NEON
|
|
#define HAS_SCALEROWUP2_LINEAR_12_NEON
|
|
#define HAS_SCALEROWUP2_BILINEAR_12_NEON
|
|
#define HAS_SCALEROWUP2_LINEAR_16_NEON
|
|
#define HAS_SCALEROWUP2_BILINEAR_16_NEON
|
|
#define HAS_SCALEUVROWUP2_LINEAR_NEON
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_NEON
|
|
#define HAS_SCALEUVROWUP2_LINEAR_16_NEON
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_16_NEON
|
|
#endif
|
|
|
|
// The following are available on AArch64 Neon platforms:
|
|
#if !defined(LIBYUV_DISABLE_NEON) && defined(__aarch64__)
|
|
#define HAS_SCALEROWDOWN2_16_NEON
|
|
#endif
|
|
|
|
// The following are available on AArch64 SME platforms:
|
|
#if !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && \
|
|
defined(__aarch64__)
|
|
#define HAS_SCALEARGBROWDOWN2_SME
|
|
#define HAS_SCALEROWDOWN2_16_SME
|
|
#define HAS_SCALEROWDOWN2_SME
|
|
#define HAS_SCALEUVADDCOLS3_SME
|
|
#define HAS_SCALEUVROWDOWN2BOX_SME
|
|
#define HAS_SCALEUVROWDOWN2LINEAR_SME
|
|
#define HAS_SCALEUVROWDOWN2_SME
|
|
#endif
|
|
|
|
#if !defined(LIBYUV_DISABLE_LSX) && defined(__loongarch_sx)
|
|
#define HAS_SCALEARGBROWDOWN2_LSX
|
|
#define HAS_SCALEARGBROWDOWNEVEN_LSX
|
|
#define HAS_SCALEROWDOWN2_LSX
|
|
#define HAS_SCALEROWDOWN4_LSX
|
|
#define HAS_SCALEROWDOWN38_LSX
|
|
#define HAS_SCALEFILTERCOLS_LSX
|
|
#define HAS_SCALEADDROW_LSX
|
|
#define HAS_SCALEARGBCOLS_LSX
|
|
#define HAS_SCALEARGBFILTERCOLS_LSX
|
|
#define HAS_SCALEROWDOWN34_LSX
|
|
#define HAS_SCALEUVADDCOLS3_LSX
|
|
#endif
|
|
|
|
#if !defined(LIBYUV_DISABLE_RVV) && \
|
|
((defined(__riscv_vector) && defined(__riscv_zve64x)) || \
|
|
(defined(LIBYUV_RVV) && \
|
|
(!defined(__riscv_vector) || defined(__riscv_zve64x))))
|
|
#define HAS_SCALEUVROWDOWN4_RVV
|
|
#endif
|
|
|
|
#if !defined(LIBYUV_DISABLE_RVV) && \
|
|
(defined(__riscv_vector) || defined(LIBYUV_RVV))
|
|
#define HAS_SCALEARGBROWDOWN2_RVV
|
|
#define HAS_SCALEROWDOWN34_0_BOX_RVV
|
|
#define HAS_SCALEROWDOWN34_1_BOX_RVV
|
|
#define HAS_SCALEROWDOWN38_2_BOX_RVV
|
|
#define HAS_SCALEROWDOWN38_3_BOX_RVV
|
|
#define HAS_SCALEUVROWUP2_BILINEAR_RVV
|
|
#define HAS_SCALEUVROWUP2_LINEAR_RVV
|
|
#define HAS_SCALEROWDOWN34_RVV
|
|
#define HAS_SCALEROWDOWN38_RVV
|
|
#define HAS_SCALEROWUP2_BILINEAR_RVV
|
|
#define HAS_SCALEROWUP2_LINEAR_RVV
|
|
|
|
#define HAS_SCALEARGBROWDOWN2BOX_RVV
|
|
#define HAS_SCALEARGBROWDOWN2LINEAR_RVV
|
|
#define HAS_SCALEARGBROWDOWNEVENBOX_RVV
|
|
#define HAS_SCALEROWDOWN2BOX_RVV
|
|
#define HAS_SCALEADDROW_RVV
|
|
// TODO: Test ScaleARGBRowDownEven_RVV and enable it
|
|
// #define HAS_SCALEARGBROWDOWNEVEN_RVV
|
|
#define HAS_SCALEUVROWDOWNEVEN_RVV
|
|
#define HAS_SCALEROWDOWN2_RVV
|
|
#define HAS_SCALEROWDOWN2LINEAR_RVV
|
|
#define HAS_SCALEROWDOWN4_RVV
|
|
#define HAS_SCALEROWDOWN4BOX_RVV
|
|
#define HAS_SCALEUVADDCOLS3_RVV
|
|
#define HAS_SCALEUVROWDOWN2_RVV
|
|
#define HAS_SCALEUVROWDOWN2BOX_RVV
|
|
#define HAS_SCALEUVROWDOWN2LINEAR_RVV
|
|
#define HAS_SCALEARGBFILTERCOLS_RVV
|
|
#endif
|
|
|
|
// The following are available for WebAssembly SIMD128:
|
|
#if !defined(LIBYUV_DISABLE_WASM) && defined(__wasm_simd128__)
|
|
#define HAS_SCALEADDROW_WASMSIMD
|
|
#define HAS_SCALEARGBCOLS_WASMSIMD
|
|
#define HAS_SCALEARGBCOLSUP2_WASMSIMD
|
|
#define HAS_SCALEARGBFILTERCOLS_WASMSIMD
|
|
#define HAS_SCALEARGBROWDOWN2_WASMSIMD
|
|
#define HAS_SCALEARGBROWDOWNEVEN_WASMSIMD
|
|
#define HAS_SCALEFILTERCOLS_WASMSIMD
|
|
#define HAS_SCALEROWDOWN2_WASMSIMD
|
|
#define HAS_SCALEROWDOWN34_WASMSIMD
|
|
#define HAS_SCALEROWDOWN38_WASMSIMD
|
|
#define HAS_SCALEROWDOWN4_WASMSIMD
|
|
#define HAS_SCALEUVADDCOLS3_WASMSIMD
|
|
#endif
|
|
|
|
// The following are available for Hexagon HVX:
|
|
#if !defined(LIBYUV_DISABLE_HVX) && defined(__HVX__)
|
|
#define HAS_SCALEADDROW_HVX
|
|
#define HAS_SCALEARGBROWDOWN2_HVX
|
|
#define HAS_SCALEROWDOWN2_16_HVX
|
|
#define HAS_SCALEROWDOWN2_HVX
|
|
#define HAS_SCALEROWDOWN4_HVX
|
|
#define HAS_SCALEUVADDCOLS3_HVX
|
|
#define HAS_SCALEUVROWDOWN2_HVX
|
|
#define HAS_SCALEUVROWDOWN2BOX_HVX
|
|
#define HAS_SCALEUVROWDOWN2LINEAR_HVX
|
|
#endif
|
|
|
|
// Scale ARGB vertically with bilinear interpolation.
|
|
void ScalePlaneVertical(int src_height,
|
|
int dst_width,
|
|
int dst_height,
|
|
int src_stride,
|
|
int dst_stride,
|
|
const uint8_t* src_argb,
|
|
uint8_t* dst_argb,
|
|
int x,
|
|
int y,
|
|
int dy,
|
|
int bpp,
|
|
enum FilterMode filtering);
|
|
|
|
void ScalePlaneVertical_16(int src_height,
|
|
int dst_width,
|
|
int dst_height,
|
|
int src_stride,
|
|
int dst_stride,
|
|
const uint16_t* src_argb,
|
|
uint16_t* dst_argb,
|
|
int x,
|
|
int y,
|
|
int dy,
|
|
int wpp,
|
|
enum FilterMode filtering);
|
|
|
|
// Simplify the filtering based on scale factors.
|
|
enum FilterMode ScaleFilterReduce(int src_width,
|
|
int src_height,
|
|
int dst_width,
|
|
int dst_height,
|
|
enum FilterMode filtering);
|
|
|
|
// Divide num by div and return as 16.16 fixed point result.
|
|
int FixedDiv_C(int num, int div);
|
|
int FixedDiv_X86(int num, int div);
|
|
// Divide num - 1 by div - 1 and return as 16.16 fixed point result.
|
|
int FixedDiv1_C(int num, int div);
|
|
int FixedDiv1_X86(int num, int div);
|
|
#ifdef HAS_FIXEDDIV_X86
|
|
#define FixedDiv FixedDiv_X86
|
|
#define FixedDiv1 FixedDiv1_X86
|
|
#else
|
|
#define FixedDiv FixedDiv_C
|
|
#define FixedDiv1 FixedDiv1_C
|
|
#endif
|
|
|
|
// Compute slope values for stepping.
|
|
void ScaleSlope(int src_width,
|
|
int src_height,
|
|
int dst_width,
|
|
int dst_height,
|
|
enum FilterMode filtering,
|
|
int* x,
|
|
int* y,
|
|
int* dx,
|
|
int* dy);
|
|
|
|
void ScaleRowDown2_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown34_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown34_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* d,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* d,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* d,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* d,
|
|
int dst_width);
|
|
|
|
void ScaleRowUp2_Linear_C(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_C(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_Any_C(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_Any_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_Any_C(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_Any_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
|
|
void ScaleCols_C(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleCols_16_C(uint16_t* dst_ptr,
|
|
const uint16_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleColsUp2_C(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int,
|
|
int);
|
|
void ScaleColsUp2_16_C(uint16_t* dst_ptr,
|
|
const uint16_t* src_ptr,
|
|
int dst_width,
|
|
int,
|
|
int);
|
|
void ScaleFilterCols_C(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleFilterCols_16_C(uint16_t* dst_ptr,
|
|
const uint16_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleFilterCols64_C(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleFilterCols64_16_C(uint16_t* dst_ptr,
|
|
const uint16_t* src_ptr,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleRowDown38_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown38_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleAddRow_C(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleAddRow_16_C(const uint16_t* src_ptr,
|
|
uint32_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleARGBRowDown2_C(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_C(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_C(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_C(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_C(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBCols_C(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols64_C(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleARGBColsUp2_C(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int,
|
|
int);
|
|
void ScaleARGBFilterCols_C(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols64_C(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleUVRowDown2_C(const uint8_t* src_uv,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_C(const uint8_t* src_uv,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_C(const uint8_t* src_uv,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDownEven_C(const uint8_t* src_uv,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDownEvenBox_C(const uint8_t* src_uv,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
|
|
void ScaleUVRowUp2_Linear_C(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_Any_C(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_Any_C(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_C(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_Any_C(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_Any_C(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
|
|
void ScaleUVCols_C(uint8_t* dst_uv,
|
|
const uint8_t* src_uv,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleUVCols64_C(uint8_t* dst_uv,
|
|
const uint8_t* src_uv,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleUVColsUp2_C(uint8_t* dst_uv,
|
|
const uint8_t* src_uv,
|
|
int dst_width,
|
|
int,
|
|
int);
|
|
void ScaleUVFilterCols_C(uint8_t* dst_uv,
|
|
const uint8_t* src_uv,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleUVFilterCols64_C(uint8_t* dst_uv,
|
|
const uint8_t* src_uv,
|
|
int dst_width,
|
|
int x32,
|
|
int dx);
|
|
void ScaleUVAddCols3_C(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
|
|
// Specialized scalers for x86.
|
|
void ScaleRowDown2_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2_AVX512BW(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_AVX512BW(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_AVX512BW(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_AVX512BW(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown34_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowUp2_Linear_SSE2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_SSSE3(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_SSSE3(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_SSE2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_SSE2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_SSSE3(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_AVX2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_Any_SSE2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_Any_SSSE3(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_Any_SSSE3(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_Any_SSE2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_Any_SSE2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_Any_SSSE3(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_Any_AVX2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_Any_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_Any_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_Any_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_Any_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown2_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown34_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleAddRow_SSE2(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleAddRow_AVX2(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleAddRow_AVX512BW(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleAddRow_Any_SSE2(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleAddRow_Any_AVX2(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleAddCols1_AVX512BW(int dst_width,
|
|
int boxheight,
|
|
int x,
|
|
int dx,
|
|
const uint16_t* src_ptr,
|
|
uint8_t* dst_ptr);
|
|
void ScaleAddCols2_AVX512BW(int dst_width,
|
|
int boxheight,
|
|
int x,
|
|
int dx,
|
|
const uint16_t* src_ptr,
|
|
uint8_t* dst_ptr);
|
|
|
|
void ScaleFilterCols_SSSE3(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleColsUp2_SSE2(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
|
|
// ARGB Column functions
|
|
void ScaleARGBCols_SSE2(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_SSSE3(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBColsUp2_SSE2(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_NEON(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols_NEON(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_Any_NEON(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols_Any_NEON(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_RVV(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
|
|
// ARGB Row functions
|
|
void ScaleARGBRowDown2_SSE2(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_SSE2(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_SSE2(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_NEON(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_SME(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_RVV(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_RVV(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_RVV(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_LSX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_LSX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_LSX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_SSE2(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_SSE2(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_NEON(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_NEON(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_LSX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int32_t src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_LSX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_RVV(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int32_t src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_RVV(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_Any_SSE2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int32_t src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
// UV Row functions
|
|
void ScaleUVRowDown2Box_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleUVRowDown2_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleUVRowDown2_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowDown2_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowDownEven_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown4_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int32_t src_stepx,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDownEven_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int32_t src_stepx,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDownEven_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleUVRowUp2_Linear_SSSE3(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_Any_SSSE3(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_Any_SSSE3(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_AVX2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_Any_AVX2(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_Any_AVX2(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_NEON(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_Any_NEON(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_RVV(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_SSE41(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_SSE41(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_Any_SSE41(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_Any_SSE41(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_Any_AVX2(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_Any_AVX2(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Linear_16_Any_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleUVRowUp2_Bilinear_16_Any_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleUVAddCols3_AVX2(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_Any_AVX2(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_AVX512VBMI(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_NEON(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_Any_NEON(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_SME(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_RVV(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_LSX(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_Any_LSX(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_WASMSIMD(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_Any_WASMSIMD(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
void ScaleUVAddCols3_HVX(int dst_width,
|
|
int scaleval,
|
|
const uint16_t* src_uv,
|
|
uint8_t* dst_uv);
|
|
|
|
// ScaleRowDown2Box also used by planar functions
|
|
// NEON/SME downscalers with interpolation.
|
|
void ScaleRowDown2_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2_16_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2_16_SME(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_16_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_16_SME(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_SME(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_16_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_16_SME(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown4_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
// Down scale from 4 to 3 pixels. Use the neon multilane read/write
|
|
// to load up the every 4th pixel into a 4 different registers.
|
|
// Point samples 32 pixels to 24 pixels.
|
|
void ScaleRowDown34_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
// 32 -> 12
|
|
void ScaleRowDown38_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
// 32x3 -> 12x1
|
|
void ScaleRowDown38_3_Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
// 32x2 -> 12x1
|
|
void ScaleRowDown38_2_Box_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown2_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
// 32 -> 12
|
|
void ScaleRowDown38_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
// 32x3 -> 12x1
|
|
void ScaleRowDown38_3_Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
// 32x2 -> 12x1
|
|
void ScaleRowDown38_2_Box_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowUp2_Linear_NEON(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_Any_NEON(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_Any_NEON(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_12_Any_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_12_Any_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
void ScaleRowUp2_Linear_16_Any_NEON(const uint16_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_16_Any_NEON(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
|
|
void ScaleAddRow_NEON(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleAddRow_Any_NEON(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
|
|
void ScaleFilterCols_NEON(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
|
|
void ScaleFilterCols_Any_NEON(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
|
|
void ScaleRowDown2_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown38_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleAddRow_LSX(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleFilterCols_LSX(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_LSX(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols_LSX(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleRowDown34_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* d,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* d,
|
|
int dst_width);
|
|
void ScaleRowDown2_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleAddRow_Any_LSX(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleFilterCols_Any_LSX(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols_Any_LSX(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_Any_LSX(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleRowDown34_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_Any_LSX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleAddRow_RVV(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleRowDown2_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown4_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
|
|
void ScaleRowUp2_Linear_RVV(const uint8_t* src_ptr,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowUp2_Bilinear_RVV(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
ptrdiff_t dst_stride,
|
|
int dst_width);
|
|
|
|
void ScaleRowDown2_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_0_Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown34_1_Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_3_Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown38_2_Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleAddRow_WASMSIMD(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleAddRow_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
uint16_t* dst_ptr,
|
|
int src_width);
|
|
void ScaleFilterCols_WASMSIMD(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleFilterCols_Any_WASMSIMD(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBRowDown2_WASMSIMD(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_WASMSIMD(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_WASMSIMD(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_WASMSIMD(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_WASMSIMD(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEven_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDownEvenBox_Any_WASMSIMD(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
int src_stepx,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBCols_WASMSIMD(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBCols_Any_WASMSIMD(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_WASMSIMD(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBFilterCols_Any_WASMSIMD(uint8_t* dst_ptr,
|
|
const uint8_t* src_ptr,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
void ScaleARGBColsUp2_WASMSIMD(uint8_t* dst_argb,
|
|
const uint8_t* src_argb,
|
|
int dst_width,
|
|
int x,
|
|
int dx);
|
|
|
|
void ScaleAddRow_HVX(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
|
|
void ScaleRowDown2_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_Odd_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2_16_HVX(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Linear_16_HVX(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown2Box_16_HVX(const uint16_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint16_t* dst,
|
|
int dst_width);
|
|
void ScaleRowDown4_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleRowDown4Box_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_ptr,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2_HVX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Linear_HVX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleARGBRowDown2Box_HVX(const uint8_t* src_argb,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_argb,
|
|
int dst_width);
|
|
void ScaleUVRowDown2_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Linear_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
void ScaleUVRowDown2Box_HVX(const uint8_t* src_ptr,
|
|
ptrdiff_t src_stride,
|
|
uint8_t* dst_uv,
|
|
int dst_width);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
} // namespace libyuv
|
|
#endif
|
|
|
|
#endif // INCLUDE_LIBYUV_SCALE_ROW_H_
|