Home
last modified time | relevance | path

Searched refs:dim (Results 1 – 25 of 48) 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/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.cpp124 validY = rsMin(validY, (int)(info->dim.y- 1)); in OneVU4()
142 validY = rsMin(validY, (int)(info->dim.y - 1)); in OneVU1()
256 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU4()
271 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU1()
300 if (gArchUseSIMD && info->dim.x >= 4) { in kernelU4()
302 info->dim.x, info->dim.y, in kernelU4()
308 if (info->dim.x > 2048) { in kernelU4()
309 if ((info->dim.x > cp->mScratchSize[info->lid]) || !cp->mScratch[info->lid]) { in kernelU4()
311 cp->mScratch[info->lid] = realloc(cp->mScratch[info->lid], (info->dim.x + 1) * 16); in kernelU4()
312 cp->mScratchSize[info->lid] = info->dim.x; in kernelU4()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp96 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU4()
97 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU4()
139 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU2()
140 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU2()
182 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU1()
183 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU1()
225 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF4()
226 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF4()
267 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF2()
268 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF2()
[all …]
DrsCpuScript.cpp565 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup()
584 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup()
585 mtls->redp.dim.y = inType->getDimY(); in reduceMtlsSetup()
586 mtls->redp.dim.z = inType->getDimZ(); in reduceMtlsSetup()
597 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup()
642 mtls->dimPtr = &mtls->fep.dim; in forEachMtlsSetup()
662 mtls->fep.dim.x = inType->getDimX(); in forEachMtlsSetup()
663 mtls->fep.dim.y = inType->getDimY(); in forEachMtlsSetup()
664 mtls->fep.dim.z = inType->getDimZ(); in forEachMtlsSetup()
677 mtls->fep.dim.x = outType->getDimX(); in forEachMtlsSetup()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp96 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU4()
118 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU2()
139 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU1()
158 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF4()
169 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF2()
180 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF1()
198 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU4()
245 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU2()
290 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU1()
335 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/java/tests/RSTest_CompatLib/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/java/tests/RsTest/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/java/tests/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/java/tests/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/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/base/docs/html/training/system-ui/
Ddim.jd13 <li><a href="#dim">Dim the Status and Navigation Bars</a></li>
44 <p>This lesson describes how to dim the system bars (that is, the status and the navigation
45 bars) on Android 4.0 (API level 14) and higher. Android does not provide a built-in way to dim the
54 <h2 id="dim">Dim the Status and Navigation Bars</h2>
56 <p>You can dim the status and notification bars using the
68 it if you want to dim the bars again.</p>
71 completely hides the status bar; it doesn't dim it). Notice that the navigation bar (right
/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/core/java/android/text/method/
DDigitsKeyListener.java118 DigitsKeyListener dim = new DigitsKeyListener(); in getInstance() local
120 dim.mAccepted = new char[accepted.length()]; in getInstance()
121 accepted.getChars(0, accepted.length(), dim.mAccepted, 0); in getInstance()
123 return dim; in getInstance()
/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/java/tests/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.java396 public Builder setArray(int dim, int value) { in setArray() argument
397 if(dim < 0 || dim >= mMaxArrays) { in setArray()
400 mArray[dim] = value; in setArray()

12