/frameworks/rs/cpp/ |
D | ScriptIntrinsics.cpp | 48 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 …]
|
D | Allocation.cpp | 76 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/ |
D | ScriptIntrinsicHistogram.java | 88 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 …]
|
D | ScriptIntrinsicColorMatrix.java | 245 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 …]
|
D | Allocation.java | 260 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 …]
|
D | ScriptIntrinsic3DLUT.java | 70 if (!t.getElement().isCompatible(mElement)) { in setLUT()
|
D | ScriptIntrinsicResize.java | 51 Element e = ain.getElement(); in setInput()
|
D | ScriptIntrinsicBlend.java | 44 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/ |
D | Allocation.java | 177 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 …]
|
D | ScriptIntrinsicBlend.java | 49 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend() 52 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
|
D | ScriptIntrinsic3DLUT.java | 79 if (!t.getElement().isCompatible(mElement)) { in setLUT()
|
D | TypeThunker.java | 47 mElement = new ElementThunker(rs, t.getElement()); in TypeThunker()
|
D | Type.java | 83 public Element getElement() { in getElement() method in Type
|
/frameworks/rs/ |
D | rsAllocation.cpp | 63 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 …]
|
D | rsType.cpp | 230 if (t->getElement() != e) continue; in getTypeRef() 351 (*typeData++) = (uintptr_t)t->getElement(); in rsaTypeGetNativeData() 352 t->getElement()->incUserRef(); in rsaTypeGetNativeData()
|
D | rsType.h | 66 const Element * getElement() const {return mElement.get();} in getElement() function
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicHistogram.cpp | 105 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()
|
D | rsCpuIntrinsicColorMatrix.cpp | 944 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/ |
D | Shader.java | 71 Element constElem = mPerShaderConstants.getElement(); in linkConstants()
|
D | Renderable.java | 182 Element vertexConst = vertexConstants.getType().getElement(); in updateVertexConstants() 195 Element fragmentConst = fragmentConstants.getType().getElement(); in updateFragmentConstants()
|
/frameworks/rs/driver/ |
D | rsdMeshObj.cpp | 78 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()
|
D | rsdAllocation.cpp | 402 … 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()
|
D | rsdShader.cpp | 126 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/ |
D | Resize.java | 49 Type t = Type.createXY(mRS, mInPixelsAllocation.getElement(), in createTest()
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | Resize.java | 49 Type t = Type.createXY(mRS, mInPixelsAllocation.getElement(), in createTest()
|