Home
last modified time | relevance | path

Searched refs:getElement (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/rs/cpp/
DScriptIntrinsics.cpp48 if (ain->getType()->getElement()->isCompatible(mElement) == false || in forEach()
49 aout->getType()->getElement()->isCompatible(mElement) == false) { in forEach()
57 if (!t->getElement()->isCompatible(mElement)) { in setLUT()
82 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachClear()
83 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachClear()
90 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachSrc()
91 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachSrc()
98 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachDst()
99 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachDst()
106 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachSrcOver()
[all …]
DAllocation.cpp76 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt32()
84 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt16()
92 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt8()
100 RsDataType dt = mType->getElement()->getDataType(); in validateIsFloat32()
108 RsDataType dt = mType->getElement()->getDataType(); in validateIsObject()
207 … count, data, count * mType->getElement()->getSizeBytes())); in copy1DRangeFrom()
222 … count, data, count * mType->getElement()->getSizeBytes())); in copy1DRangeTo()
258 … w, h, data, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom()
259 w * mType->getElement()->getSizeBytes())); in copy2DRangeFrom()
276 w * h * mType->getElement()->getSizeBytes(), in copy2DRangeTo()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicHistogram.java88 if (ain.getType().getElement().getVectorSize() < in forEach()
89 mOut.getType().getElement().getVectorSize()) { in forEach()
94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach()
95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach()
141 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput()
142 mOut.getType().getElement() != Element.U32_2(mRS) && in setOutput()
143 mOut.getType().getElement() != Element.U32_3(mRS) && in setOutput()
144 mOut.getType().getElement() != Element.U32_4(mRS) && in setOutput()
[all …]
DScriptIntrinsicColorMatrix.java245 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach()
246 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
247 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
248 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach()
249 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach()
250 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach()
251 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach()
252 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach()
257 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach()
258 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
[all …]
DAllocation.java260 public Element getElement() { in getElement() method in Allocation
261 return mType.getElement(); in getElement()
282 return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5); in getBytesSize()
284 return mType.getCount() * mType.getElement().getBytesSize(); in getBytesSize()
334 mSize = mType.getCount() * mType.getElement().getBytesSize(); in Allocation()
541 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) { in validateBitmapFormat()
543 mType.getElement().mKind + ", type " + in validateBitmapFormat()
544 mType.getElement().mType + in validateBitmapFormat()
545 " of " + mType.getElement().getBytesSize() + in validateBitmapFormat()
550 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
[all …]
DScriptIntrinsic3DLUT.java70 if (!t.getElement().isCompatible(mElement)) { in setLUT()
DScriptIntrinsicResize.java51 Element e = ain.getElement(); in setInput()
DScriptIntrinsicBlend.java44 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
47 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DAllocation.java177 public Element getElement() { in getElement() method in Allocation
178 return mType.getElement(); in getElement()
199 return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5); in getBytesSize()
201 return mType.getCount() * mType.getElement().getBytesSize(); in getBytesSize()
243 mSize = mType.getCount() * mType.getElement().getBytesSize(); in Allocation()
404 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) { in validateBitmapFormat()
406 mType.getElement().mKind + ", type " + in validateBitmapFormat()
407 mType.getElement().mType + in validateBitmapFormat()
408 " of " + mType.getElement().getBytesSize() + in validateBitmapFormat()
413 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
[all …]
DScriptIntrinsicBlend.java49 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
52 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
DScriptIntrinsic3DLUT.java79 if (!t.getElement().isCompatible(mElement)) { in setLUT()
DTypeThunker.java47 mElement = new ElementThunker(rs, t.getElement()); in TypeThunker()
DType.java83 public Element getElement() { in getElement() method in Type
/frameworks/rs/
DrsAllocation.cpp63 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
78 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences(); in updateCache()
195 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
205 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
206 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
230 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
235 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
236 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
276 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
281 const Element *elem = type->getElement(); in writePackedData()
[all …]
DrsType.cpp230 if (t->getElement() != e) continue; in getTypeRef()
351 (*typeData++) = (uintptr_t)t->getElement(); in rsaTypeGetNativeData()
352 t->getElement()->incUserRef(); in rsaTypeGetNativeData()
DrsType.h66 const Element * getElement() const {return mElement.get();} in getElement() function
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicHistogram.cpp105 uint32_t vSize = mAllocOut->getType()->getElement()->getVectorSize(); in preLaunch()
126 switch(ain->getType()->getElement()->getVectorSize()) { in preLaunch()
151 uint32_t vSize = mAllocOut->getType()->getElement()->getVectorSize(); in postLaunch()
DrsCpuIntrinsicColorMatrix.cpp944 const Element *ein = ain->mHal.state.type->getElement(); in preLaunch()
945 const Element *eout = aout->mHal.state.type->getElement(); in preLaunch()
961 Key_t key = computeKey(ain->mHal.state.type->getElement(), in preLaunch()
962 aout->mHal.state.type->getElement()); in preLaunch()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DShader.java71 Element constElem = mPerShaderConstants.getElement(); in linkConstants()
DRenderable.java182 Element vertexConst = vertexConstants.getType().getElement(); in updateVertexConstants()
195 Element fragmentConst = fragmentConstants.getType().getElement(); in updateFragmentConstants()
/frameworks/rs/driver/
DrsdMeshObj.cpp78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init()
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init()
DrsdAllocation.cpp402 … if (((alloc->getType()->getDimX() * alloc->getType()->getElement()->getSizeBytes()) % 16) != 0) { in rsdAllocationInit()
447 drv->glType = rsdTypeToGLType(alloc->mHal.state.type->getElement()->getComponent().getType()); in rsdAllocationInit()
448 … drv->glFormat = rsdKindToGLFormat(alloc->mHal.state.type->getElement()->getComponent().getKind()); in rsdAllocationInit()
604 } else if (alloc->getType()->getElement()->getKind() != RS_KIND_PIXEL_RGBA) { in rsdAllocationSyncAll()
729 const Element *e = alloc->mHal.state.type->getElement(); in rsdAllocationSetSurface()
1085 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData1D()
1086 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData1D()
1105 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData2D()
1106 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData2D()
1178 switch (alloc->getType()->getElement()->getSizeBits()) { in rsdAllocationGenerateMipmaps()
DrsdShader.cpp126 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init()
276 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants()
533 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants()
582 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in initAttribAndUniformArray()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DResize.java49 Type t = Type.createXY(mRS, mInPixelsAllocation.getElement(), in createTest()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DResize.java49 Type t = Type.createXY(mRS, mInPixelsAllocation.getElement(), in createTest()

12