Searched defs:dimX (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java237 * @param dimX ignored.
239 public synchronized void resize(int dimX) { argument
H A DType.java218 * @param dimX The X dimension, must be > 0
222 static public Type createX(RenderScript rs, Element e, int dimX) { argument
223 if (dimX < 1) {
227 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0);
230 t.mDimX = dimX;
241 * @param dimX The X dimension, must be > 0
246 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { argument
247 if ((dimX < 1) || (dimY < 1)) {
251 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0);
254 t.mDimX = dimX;
272 createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) argument
[all...]
H A DAllocation.java1345 * @param dimX The new size of the allocation.
1351 public synchronized void resize(int dimX) { argument
1358 mRS.nAllocationResize1D(getID(mRS), dimX);
H A DRenderScript.java539 native void rsnAllocationResize1D(long con, long id, int dimX); argument
540 synchronized void nAllocationResize1D(long id, int dimX) { argument
542 rsnAllocationResize1D(mContext, id, dimX);
/frameworks/rs/cpp/
H A DType.cpp102 sp<const Type> Type::create(sp<RS> rs, sp<const Element> e, uint32_t dimX, uint32_t dimY, uint32_t dimZ) { argument
103 void * id = RS::dispatch->TypeCreate(rs->getContext(), e->getID(), dimX, dimY, dimZ, false, false, 0);
107 t->mDimX = dimX;
/frameworks/rs/
H A DrsType.h44 uint32_t dimX; member in struct:android::renderscript::Type::Hal::State
68 uint32_t getDimX() const {return mHal.state.dimX;}
99 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const;
100 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const;
103 uint32_t dimX, uint32_t dimY, uint32_t dimZ,
107 uint32_t dimX, uint32_t dimY, uint32_t dimZ,
109 ObjectBaseRef<Type> type = getTypeRef(rsc, e, dimX, dimY, dimZ, dimLOD, dimFaces, yuv);
H A DrsAllocation.h79 uint32_t dimX; member in struct:android::renderscript::Allocation::Hal::DrvState::LodState
113 void resize1D(Context *rsc, uint32_t dimX);
114 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
H A DrsType.cpp75 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1;
99 uint32_t tx = mHal.state.dimX;
152 mHal.state.dimX,
168 stream->addU32(mHal.state.dimX);
221 uint32_t dimX, uint32_t dimY, uint32_t dimZ,
231 if (t->getDimX() != dimX) continue;
260 nt->mHal.state.dimX = dimX;
274 ObjectBaseRef<Type> Type::cloneAndResize1D(Context *rsc, uint32_t dimX) const {
275 return getTypeRef(rsc, mElement.get(), dimX,
220 getTypeRef(Context *rsc, const Element *e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool dimLOD, bool dimFaces, uint32_t dimYuv) argument
279 cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const argument
330 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument
[all...]
H A DrsAllocation.cpp200 if (x >= mHal.drvState.lod[0].dimX) {
220 if (x >= mHal.drvState.lod[0].dimX) {
468 void Allocation::resize1D(Context *rsc, uint32_t dimX) { argument
469 uint32_t oldDimX = mHal.drvState.lod[0].dimX;
470 if (dimX == oldDimX) {
474 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX);
475 if (dimX < oldDimX) {
476 decRefs(rsc->mHal.funcs.allocation.lock1D(rsc, this), oldDimX - dimX, dimX);
484 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_ argument
625 rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) argument
630 rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) argument
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuCore.h59 uint32_t dimX; member in struct:android::renderscript::__anon1483
/frameworks/rs/driver/runtime/
H A Drs_structs.h54 uint32_t dimX; member in struct:Allocation::__anon1498::DrvState::LodState
239 uint32_t dimX; member in struct:Type::__anon1508::__anon1509
/frameworks/rs/driver/
H A DrsdAllocation.cpp222 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY);
259 state->lod[1].dimX = state->lod[0].dimX / 2;
261 state->lod[2].dimX = state->lod[0].dimX / 2;
281 //state->lod[1].dimX = state->lod[0].dimX;
305 alloc->mHal.drvState.lod[0].dimX = type->getDimX();
310 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes();
327 uint32_t tx = alloc->mHal.drvState.lod[0].dimX;
536 const uint32_t dimX = newType->getDimX(); local
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp675 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) argument
677 LOG_API("nAllocationResize1D, con(%p), alloc(%p), sizeX(%i)", con, (RsAllocation)alloc, dimX);
678 rsAllocationResize1D(con, (RsAllocation)alloc, dimX);
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp817 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
819 LOG_API("nAllocationResize1D, con(%p), alloc(%p), sizeX(%i)", (RsContext)con, (RsAllocation)alloc, dimX);
820 rsAllocationResize1D((RsContext)con, (RsAllocation)alloc, dimX);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java515 native void rsnAllocationResize1D(int con, int id, int dimX); argument
516 synchronized void nAllocationResize1D(int id, int dimX) { argument
518 rsnAllocationResize1D(mContext, id, dimX);
520 native void rsnAllocationResize2D(int con, int id, int dimX, int dimY); argument
521 synchronized void nAllocationResize2D(int id, int dimX, int dimY) { argument
523 rsnAllocationResize2D(mContext, id, dimX, dimY);

Completed in 258 milliseconds