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

/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java310 * @param dimX ignored.
312 public synchronized void resize(int dimX) { argument
H A DType.java259 * @param dimX The X dimension, must be > 0
263 static public Type createX(RenderScript rs, Element e, int dimX) { argument
264 if (dimX < 1) {
268 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0);
271 t.mDimX = dimX;
282 * @param dimX The X dimension, must be > 0
287 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { argument
288 if ((dimX < 1) || (dimY < 1)) {
292 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0);
295 t.mDimX = dimX;
313 createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) argument
[all...]
H A DAllocation.java1530 * @param dimX The new size of the allocation.
1536 public synchronized void resize(int dimX) { argument
1543 mRS.nAllocationResize1D(getID(mRS), dimX);
H A DRenderScript.java636 native void rsnAllocationResize1D(long con, long id, int dimX); argument
637 synchronized void nAllocationResize1D(long id, int dimX) { argument
639 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.h46 uint32_t dimX; member in struct:android::renderscript::Type::Hal::State
71 uint32_t getDimX() const {return mHal.state.dimX;}
108 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const;
109 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const;
121 static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, uint32_t dimX, uint32_t dimY = 0) {
124 p.dimX = dimX;
H A DrsAllocation.h88 uint32_t dimX; member in struct:android::renderscript::Allocation::Hal::DrvState::LodState
126 void resize1D(Context *rsc, uint32_t dimX);
127 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
H A DrsType.cpp78 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1;
102 uint32_t tx = mHal.state.dimX;
155 mHal.state.dimX,
171 stream->addU32(mHal.state.dimX);
196 p.dimX = stream->loadU32();
235 if (t->getDimX() != params->dimX) continue;
268 nt->mHal.state.dimX = params->dimX;
296 ObjectBaseRef<Type> Type::cloneAndResize1D(Context *rsc, uint32_t dimX) const {
299 p.dimX
306 cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const argument
364 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 DrsInternalDefines.h215 uint32_t dimX; member in struct:__anon1597
H A DrsAllocation.cpp262 if (x >= mHal.drvState.lod[0].dimX) {
297 if (x >= mHal.drvState.lod[0].dimX) {
549 void Allocation::resize1D(Context *rsc, uint32_t dimX) { argument
550 uint32_t oldDimX = mHal.drvState.lod[0].dimX;
551 if (dimX == oldDimX) {
555 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX);
556 if (dimX < oldDimX) {
557 decRefs(rsc->mHal.funcs.allocation.lock1D(rsc, this), oldDimX - dimX, dimX);
565 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_ argument
709 rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) argument
714 rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DType.java206 * @param dimX The X dimension, must be > 0
210 static public Type createX(RenderScript rs, Element e, int dimX) { argument
211 if (dimX < 1) {
215 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0);
218 t.mDimX = dimX;
229 * @param dimX The X dimension, must be > 0
234 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { argument
235 if ((dimX < 1) || (dimY < 1)) {
239 long id = rs.nTypeCreate(e.getID(rs), dimX, dimY, 0, false, false, 0);
242 t.mDimX = dimX;
260 createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) argument
[all...]
H A DRenderScript.java591 native void rsnAllocationResize1D(long con, long id, int dimX); argument
592 synchronized void nAllocationResize1D(long id, int dimX) { argument
594 rsnAllocationResize1D(mContext, id, dimX);
596 native void rsnAllocationResize2D(long con, long id, int dimX, int dimY); argument
597 synchronized void nAllocationResize2D(long id, int dimX, int dimY) { argument
599 rsnAllocationResize2D(mContext, id, dimX, dimY);
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/
H A DFilters.java122 dimX, dimY, 0.5f, 0.5f, 0.5f, Sampler.CLAMP_LINEAR(mRS));
140 private final int dimX=1067, dimY=1600; field in class:Filters.FisheyeFilter
/frameworks/rs/driver/runtime/
H A Drs_structs.h66 uint32_t dimX; member in struct:Allocation::__anon1565::DrvState::LodState
254 uint32_t dimX; member in struct:Type::__anon1575::__anon1576
/frameworks/rs/driver/
H A DrsdAllocation.cpp221 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY);
267 state->lod[1].dimX = state->lod[0].dimX / 2;
269 state->lod[2].dimX = state->lod[0].dimX / 2;
289 //state->lod[1].dimX = state->lod[0].dimX;
308 alloc->mHal.drvState.lod[0].dimX = type->getDimX();
313 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes();
330 uint32_t tx = alloc->mHal.drvState.lod[0].dimX;
577 const uint32_t dimX = newType->getDimX(); local
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp1372 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1375 (RsAllocation)alloc, dimX);
1376 dispatchTab.AllocationResize1D((RsContext)con, (RsAllocation)alloc, dimX);
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1502 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX) argument
1506 (RsAllocation)alloc, dimX);
1508 rsAllocationResize1D((RsContext)con, (RsAllocation)alloc, dimX);

Completed in 4353 milliseconds