/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | canny.rscript | 107 int y1 = y - 2; 108 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 109 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 110 sum += 5 * rsGetElementAt_uchar(edgeImage, x1++, y1); 111 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 112 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 114 y1++; 115 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 116 sum += 9 * rsGetElementAt_uchar(edgeImage, x1++, y1); 117 sum += 12 * rsGetElementAt_uchar(edgeImage, x1++, y1); [all …]
|
/frameworks/av/media/module/codecs/amrwb/enc/src/ |
D | g_pitch.c | 31 Word16 y1[], /* (i) : filtered adaptive codebook. */ in G_pitch() argument 41 xy = extract_h(Dot_product12_asm(xn, y1, L_subfr, &exp_xy)); in G_pitch() 42 yy = extract_h(Dot_product12_asm(y1, y1, L_subfr, &exp_yy)); in G_pitch() 46 xy = extract_h(Dot_product12(xn, y1, L_subfr, &exp_xy)); in G_pitch() 47 yy = extract_h(Dot_product12(y1, y1, L_subfr, &exp_yy)); in G_pitch()
|
/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
D | HandwritingInitiatorTest.java | 131 final int y1 = (sHwArea1.top + sHwArea1.bottom) / 2; in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() local 132 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() 136 final int y2 = y1; in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() 156 final int y1 = (sHwArea1.top + sHwArea1.bottom) / 2; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() local 157 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 161 final int y2 = y1; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 166 final int y3 = y1; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 171 final int y4 = y1; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 199 final int y1 = sHwArea1.top - HW_BOUNDS_OFFSETS_TOP_PX / 2; in onTouchEvent_startHandwriting_when_stylusMove_withinExtendedHWArea() local 200 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMove_withinExtendedHWArea() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | LinearGradient.java | 69 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int[] colors, in LinearGradient() argument 71 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient() 92 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorLong long[] colors, in LinearGradient() argument 94 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient() 101 private LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument 112 mY1 = y1; in LinearGradient() 129 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument 132 this(x0, y0, x1, y1, Color.pack(color0), Color.pack(color1), tile); in LinearGradient() 149 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument 152 this(x0, y0, x1, y1, new long[] {color0, color1}, null, tile); in LinearGradient() [all …]
|
D | Path.java | 373 public void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument 374 nQuadTo(mNativePath, x1, y1, x2, y2); in quadTo() 413 public void conicTo(float x1, float y1, float x2, float y2, float weight) { in conicTo() argument 414 nConicTo(mNativePath, x1, y1, x2, y2, weight); in conicTo() 450 public void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument 452 nCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in cubicTo() 460 public void rCubicTo(float x1, float y1, float x2, float y2, in rCubicTo() argument 462 nRCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in rCubicTo() 844 private static native void nQuadTo(long nPath, float x1, float y1, float x2, float y2); in nQuadTo() argument 846 private static native void nConicTo(long nPath, float x1, float y1, float x2, float y2, in nConicTo() argument [all …]
|
/frameworks/av/media/module/codecs/m4v_h263/dec/src/ |
D | get_pred_adv_b_add.cpp | 867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvancedBy1x1() local 897 y1 = *((uint32*)(prev += 4)); /* a7 a6 a5 a4 */ in GetPredAdvancedBy1x1() 908 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ in GetPredAdvancedBy1x1() 910 y1 = y1 ^(y1m << 2); in GetPredAdvancedBy1x1() 913 y1 += y2; in GetPredAdvancedBy1x1() 936 y2 |= (y1 << 24); in GetPredAdvancedBy1x1() 945 y2 = y1 >> 8; in GetPredAdvancedBy1x1() 949 y1 += y2; in GetPredAdvancedBy1x1() 950 y1 += rnd2; in GetPredAdvancedBy1x1() 951 y1 &= (mask << 2); in GetPredAdvancedBy1x1() [all …]
|
D | conceal.cpp | 151 uint8 *y1, *y2, *u1, *u2, *v1, *v2; in CopyVopMB() local 163 y1 = curr->yChan + lumstart; in CopyVopMB() 171 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB() 172 y1 += width_Y; in CopyVopMB() 174 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB() 175 y1 += width_Y; in CopyVopMB() 177 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB() 178 y1 += width_Y; in CopyVopMB() 180 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB() 181 y1 += width_Y; in CopyVopMB()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerCubic.h | 43 int32_t a, b, c, y0, y1, y2, y3; member 51 return (((((p->a * x >> 14) + p->b) * x >> 14) + p->c) * x >> 14) + p->y1; in interp() 54 p->y0 = p->y1; in advance() 55 p->y1 = p->y2; in advance() 58 p->a = (3 * (p->y1 - p->y2) - p->y0 + p->y3) >> 1; in advance() 59 p->b = (p->y2 << 1) + p->y0 - (((5 * p->y1 + p->y3)) >> 1); in advance()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Contrast.java | 98 public static float contrastYs(float y1, float y2) { in contrastYs() argument 99 final float lighter = Math.max(y1, y2); in contrastYs() 100 final float darker = (lighter == y1) ? y2 : y1; in contrastYs()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 154 audio_sample_t y1 = mDelays[0][2]; in process_normal_mono() local 167 acc = mac_coef_sample(a1, y1, acc); in process_normal_mono() 170 y2 = y1; in process_normal_mono() 171 y1 = y0; in process_normal_mono() 178 mDelays[0][2] = y1; in process_normal_mono() 212 audio_sample_t y1 = mDelays[ch][2]; in process_normal_multi() local 220 acc = mac_coef_sample(a1, y1, acc); in process_normal_multi() 223 y2 = y1; in process_normal_multi() 224 y1 = y0; in process_normal_multi() 233 mDelays[ch][2] = y1; in process_normal_multi()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | motion_comp.cpp | 1126 ULong x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvBy1x1() local 1153 y1 = *((ULong*)(prev += 4)); /* a7 a6 a5 a4 */ in GetPredAdvBy1x1() 1164 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ in GetPredAdvBy1x1() 1166 y1 = y1 ^(y1m << 2); in GetPredAdvBy1x1() 1169 y1 += y2; in GetPredAdvBy1x1() 1192 y2 |= (y1 << 24); in GetPredAdvBy1x1() 1201 y2 = y1 >> 8; in GetPredAdvBy1x1() 1205 y1 += y2; in GetPredAdvBy1x1() 1206 y1 += rnd2; in GetPredAdvBy1x1() 1207 y1 &= (mask << 2); in GetPredAdvBy1x1() [all …]
|
/frameworks/compile/slang/tests/F_root_compute_really_bad/ |
D | root_compute_really_bad.rscript | 4 int root(int ain, int aout, int usrData, float x1, double y1, 11 const double* y1, uint32_t y) { 15 root_kernel(int ain, int* aout, int usrData, float x1, double y1,
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | convolve5x5.rscript | 34 uint32_t y1 = max((int32_t)y-1, 0); 45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5] 46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6] 47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7] 48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8] 49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
|
D | convolve3x3.rscript | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | convolve5x5.rscript | 34 uint32_t y1 = max((int32_t)y-1, 0); 45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5] 46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6] 47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7] 48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8] 49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
|
D | convolve3x3.rscript | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | convolve5x5.rscript | 34 uint32_t y1 = max((int32_t)y-1, 0); 45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5] 46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6] 47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7] 48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8] 49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
|
D | convolve3x3.rscript | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/frameworks/native/libs/tonemap/ |
D | tonemap.cpp | 334 double y1 = x1; in lookupTonemapGain() local 336 double y2 = y1 + (metadata.displayMaxLuminance - y1) * 0.75; in lookupTonemapGain() 342 double m1 = (y2 - y1) / h12; in lookupTonemapGain() 352 double slope = (y1 - y0) / (x1 - x0); in lookupTonemapGain() 357 targetNits = (y1 * (1.0 + 2.0 * t) + h12 * m1 * t) * (1.0 - t) * in lookupTonemapGain() 387 double y1 = maxOutLumi * 0.15; in lookupTonemapGain() local 393 double c1 = y1 / 3.0; in lookupTonemapGain() 407 t * t * y1; in lookupTonemapGain() 411 targetNits = (1.0 - t) * (1.0 - t) * y1 + 2.0 * (1.0 - t) * t * c2 + in lookupTonemapGain() 641 const double y1 = x1; in lookupTonemapGain() local [all …]
|
/frameworks/av/media/module/codecs/amrnb/enc/src/ |
D | g_pitch.cpp | 301 Word16 y1[], /* i : Filtered adaptive codebook. Q12 */ in G_pitch() argument 319 Word16 *p_y1 = &y1[0]; in G_pitch() 350 p_y1 = &y1[0]; in G_pitch() 372 p_y1 = &y1[0]; in G_pitch() 404 p_y1 = &y1[0]; in G_pitch()
|
/frameworks/base/core/java/android/view/animation/ |
D | PathInterpolator.java | 129 float y1 = a.getFloat(R.styleable.PathInterpolator_controlY1, 0); in parseInterpolatorFromTypeArray() local 140 initQuad(x1, y1); in parseInterpolatorFromTypeArray() 144 initCubic(x1, y1, x2, y2); in parseInterpolatorFromTypeArray() 156 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument 159 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()
|
/frameworks/rs/toolkit/ |
D | Convolve3x3.cpp | 28 extern "C" void rsdIntrinsicConvolve3x3_K(void* dst, const void* y0, const void* y1, const void* y2, 177 uint32_t y1 = std::min((int32_t)currentY + 1, (int32_t)(sizeY - 1)); in RsdCpuScriptIntrinsicConvolve3x3_kernelF() local 181 const T* py2 = (const T*)(pin + stride * y1); in RsdCpuScriptIntrinsicConvolve3x3_kernelF() 194 uint32_t y1 = std::min((int32_t)y + 1, (int32_t)(sizeY - 1)); in convolveU() local 201 InputOutputType* py2 = (InputOutputType*)(pin + stride * y1); in convolveU() 213 uint32_t y1 = std::min((int32_t)y + 1, (int32_t)(sizeY - 1)); in convolveU4() local 220 const uchar* py2 = pin + stride * y1; in convolveU4()
|
D | Convolve5x5.cpp | 28 extern "C" void rsdIntrinsicConvolve5x5_K(void* dst, const void* y0, const void* y1, const void* y2, 203 uint32_t y1 = std::max((int32_t)currentY - 1, 0); in kernelF4() local 209 const float4* py1 = (const float4*)(pin + stride * y1); in kernelF4() 225 uint32_t y1 = std::max((int32_t)currentY - 1, 0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2() local 231 const float2* py1 = (const float2*)(pin + stride * y1); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2() 247 uint32_t y1 = std::max((int32_t)currentY - 1, 0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1() local 253 const float* py1 = (const float*)(pin + stride * y1); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1() 270 uint32_t y1 = std::max((int32_t)y - 1, 0); in convolveU() local 278 InputOutputType* py1 = (InputOutputType*)(pin + stride * y1); in convolveU() 295 uint32_t y1 = std::max((int32_t)y - 1, 0); in convolveU4() local [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicConvolve3x3.cpp | 80 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, const void *y1, 191 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU4() local 195 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1); in kernelU4() 238 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU2() local 242 const uchar2 *py2 = (const uchar2 *)(pin + stride * y1); in kernelU2() 283 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU1() local 287 const uchar *py2 = (const uchar *)(pin + stride * y1); in kernelU1() 328 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelF4() local 332 const float4 *py2 = (const float4 *)(pin + stride * y1); in kernelF4() 373 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelF2() local [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | DistortionMapper.cpp | 502 const float &y1 = quad.coords[1]; in findEnclosingQuad() local 518 float s1 = (x - x1) * (y2 - y1) - (y - y1) * (x2 - x1); in findEnclosingQuad() 524 float s4 = (x - x4) * (y1 - y4) - (y - y4) * (x1 - x4); in findEnclosingQuad() 536 const float &y1 = quad.coords[1]; in calculateUorV() local 544 float a = (x1 - x2) * (y1 - y2 + y3 - y4) - (y1 - y2) * (x1 - x2 + x3 - x4); in calculateUorV() 545 float b = (x - x1) * (y1 - y2 + y3 - y4) + (x1 - x2) * (y4 - y1) - in calculateUorV() 546 (y - y1) * (x1 - x2 + x3 - x4) - (y1 - y2) * (x4 - x1); in calculateUorV() 547 float c = (x - x1) * (y4 - y1) - (y - y1) * (x4 - x1); in calculateUorV()
|