Home
last modified time | relevance | path

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

12

/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DAllocation.java158 public Element getElement() { in getElement() method in Allocation
159 return mType.getElement(); in getElement()
180 return mType.getCount() * mType.getElement().getBytesSize(); in getBytesSize()
308 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) { in validateBitmapFormat()
310 mType.getElement().mKind + ", type " + in validateBitmapFormat()
311 mType.getElement().mType + in validateBitmapFormat()
312 " of " + mType.getElement().getBytesSize() + in validateBitmapFormat()
317 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
318 (mType.getElement().getBytesSize() != 4)) { in validateBitmapFormat()
320 mType.getElement().mKind + ", type " + in validateBitmapFormat()
[all …]
DScriptIntrinsicBlend.java46 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
49 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
DType.java72 public Element getElement() { in getElement() method in Type
DScript.java305 public Element getElement() { in getElement() method in Script.FieldBase
/frameworks/base/graphics/java/android/renderscript/
DAllocation.java198 public Element getElement() { in getElement() method in Allocation
199 return mType.getElement(); in getElement()
220 return mType.getCount() * mType.getElement().getBytesSize(); in getBytesSize()
416 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) { in validateBitmapFormat()
418 mType.getElement().mKind + ", type " + in validateBitmapFormat()
419 mType.getElement().mType + in validateBitmapFormat()
420 " of " + mType.getElement().getBytesSize() + in validateBitmapFormat()
425 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
426 (mType.getElement().getBytesSize() != 4)) { in validateBitmapFormat()
428 mType.getElement().mKind + ", type " + in validateBitmapFormat()
[all …]
DScriptIntrinsicBlend.java46 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
49 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
DType.java78 public Element getElement() { in getElement() method in Type
DScript.java305 public Element getElement() { in getElement() method in Script.FieldBase
DProgramVertexFixedFunction.java224 int bufferSize = constInputType.getElement().getBytesSize()* in Constants()
/frameworks/rs/cpp/
DAllocation.cpp81 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt32()
89 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt16()
97 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt8()
105 RsDataType dt = mType->getElement()->getDataType(); in validateIsFloat32()
113 RsDataType dt = mType->getElement()->getDataType(); in validateIsObject()
238 if((count * mType->getElement()->getSizeBytes()) > dataLen) { in copy1DRangeFromUnchecked()
DType.h44 sp<const Element> getElement() const { in getElement() function
DScript.h75 sp<const Element> getElement() { in getElement() function
/frameworks/rs/
DrsAllocation.cpp45 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
62 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences(); in updateCache()
63 mHal.state.eType = mHal.state.type->getElement()->getType(); in updateCache()
150 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
162 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
163 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
190 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
196 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
197 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
237 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
[all …]
DrsType.cpp228 if (t->getElement() != e) continue; in getTypeRef()
328 (*typeData++) = (uint32_t)t->getElement(); in rsaTypeGetNativeData()
329 t->getElement()->incUserRef(); in rsaTypeGetNativeData()
DrsType.h64 const Element * getElement() const {return mElement.get();} in getElement() function
/frameworks/support/renderscript/v8/rs_support/
DrsAllocation.cpp42 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
59 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences(); in updateCache()
145 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
157 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
158 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
185 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
191 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
192 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
218 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
223 const Element *elem = type->getElement(); in writePackedData()
[all …]
DrsType.cpp228 if (t->getElement() != e) continue; in getTypeRef()
328 (*typeData++) = (uint32_t)t->getElement(); in rsaTypeGetNativeData()
329 t->getElement()->incUserRef(); in rsaTypeGetNativeData()
DrsType.h64 const Element * getElement() const {return mElement.get();} in getElement() function
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdAllocation.cpp222 } else if (alloc->getType()->getElement()->getKind() != RS_KIND_PIXEL_RGBA) { in rsdAllocationSyncAll()
430 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData1D()
431 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData1D()
450 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData2D()
451 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData2D()
527 switch (alloc->getType()->getElement()->getSizeBits()) { in rsdAllocationGenerateMipmaps()
/frameworks/rs/driver/
DrsdAllocation.cpp320 drv->glType = rsdTypeToGLType(alloc->mHal.state.type->getElement()->getComponent().getType()); in rsdAllocationInit()
321 … drv->glFormat = rsdKindToGLFormat(alloc->mHal.state.type->getElement()->getComponent().getKind()); in rsdAllocationInit()
431 } else if (alloc->getType()->getElement()->getKind() != RS_KIND_PIXEL_RGBA) { in rsdAllocationSyncAll()
737 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData1D()
738 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData1D()
757 const Element * e = alloc->mHal.state.type->getElement()->getField(cIdx); in rsdAllocationElementData2D()
758 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx); in rsdAllocationElementData2D()
834 switch (alloc->getType()->getElement()->getSizeBits()) { in rsdAllocationGenerateMipmaps()
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()
DrsdShader.cpp126 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init()
276 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants()
529 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants()
578 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in initAttribAndUniformArray()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DRenderable.java182 Element vertexConst = vertexConstants.getType().getElement(); in updateVertexConstants()
195 Element fragmentConst = fragmentConstants.getType().getElement(); in updateFragmentConstants()
DShader.java71 Element constElem = mPerShaderConstants.getElement(); in linkConstants()
/frameworks/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/
DBallsRS.java64 sb.addInput(mPoints.getElement()); in createProgramVertex()

12