Home
last modified time | relevance | path

Searched refs:dimX (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/rs/script_api/include/
Drs_allocation_create.rsh83 * dimX specifies the size of the X dimension.
99 * dimX: Size along the X dimension
108 rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps,
114 rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ);
119 rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY);
124 rsCreateType(rs_element element, uint32_t dimX);
159 rsCreateAllocation_half(uint32_t dimX, uint32_t dimY, uint32_t dimZ) {
161 rs_type t = rsCreateType(e, dimX, dimY, dimZ);
168 rsCreateAllocation_float(uint32_t dimX, uint32_t dimY, uint32_t dimZ) {
170 rs_type t = rsCreateType(e, dimX, dimY, dimZ);
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dalloc.rscript4 int dimX;
14 *o = x + y * dimX;
21 _RS_ASSERT(rsAllocationGetDimX(aRaw) == dimX);
27 for (i = 0; i < dimX; i++) {
28 rsDebug("Verifying ", i + j * dimX);
31 _RS_ASSERT(val == (i + j * dimX));
36 for (i = 0; i < dimX; i++) {
45 for (i = 0; i < dimX; i++) {
46 rsDebug("Verifying ", i + j * dimX);
49 _RS_ASSERT(val == (i + j * dimX));
[all …]
Dforeach.rscript4 int dimX;
9 *out = x + y * dimX;
17 for (i = 0; i < dimX; i++) {
19 _RS_ASSERT(v == (i + j * dimX));
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dalloc.rscript4 int dimX;
14 *o = x + y * dimX;
21 _RS_ASSERT(rsAllocationGetDimX(aRaw) == dimX);
27 for (i = 0; i < dimX; i++) {
28 rsDebug("Verifying ", i + j * dimX);
31 _RS_ASSERT(val == (i + j * dimX));
36 for (i = 0; i < dimX; i++) {
45 for (i = 0; i < dimX; i++) {
46 rsDebug("Verifying ", i + j * dimX);
49 _RS_ASSERT(val == (i + j * dimX));
[all …]
Dforeach.rscript4 int dimX;
9 *out = x + y * dimX;
13 _RS_ASSERT(*in == (x + y * dimX));
14 *out = 99 + x + y * dimX;
15 _RS_ASSERT(*out == (99 + x + y * dimX));
23 for (i = 0; i < dimX; i++) {
25 _RS_ASSERT(v == (i + j * dimX));
44 for (i = 0; i < dimX; i++) {
46 _RS_ASSERT(v == (99 + i + j * dimX));
Dnoroot.rscript4 int dimX;
9 *out = 99 + x + y * dimX;
17 for (i = 0; i < dimX; i++) {
19 _RS_ASSERT(v == (99 + i + j * dimX));
Darray_alloc.rscript3 const int dimX = 20;
4 rs_allocation a[dimX];
9 for (int i = 0; i < dimX; i++) {
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dalloc.rscript4 int dimX;
14 *o = x + y * dimX;
21 _RS_ASSERT(rsAllocationGetDimX(aRaw) == dimX);
27 for (i = 0; i < dimX; i++) {
28 rsDebug("Verifying ", i + j * dimX);
31 _RS_ASSERT(val == (i + j * dimX));
36 for (i = 0; i < dimX; i++) {
45 for (i = 0; i < dimX; i++) {
46 rsDebug("Verifying ", i + j * dimX);
49 _RS_ASSERT(val == (i + j * dimX));
[all …]
Dforeach.rscript4 int dimX;
9 *out = x + y * dimX;
17 for (i = 0; i < dimX; i++) {
19 _RS_ASSERT(v == (i + j * dimX));
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dalloc_supportlib.rscript20 int dimX;
30 *o = x + y * dimX;
37 _RS_ASSERT(rsAllocationGetDimX(aRaw) == dimX);
43 for (i = 0; i < dimX; i++) {
44 rsDebug("Verifying ", i + j * dimX);
47 _RS_ASSERT(val == (i + j * dimX));
52 for (i = 0; i < dimX; i++) {
61 for (i = 0; i < dimX; i++) {
62 rsDebug("Verifying ", i + j * dimX);
65 _RS_ASSERT(val == (i + j * dimX));
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dalloc_supportlib.rscript22 int dimX;
32 *o = x + y * dimX;
39 _RS_ASSERT(rsAllocationGetDimX(aRaw) == dimX);
45 for (i = 0; i < dimX; i++) {
46 rsDebug("Verifying ", i + j * dimX);
49 _RS_ASSERT(val == (i + j * dimX));
54 for (i = 0; i < dimX; i++) {
63 for (i = 0; i < dimX; i++) {
64 rsDebug("Verifying ", i + j * dimX);
67 _RS_ASSERT(val == (i + j * dimX));
[all …]
Dforeach.rscript22 int dimX;
27 *out = x + y * dimX;
31 _RS_ASSERT(*in == (x + y * dimX));
32 *out = 99 + x + y * dimX;
33 _RS_ASSERT(*out == (99 + x + y * dimX));
41 for (i = 0; i < dimX; i++) {
43 _RS_ASSERT(v == (i + j * dimX));
62 for (i = 0; i < dimX; i++) {
64 _RS_ASSERT(v == (99 + i + j * dimX));
DUT_reduce_backward.java124 final int dimX = 450, dimY = 225; in addint2D() local
126 final int[] inputArray = createInputArrayInt(dimX * dimY, 1, 1 << 13); in addint2D()
128 typeBuilder.setX(dimX).setY(dimY); in addint2D()
130 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in addint2D()
195 final int dimX = 225, dimY = 450; in fz2() local
196 final int inputLen = dimX * dimY; in fz2()
203 typeBuilder.setX(dimX).setY(dimY); in fz2()
205 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in fz2()
209 final int cellVal = inputArray[rsRslt.x + dimX * rsRslt.y]; in fz2()
220 final int dimX = 59, dimY = 48, dimZ = 37; in fz3() local
[all …]
Dsingle_source_script.rscript21 int dimX;
54 for (i = 0; i < dimX; i++) {
56 int expected = (i + j * dimX) * 4;
60 expected += (i + j * dimX) + 1;
88 for (i = 0; i < dimX; i++) {
90 rsSetElementAt_int(in, j * dimX + i, i, j);
99 opts.xEnd = dimX;
109 opts2.xEnd = dimX;
DUT_array_alloc.java37 int dimX = s.get_dimX(); in run() local
38 Allocation[] Arr = new Allocation[dimX]; in run()
41 for (int i = 0; i < dimX; i++) { in run()
49 for (int i = 0; i < dimX; i++) { in run()
/frameworks/rs/support/java/src/androidx/renderscript/
DType.java215 static public Type createX(RenderScript rs, Element e, int dimX) { in createX() argument
216 if (dimX < 1) { in createX()
220 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0); in createX()
223 t.mDimX = dimX; in createX()
239 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { in createXY() argument
240 if ((dimX < 1) || (dimY < 1)) { in createXY()
244 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0); in createXY()
247 t.mDimX = dimX; in createXY()
265 static public Type createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) { in createXYZ() argument
266 if ((dimX < 1) || (dimY < 1) || (dimZ < 1)) { in createXYZ()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dforeach.rscript20 int dimX;
25 *out = x + y * dimX;
29 _RS_ASSERT(*in == (x + y * dimX));
30 *out = 99 + x + y * dimX;
31 _RS_ASSERT(*out == (99 + x + y * dimX));
39 for (i = 0; i < dimX; i++) {
41 _RS_ASSERT(v == (i + j * dimX));
60 for (i = 0; i < dimX; i++) {
62 _RS_ASSERT(v == (99 + i + j * dimX));
Dsingle_source_script.rscript19 int dimX;
52 for (i = 0; i < dimX; i++) {
54 int expected = (i + j * dimX) * 4;
58 expected += (i + j * dimX) + 1;
86 for (i = 0; i < dimX; i++) {
88 rsSetElementAt_int(in, j * dimX + i, i, j);
97 opts.xEnd = dimX;
107 opts2.xEnd = dimX;
DUT_reduce_backward.java122 final int dimX = 450, dimY = 225; in addint2D() local
124 final int[] inputArray = createInputArrayInt(dimX * dimY, 1, 1 << 13); in addint2D()
126 typeBuilder.setX(dimX).setY(dimY); in addint2D()
128 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in addint2D()
193 final int dimX = 225, dimY = 450; in fz2() local
194 final int inputLen = dimX * dimY; in fz2()
201 typeBuilder.setX(dimX).setY(dimY); in fz2()
203 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in fz2()
207 final int cellVal = inputArray[rsRslt.x + dimX * rsRslt.y]; in fz2()
218 final int dimX = 59, dimY = 48, dimZ = 37; in fz3() local
[all …]
DUT_array_alloc.java35 int dimX = s.get_dimX(); in run() local
36 Allocation[] Arr = new Allocation[dimX]; in run()
39 for (int i = 0; i < dimX; i++) { in run()
47 for (int i = 0; i < dimX; i++) { in run()
DUT_small_struct.java29 private static final int dimX = 3; field in UT_small_struct
37 s.set_gDimX(dimX); in initializeGlobals()
41 builderA.setX(dimX); in initializeGlobals()
48 builderB.setX(dimX); in initializeGlobals()
/frameworks/base/rs/java/android/renderscript/
DType.java268 static public Type createX(RenderScript rs, Element e, int dimX) { in createX() argument
269 if (dimX < 1) { in createX()
273 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0); in createX()
276 t.mDimX = dimX; in createX()
292 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { in createXY() argument
293 if ((dimX < 1) || (dimY < 1)) { in createXY()
297 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0); in createXY()
300 t.mDimX = dimX; in createXY()
318 static public Type createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) { in createXYZ() argument
319 if ((dimX < 1) || (dimY < 1) || (dimZ < 1)) { in createXYZ()
[all …]
/frameworks/rs/script_api/
Drs_allocation_create.spec79 arg: uint32_t dimX, "Size along the X dimension"
89 dimX specifies the size of the X dimension.
109 arg: uint32_t dimX
119 arg: uint32_t dimX
128 arg: uint32_t dimX
176 arg: uint32_t dimX
181 rs_type t = rsCreateType(e, dimX, dimY, dimZ);
191 arg: uint32_t dimX
196 rs_type t = rsCreateType(e, dimX, dimY, dimZ);
205 arg: uint32_t dimX
[all …]
/frameworks/rs/
DrsType.cpp77 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1; in compute()
101 uint32_t tx = mHal.state.dimX; in compute()
155 mHal.state.dimX, in dumpLOGV()
171 stream->addU32(mHal.state.dimX); in serialize()
196 p.dimX = stream->loadU32(); in createFromStream()
235 if (t->getDimX() != params->dimX) continue; in getTypeRef()
268 nt->mHal.state.dimX = params->dimX; in getTypeRef()
296 ObjectBaseRef<Type> Type::cloneAndResize1D(Context *rsc, uint32_t dimX) const { in cloneAndResize1D()
299 p.dimX = dimX; in cloneAndResize1D()
307 uint32_t dimX, in cloneAndResize2D() argument
[all …]
DrsType.h48 uint32_t dimX; member
73 uint32_t getDimX() const {return mHal.state.dimX;} in getDimX()
110 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const;
111 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const;
123 …static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, uint32_t dimX, uint32_t dimY…
126 p.dimX = dimX;

12345