/frameworks/rs/script_api/include/ |
D | rs_allocation_create.rsh | 83 * 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/ |
D | alloc.rscript | 4 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 …]
|
D | foreach.rscript | 4 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/ |
D | alloc.rscript | 4 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 …]
|
D | foreach.rscript | 4 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));
|
D | noroot.rscript | 4 int dimX; 9 *out = 99 + x + y * dimX; 17 for (i = 0; i < dimX; i++) { 19 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | array_alloc.rscript | 3 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/ |
D | alloc.rscript | 4 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 …]
|
D | foreach.rscript | 4 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/ |
D | alloc_supportlib.rscript | 20 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/ |
D | alloc_supportlib.rscript | 22 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 …]
|
D | foreach.rscript | 22 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));
|
D | UT_reduce_backward.java | 124 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 …]
|
D | single_source_script.rscript | 21 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;
|
D | UT_array_alloc.java | 37 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/ |
D | Type.java | 215 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/ |
D | foreach.rscript | 20 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));
|
D | single_source_script.rscript | 19 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;
|
D | UT_reduce_backward.java | 122 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 …]
|
D | UT_array_alloc.java | 35 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()
|
D | UT_small_struct.java | 29 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/ |
D | Type.java | 268 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/ |
D | rs_allocation_create.spec | 79 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/ |
D | rsType.cpp | 77 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 …]
|
D | rsType.h | 48 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;
|