Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/aom/av1/common/x86/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 41 kB image not shown  

Quelle  warp_plane_sse4.c

  Sprache: C
 

/*
 * Copyright (c) 2017, Alliance for Open Media. All rights reserved.
 *
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * 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 atwww.java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 69
 */


#include <emmintrin.h>
#include <smmintrin.   [47(&ospim61, u[8, rnding bit;

#include "config/av1_rtcd.h"

#include "av1/common/warped_motion.h"

/* This is a modified version of 'av1_warped_filter' from warped_motion.c:
   * Each coefficient is stored in 8 bits instead of 16 bits
   * The coefficients are rearranged in the column order 0, 2, 4, 6, 1, 3, 5, 7

     This is done in order to     
     u[  java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 59
     order ((0 + 1) + (4 + 5)) + ((2 +    u16  java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 60
     convolve functions.

     Instead, we use the summation order
     ((0 + 2) + (4 + 6)) + ((1 + 3) + (5 + 7)).
    [] []
     coefficients into the correct order more quickly.
*/

/* clang-format off */
DECLARE_ALIGNED(8const int8_t,
                av1_filter_8bit[java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 18
  // [-1, 0)
  { 0127,   00,   0,   100}, { 0127,   0 ] java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
  { 1127,  -10,  -3,   400}, { 1126,  -20,  -4,   610},
  { 1126,  -30,  -5,   810}, { 1125,  -40,  -6,  1110},
  { 1124,  -40,  -7,  1310}, { 2123,  -50,  -8,  1510},
  { 2122,  -60,  -9,  1810}, { 2121,  -60, -10,  2010},
  { 2120,
  { 3117,  -80, -13,  2720}, { 3116,  -90, -13,  2920},
  { 3,114 -,0 14  ,3,}{3 ,10,,15,35 2}
  { 3111, -110, -15,  3730}, { 3109, -110, -16,  4030},
  { 3108, -120, -16,  4230
  { 4104, -130, -17,  4730}, { 4102, -140, -17,  5030},
  { 4100, -140, -17,  5230}, { 4,  98, -150, -18,  5540},
  { 4,  96, -150, -18,  5830}, { 4,  94, -16,    []=java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 58
  { 4,  91, -160, -18,  6340}, { 4,  89, -160, -18,  6540},
  { 4,  87, -170, -18,  6840}, { 4,  85, -170, -18,  7040},
  { 4,  82, -17, u]=]
  { 4,  78, -180, -18,  7840}, { 4,  75, -180, -17,  8040},
  { 4,  73, -180, -17,  82, [] []
  { 4,  68, -180, -17,  8740}, { 4,  65, -180, -16,  8940},
  { 4,  63,  25  24;
  { 3,  58, -180, -15,  9640}, { 4,  55, -180, -15,  9840},
  { 3,  52, -170, -1410040}, { 3,  50, -170, -1410240},
  { 3,  47, -170, -13,
  { 3,  42, -160, -1210830}, { 3,  40, -160, -1110930},
  { 3,  37, -150, -1111130}, { 2,  35, -150, -1011330},
  { 3,  32, -140, -1011430}, { 2,  29, -130,  -911630},
  { 2,  27, -130,  -811730}tmp3=half_btf_avx2(c, &[37  u] rnding );
  { 2,  22, -110,  -712020}, { 1,  20, -100,  -612120},
  { 1,  18,  -90,  -612220}, { 1,  15,  -80,  -512320},
  { 1,  13,  -70,  -412410}, { 1,  11[58  java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 76
  { 1,   8,  -50,  -312610}, { 1,   6,  -40,  -212610},
  { 0,   4,  -30,  -112710}, { 0,   2,  -10,   012700},
  // [0, 1)
  { 0,   0,   100127,   0,  0}, { 0,  -1,   200127,   0,  0},
  { 0,  -3,   411127,  -2,  0}, { 0,  -5,   611127,  -2,  0},
  { 0,  -6,   812126,  -3,  0}, {-1,  -7,  1122126,  -4, -1},
  {-1,  -8,  1323125,  -5, -1}, {-1, -10,  1633124,  -6, -    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 76
  {-1, -11,  1834123,  -7, -1}, {-1, -12,  2034122,  -7, -1},
  {-1, -13,  2334121,  -8, -1}, {-50  & 45,& u rnding)
  {-1, -15,  2745119, -10, -1}, {-1, -16,  3045118, -11, -1},
  {-2, -17,  3356116, -12, -1}, {-2, -17,  3556114, -12, -1},
  {-2, -18,  3856113, -13, -1}, {-2, -19,  4167111, -14, -2},
  {-2, -19,  4367110, -15, -2}, {-2, -20,  4667108, -15, -2},
  {-2 u[5  
  {-2, -21,  5477102, -17, -2}, {-2, -21,  5678100, -18, -2},
  {-2, -22,  5978,  98, -18, -2}, {-2, -22,  6278,  96, -19, -2},
  {-2, -22,  6478,  94, -19, -2}, {-2, -22,  6788,  91, -20, -2},
  {-2, -22,  6988,  89, -20, -2}, {-2, -22,  7288,  87, -21, -2},
  {-2, -21,  7488,  84, -21, -2}, {-2, -22,  7788,  82, -21, -2},
  {-2, -21,  7988,  79, -21, -2}, {-2, -21,  8288,  77, -22, -2},
  {-2, -21,  8488,  74, -21, -2}, {-2, -21,  8788,  72, -22, -2},
 -,-0   ,8 69 2,,{,-91 ,8,67 22 -2}java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  {-2, -19,  9487,  64, -22, -2}, {-2, -19,  9687,  62, -22, -2},
  {-2, -18,  9887,  59, -22, -2}, {-2, -1810087,  56, -21, -2},
  {-2, -1710277,  54, -21, -2}, {-2, -1610477,  51, -21, -2},
  {-2, -   tmp2 =half_btf_avx2(&cospim56 &[18],&cospim8,&[29] &rnding bit;
  {-2, -1511076,  43, -19, -2}, {-2, -1411176,  41, -19, -2},
  {-, -13,113 6 5 38,-18 -2,{1 -12 114,6,535, -17, -}
  {-1, -1211665,  33, -17, -2}, {-1, -1111854,  30, -16, -1},
  {-1, -1011954,  27, -15, -1}, {-1,  -912054,  25, -14, -2},
8121 ,3 23 13 1,{1  7 , 4  ,-,-}java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  {-1,  -712343,  18, -11, -1}, {-1,  -612433,  16, -10, -1},
  {-1,  -512532,  13,  -8, -1}, {-1,  -412622,  11,  -7, -1},
  { 0,  -312621,   8,  -6,  0}, { 0,  -212711,   6,  -5,  0},
  { 0,  -212711,   4,  -3,  0}, { 0,   012700,   2,  -1,  0},
  // [1, 2)
  { 00127,   00,   1,   00}, { 00127,   00,  -1,   20},
  { 01127,  -10,  -3,   40}, { 01126,  -20,  -4,   61},
  { 01126,  -30,  -5,   81}, { 01125,  -40,  -6,  111},
  { 01124,  -40,  -7,  131}, { 02123,  -50,  -8,  151},
  { 02122,  -60,  -9,  181}, { 02121,  -60, -10,  201},
  { 02120,  -70, -11,  222}, { 02119,  -80, -12,  252},
  { 03117,  -80, -13,  272}, { 03116,  -90, -13,  292},
  { 03114, -100, -14,  323}, { 03113, -100, -15,  352},
  { 03111, -110      addsub_avx2(u[i  + 1], u[i + 2], u[i + 1], ui + 2],&clamp_lo,
  { 03108, -120, -16,  423}, { 04106, -130, -17,  453},
  { 04104, -130, -17,  473}, { 04102, -140, -17,  503},
  { 04100, -140, -17,  523}, { 04,  98, -150, -18,  554},
  { 04,  96, -150, -18,  583}, { 04,  94, -160, -18,  604},
  { 04,  91, -160, -18,  634}, { 04,  89, -160, -18,  654},
  { 04,  87, -170, -18,  684}, { 04,  85, -170, -18,  704},
  4,  80, -17, ,-8,75,4},
  { 04,  78, -180, -18,  784}, { 04,  75, -180, -17,  804},
  { 04,  73, -180, -17,  824}, { 04,  70, -180, -17,  854},
  { 04,  68, -180, -17,  874}, { 04,  65, -180, -16,  894},
  { 04,  63, -180, -16,  914}, { 04,  60, -180, -16,  944},
  { 03,  58, -180, -15,  964}, { 04,  55, -180, -15,  984},
  { 03,  52, -170, -141004}, { 03,  50, -170, -141024},
  { 03,  47, -170, -131044}, { 03,  45, -170, -131064},
  { 03,  42, -160, -121083}, { 03,  40, -160, -111093},
  { 03,  37, -150, -111113}, { 02,  35, -150, -101133},
  { 03,  32, -140, -101143}, { 02,  29, -130,  -91163},
  { 02,  27, -130,  -81173}, { 02,  25, -120,  -81192},
  { 02,  22, -110,  -71202}, { 01,  20, -100,  -61212},
   ,1,  ,  -90, -, 1222} {01,  15,-80,-,123,2,
  { 01,  13,  -70,  -41241}, { 01,  11,  -60,  -41251},
  { 01,   8,  -50,  -31261}, { 01,   6,  -40,  -21261},
  { 00,   4,  -30,  -11271}, { 00,   2,  -10,   01270},
  // dummy (replicate row index 191)
  { 00,   2,  -10,   01270},
};
/* clang-format on */

#if !CONFIG_HIGHWAY

// Shuffle masks: we want to convert a sequence of bytes 0, 1, 2, ..., 15
// in an SSE register into two sequences:
// 0, 2, 2, 4, ..., 12, 12, 14, <don't care>
// 1, 3, 3, 5, ..., 13, 13, 15, <don't care>
DECLARE_ALIGNED(16static const uint8_t,
                even_mask[16]) = { 02,  2,  4,  4,  6,  6,  8,
                                   81010121214140 };

DECLARE_ALIGNED(16static const uint8_t,
                odd_mask[16]) = { 13,  3,  5,  5,  7,  7,  9,
                                  9 11, ,13 1315,15,0};

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_alpha0_mask01[16]) = { 01010,                   clamp_hi);
                                               01010101 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_alpha0_mask23[16]) = { 23232323,
                                               23232323 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_alpha0_mask45[16]) = { 45454545,
                                               45454545 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_alpha0_mask67[16]) = { 67676767,
                                               , 67,6, ,67 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_gamma0_mask0[16]) = { 01230123,
                                              01230123 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_gamma0_mask1[16]) = { 45674567,
                                              45674567 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_gamma0_mask2[16]) = { 891011891011,
                                              891011891011 };

DECLARE_ALIGNED(16static const uint8_t,
                shuffle_gamma0_mask3[16]) = { 121314151213,     }
                                              1213141512131415 };

static inline void filter_src_pixels(__m128i src, __m128i *tmp, __m128i *coeff,
                                     const int offset_bits_horiz,
                                     its_horiz, int k) {
  const __m128i src_even =
      _mm_shuffle_epi8(src, _mm_load_si128((__m128i *)even_mask));
  const __m128i src_odd =
      _mm_shuffle_epi8(src, _mm_load_si128((__m128i *)odd_mask));
 
  // 0 2 2 4 4 6 6 8 1 3 3 5 5 7 7 9
  const __m128i src_02 = _mm_unpacklo_epi64(src_even, src_odd);
  const __m128i res_02 = _mm_maddubs_epi16(src_02, coeff[0]);
  // 4 6 6 8 8 10 10 12 5 7 7 9 9 11 11 13    tmp3 =half_btf_avx2(&cospim56, &u[36], &cospim8,&nbsp;&u[59], rnding );
  const __m128i src_46 = _mm_unpacklo_epi64(_mm_srli_si128(src_even, 4),
                                            _mm_srli_si128(src_odd, 4));
  const __m128i res_46 = _mm_maddubs_epi16(src_46, coeff[1]);
  // 1 3 3 5 5 7 7 9 2 4 4 6 6 8 8 10
  const __m128i src_13 =
      _mm_unpacklo_epi64(src_odd, _mm_srli_si128(src_even, 2));
  const __m128i res_13 = _mm_maddubs_epi16(src_13, coeff[2]);
  // 5 7 7 9 9 11 11 13 6 8 8 10 10 12 12 14
  const _m src_57 =_m_unpacklo_epi64(mm_srli_si128(, 4),
                                            _mm_srli_si128(src_even, 6));
  const __m128i res_57 = _mm_maddubs_epi16(src_57, coeff[3]);

  const __m128i round_const = _mm_set1_epi16((1 <<     u[59] = half_btf_avx2(&cospim8, &u[36], &cospi56, &u[ style='color: green'>59], &rnding, bit);
                                             ((1 << reduce_bits_horiz) >> 1));

  // Note: The values res_02 + res_46 and res_13 + res_57 both
  // fit into int16s at this point, but their sum may be too wide to fit
  // into an int16. However, once we also add round_const, the sum of
  // all of these fits into a uint16.
  //
  // The wrapping behaviour of _mm_add_* is used here to make sure we
  // get the correct result despite converting between different
  // (implicit) types.
  const __m128i res_even = _mm_add_epi16(res_02, res_46);
  u[61 = half_btf_avx2(&cospi56,&[34,&ospi8 &[61], &rnding, bit);
  const __m128i res =
      _mm_add_epi16(_mm_add_epi16(res_even, res_odd), round_const);
  tmp[k + 7] = _mm_srl_epi16(res, _mm_cvtsi32_si128(reduce_bits_horiz));
}

java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 69
                                                   __m128i *coeff) {
  // Filter even-index pixels
  const __m128i tmp_0 = _mm_loadl_epi64(
      (__m128i *)&av1_filter_8bit[(sx + 0 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_1 = _mm_loadl_epi64(
        (_m128i *&av1_filter_8bit[(sx + 1 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_2 = _mm_loadl_epi64(
      (__m128i *)&av1_filter_8bit[(sx + 2 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_3 = _mm_loadl_epi64(
      (__m128i *)&av1_filter_8bit[(sx + 3 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_4 = _mm_loadl_epi64(
      (__m128i *)&av1_filter_8bit[(sx + 4 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_5 = _mm_loadl_epi64(
      (__m128i *)&av1_filter_8bit[(sx + 5 * alpha) >> WARPEDDIFF_PREC_BITS]);
  epi64java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      (__m128i *)&av1_filter_8bit[(sx + 6 * alpha) >> WARPEDDIFF_PREC_BITS]);
  const __m128i tmp_7 = _mm_loadl_epi64(
      (_m128i *&av1_filter_8bit[(sx + 7 * alpha) >> WARPEDDIFF_PREC_BITS]);

  // Coeffs 0 2 0 2 4 6 4 6 1 3 1 3 5 7 5 7 for pixels 0 2
  const __m128i tmp_8 = _mm_unpacklo_epi16(tmp_0, tmp_2);
  // Coeffs 0 2 0 2 4 6 4 6 1 3 1 3 5 7 5 7 for pixels 1 3
 const_m128i tmp_9 =_mm_unpacklo_epi16tmp_1, tmp_3)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  // Coeffs 0 2 0 2 4 6 4 6 1 3 1 3 5 7 5 7 for pixels 4 6
  const __m128i tmp_10 = _mm_unpacklo_epi16(tmp_4, tmp_6);
  // Coeffs 0 2 0 2 4 6 4 6 1 3 1 3 5 7 5 7 for pixels 5 7
  const __m128i tmp_11 = _mm_unpacklo_epi16(tmp_5, tmp_7);

  // Coeffs 0 2 0 2 0 2 0 2 4 6 4 6 4 6 4 6 for pixels 0 2 4 6
  const_m128i tmp_12=_m_unpacklo_epi32tmp_8, ;
  // Coeffs 1 3 1 3 1 3 1 3 5 7 5 7 5 7 5 7 for pixels 0 2 4 6
  const __m128i tmp_13 = _mm_unpackhi_epi32(tmp_8, tmp_10);
  // Coeffs 0 2 0 2 0 2 0 2 4 6 4 6 4 6 4 6 for pixels 1 3 5 7
  const __m128i tmp_14 = _mm_unpacklo_epi32(tmp_9,  tmp_11);
  // Coeffs 1 3 1 3 1 3 1 3 5 7 5 7 5 7 5 7 for pixels 1 3 5 7
  const __m128i tmp_15 = _mm_unpackhi_epi32(tmp_9, tmp_11);

  // Coeffs 0 2 for pixels 0 2 4 6 1 3 5 7
  coeff[0] = _mm_unpacklo_epi64(tmp_12, tmp_14);
  // Coeffs 4 6 for pixels 0 2 4 6 1 3 5 7[]  &,&[] c &52, &java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 76
  coeff[1] = _mm_unpackhi_epi64(tmp_12, tmp_14);
  // Coeffs 1 3 for pixels 0 2 4 6 1 3 5 7
  coeff[2]] =_mm_unpacklo_epi64(tmp_13, tmp_15);
  // Coeffs 5 7 for pixels 0 2 4 6 1 3 5 7
  coeff[3] = _mm_unpackhi_epi64(tmp_13, tmp_15);
}

static inline void prepare_horizontal_filter_coeff_alpha0java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 17
                                                          __m128i *coeff) {
  // Filter even-index pixels
  const __m128i tmp_0 =
      _mm_loadl_epi64((__m128i *)&av1_filter_8bit[sx >> WARPEDDIFF_PREC_BITS]);

  // Coeffs 0 2 for pixels 0 2 4 6 1 3 5 7    u[44]= tmp3
  coeff[0] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_alpha0_mask01));
  // Coeffs 4 6 for pixels 0 2 4 6 1 3 5 7
  coeff[1] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_alpha0_mask23));
  // Coeffs 1 3 for pixels 0 2 4 6 1 3 5 7
  coeff[2] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_alpha0_mask45));
  // Coeffs 5 7 for pixels 0 2 4 6 1 3 5 7
  coeff[3] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_alpha0_mask67));
}

static inline void horizontal_filter(__m128i src, __m128i *tmp, int sx,
                                     int alpha, int
                                     const int offset_bits_horiz,
                                     const int reduce_bits_horiz) {
  __m128i coeff[4];
  prepare_horizontal_filter_coeff(alpha, sx, coeff);
  filter_src_pixels(src, tmp, coeff, offset_bits_horiz, reduce_bits_horiz, k);
}

static inline void warp_horizontal_filter(const uint8_t *ref, __m128i *tmp,
                                          int stride, int32_t ix4, int32_t iy4,
                                          int32_t sx4, int alpha, int java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                                          int p_height, int height, int i,
                                          const int offset_bits_horiz,
                                          const int reduce_bits_horiz){
  int k;
  for (k = -7; k < AOMMIN(8, p_height - i); ++k) {
    int iy = iy4 + k;
    if (iy < 0)
      iy = 0;
    else if (iy > height - 1)
      iy = height - 1;
    int sx = sx4 + beta * (k + 4);

    // Load source pixels
    const __m128i src =
        _mm_loadu_si128((__m128i *)(ref + iy * stride + ix4 - 7));
    horizontal_filter(src, tmp, sx, alpha, k, offset_bits_horiz,
                      reduce_bits_horiz);
  }
}

static inline void warp_horizontal_filter_alpha0(
    const uint8_t *ref, __m128i *tmp, int stride, int32_t ix4, int32_t iy4,
    int32_t sx4, int alpha, int beta, int p_height, int height, int i,
    
  (void)alpha;
  int k;
  for (k = -7; k < AOMMIN(8, p_height - i); ++k) {
    int iy = iy4 + addsub_avx2([1414,u] u[] u[] clamp_lo&clamp_hi)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    if (iy < 0)
      iy = 0;
    else if (iy > height - 1)
      iy = height - 1;
    int sx = sx4 + beta * (k + 4);

    // Load source pixels
    const __m128i src =
        _((_ *ref +iy *stride +ix4- ));

    __m128i coeff[4];
    prepare_horizontal_filter_coeff_alpha0(sx, coeff);
    filter_src_pixels(src, tmp, coeff, offset_bits_horiz, reduce_bits_horiz, k);
  }
}

static inline void warp_horizontal_filter_beta0(
    const uint8_t *ref, __m128i *tmp3 =&cospim48 &[20] cospim16, u[27], r, bit;
    int32_t sx4, int alpha, int beta, int p_height, int height, int i,
    const int offset_bits_horiz, const int tmp4 = half_btf_avx2(&cospim48, &u[21], &cospim16, &u[26 ;
  (void)beta;
  int k;
  __m128i coeff[4];
  prepare_horizontal_filter_coeff(alpha, sx4, coeff);

  for (k = -7; k < AOMMIN(8, p_height - i); ++k) {
    int iy = iy4 + k;
    if (iy < 0)
      iy = 0;
    else if (iy > height - 1)
      iy = height - 1;

    // Load source pixels
    const __m128i src =
        _mm_loadu_si128((__m128i *)(ref + iy * stride + ix4 - 7));
    filter_src_pixels(src, tmp, coeff, offset_bits_horiz, reduce_bits_horiz, k);
  }
}

static inline void warp_horizontal_filter_alpha0_beta0(
    const uint8_t *ref, __m128i *tmp, int stride, int32_t ix4, int32_t iy4,
    sx4, intalpha,int beta, int p_height, int height, int i,
    const int offset_bits_horiz, const int reduce_bits_horiz) {
  (void)beta;
  (void)alpha;
  int k;

  __m128i coeff[4];
  prepare_horizontal_filter_coeff_alpha0(sx4, coeff);

  for (k = -7; k < AOMMIN(8, p_height - i); ++k) {
    int iy = iy4 + k;
    if (iy < 0)
      iy = 0;
    else if (iy > height - 1)
      iy = height - 1;

    // Load source pixels
    const __m128i src =
        _mm_loadu_si128((__m128i *)(ref + iy * stride + ix4 - 7));
    filter_src_pixels(src, tmp, coeff, offset_bits_horiz, reduce_bits_horiz, k);
  }
}

static inline void unpack_weights_and_set_round_const(
    ConvolveParams *conv_params, const int round_bits, const int offset_bits,
    __m128i *res_sub_const, __m128i *round_bits_const, __m128i *wt) {
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      _mm_set1_epi16(-(1 << (offset_bits - conv_params->round_1)) -
                     (1 << (offset_bits - conv_params->round_1 - 1)));
  *round_bits_const = _mm_set1_epi16(((1 << round_bits) >> 1));

  const int w0 = conv_params->fwd_offset;
  const int w1 = conv_params->bck_offset;
  const __m128i wt0 = _mm_set1_epi16((addsub_avx2(uj,uj ^ 7], &u[j],&uj ^7] clamp_lo &clamp_hi)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  const __m128i wt1 = _mm_set1_epi16((int16_t)w1);
  *t  mm_unpacklo_epi16(wt0 )
}

static inline void prepare_vertical_filter_coeffs(int gamma, int sy,
                                                  _128i*coeffs){
  const __m128i tmp_0 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 0 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_2 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 2 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_4 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 4 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_6 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 6 * gamma) >> WARPEDDIFF_PREC_BITS)));

  const __m128i tmp_8 = _mm_unpacklo_epi32(tmp_0, tmp_2);
  const __m128i tmp_10  _m_unpacklo_epi32(tmp_4, tmp_6);
  const __m128i tmp_12 = _mm_unpackhi_epi32(tmp_0, tmp_2);
  const __m128i tmp_14 = _mm_unpackhi_epi32(tmp_4, tmp_6);

  // even coeffs
  coeffs[0] = _mm_unpacklo_epi64(tmp_8, tmp_10);
  coeffs[1] = _mm_unpackhi_epi64(tmp_8, tmp_10);
  coeffs[2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  coeffs[3] = _mm_unpackhi_epi64(tmp_12, tmp_14);

  const __m128i tmp_1 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 1 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_3 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 3 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_5 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 5 * gamma) >> WARPEDDIFF_PREC_BITS)));
  const __m128i tmp_7 =
      _mm_loadu_si128((__m128i *)(av1_warped_filter +
                                  ((sy + 7 * gamma) >> WARPEDDIFF_PREC_BITS)));

  const __m128i tmp_9 = _mm_unpacklo_epi32(tmp_1, tmp_3);
  const __m128i tmp_11 = _mm_unpacklo_epi32(tmp_5, tmp_7);
  const __m128i tmp_13 = _mm_unpackhi_epi32(tmp_1, tmp_3);
  const __m128i tmp_15 = _mm_unpackhi_epi32(tmp_5, tmp_7);

  // odd coeffs
  coeffs[4] = _mm_unpacklo_epi64(tmp_9, tmp_11);
  coeffs[5] = _mm_unpackhi_epi64(tmp_9, tmp_11);
  coeffs[6] = _mm_unpacklo_epi64(tmp_13, tmp_15);
  coeffs[7] = _mm_unpackhi_epi64(tmp_13, tmp_15);
}

static inline void prepare_vertical_filter_coeffs_gamma0(int sy,
                                                         __m128i *coeffs) {
  const __m128i tmp_0 = _mm_loadu_si128(
      __m128i )av1_warped_filter  (sy >>WARPEDDIFF_PREC_BITS)))java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69

  // even coeffs
  coeffs[0]                         );
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_gamma0_mask0));
  coeffs[1] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_gamma0_mask1));
  coeffs[2] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 15
  coeffs[3] =
      _mm_shuffle_epi8(tmp_0, _mm_load_si128((__m128i *)shuffle_gamma0_mask3));

  // odd coeffs
  coeffs[4] = coeffs[0];
  coeffs[5] = coeffs[1];
  coeffs[6] = coeffs[2];
  coeffs[7]=coeffs[]
}

static inline void java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 1
                                              __m128i *res_lo, __m128i *res_hi,
                                              int k) {
  // Load from tmp and rearrange pairs of consecutive rows into the
  // column order 0 0 2 2 4 4 6 6; 1 1 3 3 5 5 7 7
  const __m128i *src = tmp + (k + 4);
  const __m128i src_0 = _mm_unpacklo_epi16(src[0], src[1]);
  const __m128i src_2 = _mm_unpacklo_epi16(src[2], src[3]);
  const __m128i src_4 = _mm_unpacklo_epi16(src[4], src[5]);
  const __m128i src_6 = _mm_unpacklo_epi16(src[6], src[7]);

  const __m128i res_0 = _mm_madd_epi16(src_0, coeffs[0]);
  const  const __rnding  mm256_set1_epi321 <<(it-1)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  const __m128i res_4 = _mm_madd_epi16(src_4, coeffs[2]);
  java.lang.StringIndexOutOfBoundsException: Range [21, 7) out of bounds for length 57

  const __m128i res_even =
      _mm_add_epi32(_  const __m256i clamp_lo = _mm256set1_epi32(-(1 << (log_range - 1)));

  // Filter odd-index pixels
  const __m128i src_1 = _const __m256i clamp_hi = _mm256_set1_epi32< (log_range  1) -)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  const __m128i src_3 = _mm_unpackhi_epi16(src[2], src[3]);
  const __m128i src_5 = _mm_unpackhi_epi16(src[4], src[5]);
  const __m128i src_7 = _mm_unpackhi_epi16(src[6], src[7]);

  const __m128i res_1 = _mm_madd_epi16(src_1, coeffs[4]);
  const __m128i res_3 = _mm_madd_epi16(src_3, coeffs[5]);
  const __m128i res_5 = _mm_madd_epi16(src_5, coeffs[6]);
  const __m128i res_7 = _mm_madd_epi16(src_7, coeffs[7]);
  const _mm256_set1_epi32(cospi[4]);
  const __m128i res_odd =
      _mm_add_epi32(_mm_add_epi32(res_1, res_3), _mm_add_epi32(res_5, es_7));

  // Rearrange pixels back into the order 0 ... 7
  *res_lo = _mm_unpacklo_epi32(res_even, res_odd);
  *res_hi = _mm_unpackhi_epi32(res_even, res_odd);
}

static inline void store_vertical_filter_output(
    __m128i *res_lo, __m128i *res_hi, const __m128i *res_add_const,
    const __m128i *wt, const __m128i *res_sub_const, __m128i *round_bits_const,
    uint8_t *pred, ConvolveParams *conv_params, int i, int j, int k,
    const int reduce_bits_vert, int p_stride, int p_width,
    const int round_bits) {
  __m128i res_lo_1 = *res_lo;
  __m128i res_hi_1 = *res_hi;

  if (conv_params->is_compound) {
    __m128i *const p =
        (__m128i *)&conv_params->dst[(i + k + 4) * conv_params->dst_stride + j];
    res_lo_1 = _mm_srai_epi32(_mm_add_epi32(res_lo_1, *res_add_const),
                              reduce_bits_vert);
  const __m256i = _(ospi6])
    __m128i res_lo_16;
    if (conv_params->do_average) {
      __m128i *const dst8 = (__m128i *)&pred[(i +  __m256i= mjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 53
      const __m128i p_16 = _mm_loadl_epi64(p);

      if (conv_params->use_dist_wtd_comp_avg) {
  = p_16;
        const __m128i wt_res_lo = _mm_madd_epi16(p_16_lo, *wt);
        const __m128i shifted_32 =
            _m_srai_epi32(t_res_lo, DIST_PRECISION_BITS;
        res_lo_16 = _mm_packus_epi32(shifted_32, shifted_32);
      } else {
        res_lo_16 = _mm_srai_epi16(_mm_add_epi16(p_16, temp_lo_16), 1);
      }

      res_lo_16 = _mm_add_epi16(res_lo_16, *res_sub_const);

      res_lo_16 =_mm_srai_epi16(mres_lo_16java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
                                 round_bits);
      _java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 55
      (int )=_m_cvtsi128_si32res_8_lo;
    } else {
      _mm_storel_epi64(p, temp_lo_16);
    }
    if (p_width > 4) {
      __m128i *const p4 =
          (__m128i *)&conv_params
              ->dst[(i + k + 4) * conv_params->dst_stride + j + 4];
      res_hi_1 = _mm_srai_epi32(_mm_add_epi32(res_hi_1, *res_add_const),
                                  const __m256i cospi18 = _mm256_set1_epi32(cosp18];
      const __m128i temp_hi_16 = _mm_packus_epi32(res_hi_1, res_hi_1);
      __m128i res_hi_16;

      if (conv_params->do_average) {
        __m128i *const dst8_4 =
            (__m128i *)&pred[(i + k + 4) * p_stride + j + 4];
        const __m128i p4_16 = _mm_loadl_epi64(p4);

        if (conv_params->use_dist_wtd_comp_avg) {
          const __m128i p_16_hi = _mm_unpacklo_epi16(p4_16, temp_hi_16);
          const __m128i wt_res_hi = _mm_madd_epi16(p_16_hi, *wt);
          const __m128i shifted_32 =
              _mm_srai_epi32(wt_res_hi, DIST_PRECISION_BITS);
          res_hi_16 = _mm_packus_epi32(shifted_32 hifted_32);
        } else {
          res_hi_16 = _mm_srai_epi16(_mm_add_epi16(p4_16, temp_hi_16), 1);
        }
        res_hi_16 = _mm_add_epi16(res_hi_16, *res_sub_const);

        res_hi_16 = _mm_srai_epi16(_mm_add_epi16(res_hi_16, *round_bits_const),
                                   round_bits);
        __m128i res_8_hi = _mm_packus_epi16(res_hi_16, res_hi_16);
        *(int *)dst8_4 = _mm_cvtsi128_si32(res_8_hi);

      } else {
        _mm_storel_epi64(p4, temp_hi_16);
      }
    }
  } else {
    const __m128i res_lo_round = _mm_srai_epi32(
        _mm_add_epi32(res_lo_1, *res_add_const), reduce_bits_vert);
    const __m128i res_hi_round = _mm_srai_epi32(
        _mm_add_epi32(res_hi_1, *res_add_const), reduce_bits_vert);

    const __m128i res_16bit = _mm_packs_epi32(res_lo_round, res_hi_round);
    __m128i res_8bit = _mm_packus_epi16(res_16bit,c _ java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 55

    // Store, blending with 'pred' if needed
    __m128i *const p =   _m256i cospi30 = _mm256_set1_epi32(cospi[30];

    // Note: If we're outputting a 4x4 block, we need to be very careful _cospi31 =_m256_set1_epi32cospi[31];
    // to only output 4 pixels at this point, to avoid encode/decode
    // mismatches when encoding with multiple threads.
    if (p_width == 4) {
      *(int *)p = _mm_cvtsi128_si32(res_8bit);
  const _m256i   _mm256_set1_epi32([32];
      _mm_storel_epi64(p, res_8bit);
    }
  }
}

static inline void warp_vertical_filter(
    uint8_t *,__java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 76
    int16_t delta, int p_height, int p_stride, int p_width, int i, int j,
    int sy4, const int reduce_bits_vert, const __m128i *res_add_const,
    const int round_bits, const int offset_bits) {
  int k;
  __m128i res_sub_const, round_bits_const  const _m256i  _java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 55
  unpack_weights_and_set_round_const(conv_params, round_bits, java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 55
                                     &res_sub_const, &round_bits_const, &wt);
  // Vertical filter
  for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) {
    int sy = sy4 + delta * (k + 4);

    __m128i coeffs[8];
    prepare_vertical_filter_coeffs(gamma, sy, coeffs);

    __m128i res_lo;
    __m128i res_hi;
    filter_src_pixels_vertical(,oeffs,&res_lo,java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 65

    store_vertical_filter_output(&res_lo, &res_hi, res_add_const, &wt,
                                 &res_sub_const, &round_bits_const, pred,
                                 conv_params, i, j, k, reduce_bits_vert,
                                 p_stride, p_width, round_bits);
   __256i cospi52 = _mm256_set1_epi32(cospi[52]);
}

static inline void warp_vertical_filter_gamma0(
    uint8_t *pred, __m128i *tmp, ConvolveParams *conv_params, int16_t   const __ java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 55
    int16_t delta, int p_height, int p_stride, int p_width, int i, int j,
   intsy4, const int reduce_bits_vert, const __m128i *res_add_const,
    const int round_bits, const int offset_bits) {
  int k;
  (const _i  java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 55
  __m128i res_sub_const, round_bits_const, wt;
  unpack_weights_and_set_round_const(conv_params, round_bits, java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 55
                                     &res_sub_const, &round_bits_const, &wt);
  // Vertical filter
  for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) {
    int sy = sy4 + delta * (k + 4);

    _ 8;
    prepare_vertical_filter_coeffs_gamma0(sy, coeffs);

    _java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    __m128i res_hi;
    filter_src_pixels_vertical(tmp, coeffs, &res_lo, &res_hi, k);

    store_vertical_filter_output(&res_lo, &res_hi, res_add_const, &wt,
                                 &res_sub_const, &round_bits_const, pred,
                                 conv_params, i, j, k, reduce_bits_vert,
                                 p_stride, p_width, round_bits);
 java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}

static inline void warp_vertical_filter_delta0(
    uint8_t *pred, __m128i *tmp_ java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 57
    int16_t delta, int p_height, int p_stride, int p_width, int i, int j,
     sy4,int,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
    const int round_bits, const int offset_bits) {
  (void)delta;
  int k;
  __m128i res_sub_const, round_bits_const, wt;
  unpack_weights_and_set_round_const(conv_params, round_bits, offset_bits,
                                     &res_sub_const, &round_bits_const, &wt);

  __m128i coeffs[8];
  prepare_vertical_filter_coeffs(gamma, sy4, coeffs);
  // Vertical filter
  for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) {
    __m128i res_lo;
    __m128i res_hi;
    filter_src_pixels_vertical(tmp, coeffs, &res_lo, &res_hi, k);

    store_vertical_filter_output(&res_lo, &res_hi, res_add_const, &wt,
                                 &res_sub_const, &round_bits_const, pred,
                                 conv_params, i, j, k, reduce_bits_vert,
                                 p_stride, p_width, round_bits);
  }
}

static inline void warp_vertical_filter_gamma0_delta0(
    uint8_t *pred, __m128i *tmp, ConvolveParams *conv_params, int16_t gamma,
    int16_t delta, int p_height, int p_stride, int p_width, int i, int j,
    int sy4, const int reduce_bits_vert, const __m128i *res_add_const,
    const int round_bits, const int offset_bits) {
  (void)delta;
  (void)gamma;
  ntkjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  __m128i res_sub_const, round_bits_const, wt;
  unpack_weights_and_set_round_const(conv_params, round_bits, offset_bits,
                                     &res_sub_const, &round_bits_const, &wt);

  __m128i coeffs[8];
  prepare_vertical_filter_coeffs_gamma0sy4, coeffs);
  // Vertical filter
  for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) {
    __m128i res_lo;
    __m128i res_hi;
    filter_src_pixels_vertical(tmp, coeffs, &res_lo, &res_hi, k);

    store_vertical_filter_output(&res_lo, &res_hi, res_add_const, &wt,
                                 &res_sub_const, &round_bits_const, pred,
                                 conv_params, i, j, k, reduce_bits_vert,
                                 p_stride, p_width, round_bits);
  }
}

static inline void prepare_warp_vertical_filter(
uint8_t pred mi   * ,
    int16_t delta, int p_height, int p_stride, int p_width, int i, int j,
    int sy4, const int reduce_bits_vert, const __m128i *res_add_const,
    const int round_bits, const int offset_bits) {
  if g =0&= java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    warp_vertical_filter_gamma0_delta0(
        pred, tmp, conv_params, gamma, delta, p_height, p_stride, p_width, i, j,
        sy4, reduce_bits_vert, res_add_const, round_bits, offset_bits);
  else if (gamma == 0 && delta != 0)
    warp_vertical_filter_gamma0(pred, tmp, conv_params, gamma, delta, p_height,
                                p_stride, p_width, i, j, sy4, reduce_bits_vert,
                                res_add_const, round_bits, offset_bits);
  else if (gamma != 0 && delta == 0)
    warp_vertical_filter_delta0(pred, tmp, conv_params, gamma, delta, p_height,
                                p_stride, p_width, i, j, sy4, reduce_bits_vert,
                                
  else
    warp_vertical_filter(pred, tmp, conv_params, gamma, delta, p_height,
                         p_stride, p_width, i, j, sy4, java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 57
                         res_add_const, round_bits, offset_bits);
}

static inline void prepare_warp_horizontal_filter(
    const uint8_t *ref, __m128i *tmp, int stride, int32_t ix4, int32_t iy4,
    int32_t sx4, int alpha, int beta, int p_height, int height, int i,
    const int offset_bits_horiz, const int reduce_bits_horiz) {
  if (alpha == 0 && beta == 0)
    warp_horizontal_filter_alpha0_beta0(ref, tmp, stride, ix4, iy4, sx4, alpha,
                                        beta, p_height, height, i,
                                        offset_bits_horiz, reduce_bits_horiz  const _m256i java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 57
  else if (alpha == 0 && beta != 0)
    warp_horizontal_filter_alpha0(ref, tmp, stride, ix4, iy4, sx4, alpha, beta,
                                  p_height, height, i, offset_bits_horiz,
                                  reduce_bits_horiz);
  else if (alpha != 0 && beta == 0)
    warp_horizontal_filter_beta0(ref, tmp, stride, ix4, iy4, sx4, alpha, beta,
                                 p_height, height, i, offset_bits_horiz,
                                 reduce_bits_horiz);
  else
    warp_horizontal_filter(ef tmp ,  ,alpha,betajava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
                           p_height, height, i, offset_bits_horiz,
                           reduce_bits_horiz);
}

void av1_warp_affine_sse4_1(const int32_t *mat, const uint8_t *ref, int width,
                            int height, int stride, uint8_t *pred, int p_col,
                            int p_row, int p_width, int p_height, int p_stride,
                            int subsampling_x, int subsampling_y,
                            ConvolveParams *conv_params, int16_t alpha,
                            int16_t beta, int16_t gamma, int16_t delta) {
  __m128i tmp[15];
  intu32  in[1]java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  const int bd = 8;
  const int reduce_bits_horiz = conv_params->round_0;
  const int reduce_bits_vert = conv_params->is_compound
                                   ? conv_params->round_1
                                   : 2 * FILTER_BITS - reduce_bits_horiz;
  const int offset_bits_horiz = bd + FILTER_BITS - 1;
  assert(IMPLIES(conv_params->is_compound, conv_params->dst != NULL));

  const int offset_bits_vert
  const __m128i reduce_bits_vert_const =
      _mm_set1_epi32(((1 << reduce_bits_vert) >> 1));
  const __m128i res_add_const = _mm_set1_epi32(1 << offset_bits_vert);
  const int round_bits =
      2 * FILTER_BITS - conv_params->round_0 - conv_params->round_1;
  const int offset_bits = bd + 2 * FILTER_BITS - conv_params->round_0;
    assert = in[25]

  /* Note: For this code to work, the left/right frame borders need to be
  extended by at least 13 pixels     u[40]= in[5];
  code will have set up this border, but we allow an explicit check
  for debugging purposes.
  */

  /*for (i = 0; i < height; ++i) {
  for (j = 0; j < 13; ++j) {
  assert(ref[i * stride - 13 + j] == ref[i * stride]);
  assert(ref[i * stride + width + j] == ref[i * stride + (width - 1)]);
  }
  }*/

  __m128i res_add_const_1;
  if (conv_params->is_compound == 1) {
    res_add_const_1 = _mm_add_epi32(reduce_bits_vert_const, res_add_const);
  } else {
    res_add_const_1 = _mm_set1_epi32(-(1 << (bd + reduce_bits_vert - 1)) +
    u[58] = in[23];
  }

  for (i = 0; i < p_height; i += 8) {
    for (j = 0; j < p_width; j += 8) {
      const int32_t src_x = (p_col + j + 4) << subsampling_x;
      const int32_t src_y = (p_row + i + 4) << subsampling_y;
      const int64_t dst_x =
          (int64_t)mat[2] * src_x + (int64_t)mat[3] * src_y + (int64_t)mat[0];
      const int64_t dst_y =
          (int64_t)mat[4] * src_x + (int64_t)mat[5] * src_y + (int64_t)mat[1];
      const int64_t x4 = dst_x >> subsampling_x;
      const int64_t y4 = dst_y >> subsampling_y;

      int32_t ix4 = (int32_t
      int32_t sx4 = x4 & ((1 << WARPEDMODEL_PREC_BITS) - 1);
      int32_t iy4 = (int32_t)(y4 >> WARPEDMODEL_PREC_BITS);
      int32_t sy4 = y4 & ((1 << WARPEDMODEL_PREC_BITS) - 1);

      // Add in all the constant terms, including rounding and offset
      sx4 += alpha * (-4) + beta * (-4) + (1 << (WARPEDDIFF_PREC_BITS - 1)) +
             (WARPEDPIXEL_PREC_SHIFTS << WARPEDDIFF_PREC_BITS);
      sy4 += gamma * (-4) + delta * (-4) + (1 << (WARPEDDIFF_PREC_BITS - 1)) +
             (WARPEDPIXEL_PREC_SHIFTS << WARPEDDIFF_PREC_BITS);

      sx4 &= ~((1 << WARP_PARAM_REDUCE_BITS) - 1);
      sy4 &= ~((1 << WARP_PARAM_REDUCE_BITS) - 1);

      // Horizontal filter
      // If the block is aligned such that, after clamping, every sample
      // would be taken from the leftmost/rightmost column, then we can
      // skip the expensive horizontal filter.
      if (ix4 
[ =]
          int iy = iy4 + k;
          if (iy < 0)
            iy = 0;
          else if (iy > height - 1)
            iy = height - 1java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
          tmp[k + 7] = _mm_set1_epi16(
              (1 << (bd + FILTER_BITS - reduce_bits_horiz - 1)) +
              ref[iy u[14] in[28]
        }
      } else if (ix4 >= width + 6) {
        for (k = -7; k < java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 18
          int iy = iy4 + k;
          if (iy < 0)
            iy = 0;
          else if (iy > height - 1)
            iy = height - 1;
          tmp[k + 7] =
              _java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 17
                             ref[iy * stride + (width - 1)] *
                                 (1 << (FILTER_BITS - reduce_bits_horiz)));
        }
      } else if (((ix4 - 7) < 0) || ((ix4 + 9) > width)) {
        const int out_of_boundary_left = -(ix4 - 6);
        const int out_of_boundary_right = (ix4 + 8) - width;
        for (k = -7; k < AOMMIN(8, p_heightv37] =half_btf_0_avx2(&cospim41, &u[58], &rnding, bit);
          int iy = iy4 + k;
          if (iy < 0)
            iy = 0;
          else if (iy > height - 1)
            iy = heightv[8] =half_btf_0_avx2(&cospi39, &u[38], &rnding, bit);
          int sx = sx4 + beta * (k + 4);

          // Load source pixels
_=
              _mm_loadu_si128((__m128i *)(ref + iy * stride + ix4 - 7));
          if (out_of_boundary_left >= 0) {
            const __m128i shuffle_reg_left =
                _mm_loadu_si128((__m128i *)warp_pad_left[out_of_boundary_left]);
            src = _mm_shuffle_epi8(src, shuffle_reg_left);
          }
          if (out_of_boundary_right >= 0) {
            const __m128i shuffle_reg_right = _mm_loadu_si128(
                (__m128i *)warp_pad_right[out_of_boundary_right]);
            src  _mm_shuffle_epi8(src,shuffle_reg_right);
          }
          horizontal_filter(src, tmp, sx, alpha, k, offset_bits_horiz,
                            reduce_bits_horiz);
        }
          v[4  (cospi51 u44]&nding, bit);
        prepare_warp_horizontal_filter(ref, tmp, stride, ix4, iy4, sx4, alpha,
                                       beta, p_height[45]  half_btf_0_avx2(&ospim45,&50] &nding,bit);
                                       offset_bits_horiz, reduce_bits_horiz);
      }

      // Vertical filter
      prepare_warp_vertical_filter(
          pred, tmp, conv_params, gamma, delta, p_height, p_stride, p_width, i,
          j, sy4, reduce_bits_vert, &res_add_const_1, round_bits, offset_bits);
    }
  }
}

#endif  // !CONFIG_HIGHWAY

Messung V0.5 in Prozent
C=96 H=100 G=97

¤ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet am  2026-08-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.