Home
last modified time | relevance | path

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

/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
Dalloc.rs4 int dimX;
17 for (i = 0; i < dimX; i++) {
18 a[i + j * dimX] = i + j * dimX;
23 _RS_ASSERT(rsAllocationGetDimX(alloc) == dimX);
29 for (i = 0; i < dimX; i++) {
30 rsDebug("Verifying ", i + j * dimX);
33 _RS_ASSERT(val == (i + j * dimX));
38 for (i = 0; i < dimX * dimY; i++) {
47 for (i = 0; i < dimX; i++) {
48 rsDebug("Verifying ", i + j * dimX);
[all …]
Dforeach.rs4 int dimX;
8 *out = x + y * dimX;
16 for (i = 0; i < dimX; i++) {
17 _RS_ASSERT(a[i + j * dimX] == (i + j * dimX));
/frameworks/base/libs/rs/
DrsType.cpp210 uint32_t dimX, uint32_t dimY, uint32_t dimZ, in getTypeRef() argument
220 if (t->getDimX() != dimX) continue; in getTypeRef()
235 nt->mDimX = dimX; in getTypeRef()
249 ObjectBaseRef<Type> Type::cloneAndResize1D(Context *rsc, uint32_t dimX) const { in cloneAndResize1D()
250 return getTypeRef(rsc, mElement.get(), dimX, in cloneAndResize1D()
255 uint32_t dimX, in cloneAndResize2D() argument
257 return getTypeRef(rsc, mElement.get(), dimX, dimY, in cloneAndResize2D()
267 RsType rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, in rsi_TypeCreate() argument
271 return Type::getType(rsc, e, dimX, dimY, dimZ, mips, faces); in rsi_TypeCreate()
DrsType.h65 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const;
66 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const;
69 uint32_t dimX, uint32_t dimY, uint32_t dimZ,
73 uint32_t dimX, uint32_t dimY, uint32_t dimZ, in getType() argument
75 ObjectBaseRef<Type> type = getTypeRef(rsc, e, dimX, dimY, dimZ, dimLOD, dimFaces); in getType()
DrsAllocation.cpp306 void Allocation::resize1D(Context *rsc, uint32_t dimX) { in resize1D() argument
308 if (dimX == oldDimX) { in resize1D()
312 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX); in resize1D()
313 if (dimX < oldDimX) { in resize1D()
314 decRefs(getPtr(), oldDimX - dimX, dimX); in resize1D()
321 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) { in resize2D() argument
454 void rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) { in rsi_AllocationResize1D() argument
456 a->resize1D(rsc, dimX); in rsi_AllocationResize1D()
459 void rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) { in rsi_AllocationResize2D() argument
461 a->resize2D(rsc, dimX, dimY); in rsi_AllocationResize2D()
DrsAllocation.h80 void resize1D(Context *rsc, uint32_t dimX);
81 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
Drs.spec32 param uint32_t dimX
206 param uint32_t dimX
211 param uint32_t dimX
/frameworks/base/libs/rs/driver/
DrsdBcc.cpp213 uint32_t dimX; member
241 uint32_t offset = mtls->dimX * p.y; in wc_xy()
310 mtls.dimX = ain->getType()->getDimX(); in rsdScriptInvokeForEach()
315 mtls.dimX = aout->getType()->getDimX(); in rsdScriptInvokeForEach()
325 mtls.xEnd = mtls.dimX; in rsdScriptInvokeForEach()
327 rsAssert(sc->xStart < mtls.dimX); in rsdScriptInvokeForEach()
328 rsAssert(sc->xEnd <= mtls.dimX); in rsdScriptInvokeForEach()
330 mtls.xStart = rsMin(mtls.dimX, sc->xStart); in rsdScriptInvokeForEach()
331 mtls.xEnd = rsMin(mtls.dimX, sc->xEnd); in rsdScriptInvokeForEach()
398 uint32_t offset = mtls.dimX * mtls.dimY * mtls.dimZ * p.ar[0] + in rsdScriptInvokeForEach()
[all …]
DrsdAllocation.cpp294 const uint32_t dimX = newType->getDimX(); in rsdAllocationResize() local
296 if (dimX > oldDimX) { in rsdAllocationResize()
299 memset(((uint8_t *)drv->mallocPtr) + stride * oldDimX, 0, stride * (dimX - oldDimX)); in rsdAllocationResize()
/frameworks/compile/libbcc/lib/ScriptCRT/
Drs_core.c288 const uint32_t dimX = alloc->mHal.state.dimensionX; in rsGetElementAt() local
289 return &p[eSize * (x + y * dimX)]; in rsGetElementAt()
297 const uint32_t dimX = alloc->mHal.state.dimensionX; in rsGetElementAt() local
299 return &p[eSize * (x + y * dimX + z * dimX * dimY)]; in rsGetElementAt()
/frameworks/base/graphics/java/android/renderscript/
DRenderScript.java379 native void rsnAllocationResize1D(int con, int id, int dimX); in rsnAllocationResize1D() argument
380 synchronized void nAllocationResize1D(int id, int dimX) { in nAllocationResize1D() argument
382 rsnAllocationResize1D(mContext, id, dimX); in nAllocationResize1D()
384 native void rsnAllocationResize2D(int con, int id, int dimX, int dimY); in rsnAllocationResize2D() argument
385 synchronized void nAllocationResize2D(int id, int dimX, int dimY) { in nAllocationResize2D() argument
387 rsnAllocationResize2D(mContext, id, dimX, dimY); in nAllocationResize2D()
DAllocationAdapter.java244 public synchronized void resize(int dimX) { in resize() argument
DAllocation.java826 public synchronized void resize(int dimX) { in resize() argument
830 mRS.nAllocationResize1D(getID(), dimX); in resize() local
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp688 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) in nAllocationResize1D() argument
690 LOG_API("nAllocationResize1D, con(%p), alloc(%p), sizeX(%i)", con, (RsAllocation)alloc, dimX); in nAllocationResize1D()
691 rsAllocationResize1D(con, (RsAllocation)alloc, dimX); in nAllocationResize1D()
695 nAllocationResize2D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX, jint dimY) in nAllocationResize2D() argument
697 …locationResize1D, con(%p), alloc(%p), sizeX(%i), sizeY(%i)", con, (RsAllocation)alloc, dimX, dimY); in nAllocationResize2D()
698 rsAllocationResize2D(con, (RsAllocation)alloc, dimX, dimY); in nAllocationResize2D()