/frameworks/base/media/mca/filterpacks/native/base/ |
D | vec_types.h | 23 template < class T, int dim> 26 T data[dim]; 28 VecBase<T,dim>& operator = (const VecBase<T, dim> &x) { 29 memcpy(data, x.data, sizeof(T)*dim); 42 for (int i = 0; i < dim; ++i) in Length() 48 template < class T, int dim> 49 class Vec : public VecBase<T,dim> { 52 Vec<T,dim>& operator = (const Vec<T, dim> &x) { 53 memcpy(this->data, x.data, sizeof(T)*dim); 58 template <class T, int dim> [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioCoefInterpolator.cpp | 35 size_t dim = nInDims - 1; in AudioCoefInterpolator() local 37 while (dim-- > 0) { in AudioCoefInterpolator() 38 mInDimOffsets[dim] = mInDimOffsets[dim + 1] * mInDims[dim + 1]; in AudioCoefInterpolator() 45 size_t dim = mNumInDims; in getCoef() local 46 while (dim-- > 0) { in getCoef() 47 if (CC_UNLIKELY(intCoord[dim] < 0)) { in getCoef() 48 fracCoord[dim] = 0; in getCoef() 49 } else if (CC_UNLIKELY(intCoord[dim] >= (int)mInDims[dim] - 1)) { in getCoef() 50 fracCoord[dim] = 0; in getCoef() 51 index += mInDimOffsets[dim] * (mInDims[dim] - 1); in getCoef() [all …]
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 63 GLint dim = w<h ? w : h; in main() local 100 glDrawTexiOES(0, 0, 0, dim/2, dim/2); in main() 103 glDrawTexiOES(dim/2, 0, 0, dim/2, dim/2); in main() 106 glDrawTexiOES(0, dim/2, 0, dim/2, dim/2); in main() 109 glDrawTexiOES(dim/2, dim/2, 0, dim/2, dim/2); in main()
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 68 GLint dim = w<h ? w : h; in main() local 144 const GLfloat fdim = dim; in main() 165 glScissor(0,dim,dim,h-dim); in main() 168 for (int y=0 ; y<dim ; y++) { in main() 175 glDrawTexiOES(0, y, 1, dim, dim); in main()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlur.cpp | 121 validY = rsMin(validY, (int)(info->dim.y- 1)); in OneVU4() 139 validY = rsMin(validY, (int)(info->dim.y - 1)); in OneVU1() 261 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU4() 276 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU1() 308 if (gArchUseSIMD && info->dim.x >= 4) { in kernelU4() 310 info->dim.x, info->dim.y, in kernelU4() 316 if (info->dim.x > 2048) { in kernelU4() 317 if ((info->dim.x > cp->mScratchSize[info->lid]) || !cp->mScratch[info->lid]) { in kernelU4() 319 cp->mScratch[info->lid] = realloc(cp->mScratch[info->lid], (info->dim.x + 1) * 16); in kernelU4() 320 cp->mScratchSize[info->lid] = info->dim.x; in kernelU4() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 90 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU4() 91 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU4() 133 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU2() 134 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU2() 176 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU1() 177 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU1() 219 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF4() 220 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF4() 261 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF2() 262 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF2() [all …]
|
D | rsCpuScript.cpp | 562 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup() 581 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup() 582 mtls->redp.dim.y = inType->getDimY(); in reduceMtlsSetup() 583 mtls->redp.dim.z = inType->getDimZ(); in reduceMtlsSetup() 594 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup() 639 mtls->dimPtr = &mtls->fep.dim; in forEachMtlsSetup() 665 mtls->fep.dim.x = inType->getDimX(); in forEachMtlsSetup() 666 mtls->fep.dim.y = inType->getDimY(); in forEachMtlsSetup() 667 mtls->fep.dim.z = inType->getDimZ(); in forEachMtlsSetup() 680 mtls->fep.dim.x = outType->getDimX(); in forEachMtlsSetup() [all …]
|
D | rsCpuIntrinsicConvolve3x3.cpp | 89 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU4() 111 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU2() 132 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU1() 151 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF4() 162 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF2() 173 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF1() 191 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU4() 238 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU2() 283 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU1() 328 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelF4() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ToGrayValuesFilter.java | 85 int[] dim = inputImage.getDimensions(); in onProcess() local 91 int modular = dim[0] % 4; in onProcess() 92 int[] outDim = new int[] {dim[0] - modular, dim[1]}; in onProcess() 98 mShader.setSourceQuad(Quad.fromRect(0f, 0f, ((float)outDim[0])/dim[0], 1f)); in onProcess() 106 outputFrame = outPort.fetchAvailableFrame(dim).asFrameBuffer2D(); in onProcess()
|
D | Frame.java | 162 int[] dim = mBackingStore.getDimensions(); in getDimensions() local 163 return dim != null ? Arrays.copyOf(dim, dim.length) : null; in getDimensions()
|
D | FrameBuffer1D.java | 98 for (int dim : dimensions) { in updateLength() 99 mLength *= dim; in updateLength()
|
D | BrightnessFilter.java | 81 int[] dim = inputImage.getDimensions(); in onProcess() local 82 FrameImage2D outputImage = outPort.fetchAvailableFrame(dim).asFrameImage2D(); in onProcess()
|
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/ |
D | LaunchTest.java | 31 final int dim = mScript.get_dim(); in LaunchTest() local 33 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim); in LaunchTest() 35 tb.setX(dim); in LaunchTest() 36 tb.setY(dim); in LaunchTest()
|
D | launchtest.rscript | 20 const int dim = 2048; 24 for (int i=0; i<dim; i++) {
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_math_agree.java | 124 private float[] randvec_float(int dim) { in randvec_float() argument 125 float[] fv = new float[dim]; in randvec_float() 126 for (int i = 0; i < dim; ++i) in randvec_float() 131 private byte[] randvec_char(int dim) { in randvec_char() argument 132 byte[] cv = new byte[dim]; in randvec_char() 137 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 138 short[] ucv = new short[dim]; in randvec_uchar() 139 for (int i = 0; i < dim; ++i) in randvec_uchar() 144 private short[] randvec_short(int dim) { in randvec_short() argument 145 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 126 private float[] randvec_float(int dim) { in randvec_float() argument 127 float[] fv = new float[dim]; in randvec_float() 128 for (int i = 0; i < dim; ++i) in randvec_float() 133 private byte[] randvec_char(int dim) { in randvec_char() argument 134 byte[] cv = new byte[dim]; in randvec_char() 139 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 140 short[] ucv = new short[dim]; in randvec_uchar() 141 for (int i = 0; i < dim; ++i) in randvec_uchar() 146 private short[] randvec_short(int dim) { in randvec_short() argument 147 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 99 private float[] randvec_float(int dim) { in randvec_float() argument 100 float[] fv = new float[dim]; in randvec_float() 101 for (int i = 0; i < dim; ++i) in randvec_float() 105 private byte[] randvec_char(int dim) { in randvec_char() argument 106 byte[] cv = new byte[dim]; in randvec_char() 110 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 111 short[] ucv = new short[dim]; in randvec_uchar() 112 for (int i = 0; i < dim; ++i) in randvec_uchar() 116 private short[] randvec_short(int dim) { in randvec_short() argument 117 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 167 void setSourceDim(HwcTestDim dim); 729 HwcTestDim dim(w, startDim.height()); in dfMinWidth() local 730 Rectangle rect(format, dim); in dfMinWidth() 753 HwcTestDim dim(startDim.width(), h); in dfMinHeight() local 754 Rectangle rect(format, dim); in dfMinHeight() 777 HwcTestDim dim(w, startDim.height()); in dfMaxWidth() local 778 Rectangle rect(format, dim); in dfMaxWidth() 800 HwcTestDim dim(startDim.width(), h); in dfMaxHeight() local 801 Rectangle rect(format, dim); in dfMaxHeight() 835 HwcTestDim dim(w, h); in dfMinDim() local [all …]
|
D | hwcTestLib.cpp | 263 HwcTestDim dim; in hwcTestParseDim() local 273 if (!in || ((chStart != '<') && (chStart != '['))) { return dim; } in hwcTestParseDim() 277 if (!in) { return dim; } in hwcTestParseDim() 278 dim.setWidth(val); in hwcTestParseDim() 280 if (!in || (ch != ',')) { return dim; } in hwcTestParseDim() 284 if (!in) { return dim; } in hwcTestParseDim() 285 dim.setHeight(val); in hwcTestParseDim() 289 if (!in) { return dim; } in hwcTestParseDim() 291 || ((chStart == '[') && (ch != ']'))) { return dim; } in hwcTestParseDim() 294 if ((dim.width() <= 0) || (dim.height() <= 0)) { return dim; } in hwcTestParseDim() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_core.c | 209 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.x; in rsGetDimX() 213 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.y; in rsGetDimY() 217 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.z; in rsGetDimZ() 221 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[0]; in rsGetDimArray0() 225 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[1]; in rsGetDimArray1() 229 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[2]; in rsGetDimArray2() 233 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[3]; in rsGetDimArray3() 237 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.face != 0; in rsGetDimHasFaces() 241 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.lod; in rsGetDimLod()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 306 for (int dim = 0; dim <= 1; dim++) { in onTouchEvent() 307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderRaw.java | 53 String[] dim = prop.getProperty("dim").split("x"); in buildRSVolume() local 55 v.mDimx = Integer.parseInt(dim[0]); in buildRSVolume() 56 v.mDimy = Integer.parseInt(dim[1]); in buildRSVolume() 57 v.mDimz = Integer.parseInt(dim[2]); in buildRSVolume()
|
/frameworks/base/tools/stringslint/ |
D | stringslint.py | 39 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False): argument 49 elif dim: codes.append("2") 63 if not actual is None: value += "\n\tActual: %s%s%s" % (format(dim=True), 66 if not expected is None: value += "\n\tExample: %s%s%s" % (format(dim=True),
|
/frameworks/base/rs/java/android/renderscript/ |
D | Type.java | 400 public Builder setArray(int dim, int value) { in setArray() argument 401 if(dim < 0 || dim >= mMaxArrays) { in setArray() 404 mArray[dim] = value; in setArray()
|
/frameworks/av/media/codecs/amrwb/enc/src/ |
D | qpisf_2s.c | 41 Word16 dim, /* input : dimention of vector */ 446 Word16 dim, /* input : dimention of vector */ in Sub_VQ() argument 463 for (j = 0; j < dim; j++) in Sub_VQ() 479 p_dico = &dico[index * dim]; in Sub_VQ() 480 for (j = 0; j < dim; j++) in Sub_VQ() 492 Word16 dim, /* input : dimention of vector */ in VQ_stage1() argument 516 for (j = 0; j < dim; j++) in VQ_stage1()
|