Home
last modified time | relevance | path

Searched refs:dim (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/media/mca/filterpacks/native/base/
Dvec_types.h23 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/
DAudioCoefInterpolator.cpp35 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/
Dtextures.cpp63 GLint dim = w<h ? w : h; in main() local
106 glDrawTexiOES(0, 0, 0, dim/2, dim/2); in main()
109 glDrawTexiOES(dim/2, 0, 0, dim/2, dim/2); in main()
112 glDrawTexiOES(0, dim/2, 0, dim/2, dim/2); in main()
115 glDrawTexiOES(dim/2, dim/2, 0, dim/2, dim/2); in main()
/frameworks/ml/nn/common/operations/
DActivation.cpp73 Dims<4> dim; in softmaxFloat32() local
80 dim = convertShapeToDims(shapeIn4D); in softmaxFloat32()
82 dim = convertShapeToDims(inputShape); in softmaxFloat32()
88 optimized_ops::Softmax(inputData, dim, beta, in softmaxFloat32()
89 outputData, dim); in softmaxFloat32()
164 Dims<4> dim; in softmaxQuant8() local
171 dim = convertShapeToDims(shapeIn4D); in softmaxQuant8()
173 dim = convertShapeToDims(inputShape); in softmaxQuant8()
199 optimized_ops::Softmax(inputData, dim, input_multiplier, in softmaxQuant8()
201 outputData, dim); in softmaxQuant8()
DSimpleMath.cpp200 Dims<4> dim = convertShapeToDims(shape); in floorFloat32() local
201 optimized_ops::Floor(inputData, dim, outputData, dim); in floorFloat32()
208 Dims<4> dim = convertShapeToDims(shape); in dequantizeQuant8ToFloat32() local
209 optimized_ops::Dequantize(inputData, dim, in dequantizeQuant8ToFloat32()
211 outputData, dim); in dequantizeQuant8ToFloat32()
/frameworks/native/opengl/tests/filter/
Dfilter.cpp68 GLint dim = w<h ? w : h; in main() local
143 const GLfloat fdim = dim; in main()
163 glScissor(0,dim,dim,h-dim); in main()
166 for (int y=0 ; y<dim ; y++) { in main()
173 glDrawTexiOES(0, y, 1, dim, dim); in main()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp121 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 …]
DrsCpuIntrinsicConvolve5x5.cpp90 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 …]
DrsCpuScript.cpp561 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup()
580 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup()
581 mtls->redp.dim.y = inType->getDimY(); in reduceMtlsSetup()
582 mtls->redp.dim.z = inType->getDimZ(); in reduceMtlsSetup()
593 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup()
638 mtls->dimPtr = &mtls->fep.dim; in forEachMtlsSetup()
664 mtls->fep.dim.x = inType->getDimX(); in forEachMtlsSetup()
665 mtls->fep.dim.y = inType->getDimY(); in forEachMtlsSetup()
666 mtls->fep.dim.z = inType->getDimZ(); in forEachMtlsSetup()
679 mtls->fep.dim.x = outType->getDimX(); in forEachMtlsSetup()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp89 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/
DToGrayValuesFilter.java85 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()
DFrame.java162 int[] dim = mBackingStore.getDimensions(); in getDimensions() local
163 return dim != null ? Arrays.copyOf(dim, dim.length) : null; in getDimensions()
DFrameBuffer1D.java98 for (int dim : dimensions) { in updateLength()
99 mLength *= dim; in updateLength()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_math_agree.java99 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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_math_agree.java124 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/ComputePerf/src/com/example/android/rs/computeperf/
DLaunchTest.java31 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()
Dlaunchtest.rs20 const int dim = 2048;
24 for (int i=0; i<dim; i++) {
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_math_agree.java126 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/native/opengl/tests/hwc/
DhwcCommit.cpp167 void setSourceDim(HwcTestDim dim);
727 HwcTestDim dim(w, startDim.height()); in dfMinWidth() local
728 Rectangle rect(format, dim); in dfMinWidth()
751 HwcTestDim dim(startDim.width(), h); in dfMinHeight() local
752 Rectangle rect(format, dim); in dfMinHeight()
775 HwcTestDim dim(w, startDim.height()); in dfMaxWidth() local
776 Rectangle rect(format, dim); in dfMaxWidth()
798 HwcTestDim dim(startDim.width(), h); in dfMaxHeight() local
799 Rectangle rect(format, dim); in dfMaxHeight()
833 HwcTestDim dim(w, h); in dfMinDim() local
[all …]
DhwcTestLib.cpp263 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/
Drs_core.c209 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/
DCropView.java306 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/
DLoaderRaw.java53 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/av/media/libstagefright/codecs/amrwbenc/src/
Dqpisf_2s.c41 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()
/frameworks/base/rs/java/android/renderscript/
DType.java395 public Builder setArray(int dim, int value) { in setArray() argument
396 if(dim < 0 || dim >= mMaxArrays) { in setArray()
399 mArray[dim] = value; in setArray()

12