Home
last modified time | relevance | path

Searched refs:getSizeBytes (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/rs/
DrsType.cpp97 offset += tx * rsMax(ty, 1u) * rsMax(tz, 1u) * mElement->getSizeBytes(); in compute()
114 offset += x * mElement->getSizeBytes(); in getLODOffset()
120 offset += (x + y * mLODs[lod].mX) * mElement->getSizeBytes(); in getLODOffset()
126 offset += (x + y*mLODs[lod].mX + z*mLODs[lod].mX*mLODs[lod].mY) * mElement->getSizeBytes(); in getLODOffset()
132 offset += (x + y * mLODs[lod].mX) * mElement->getSizeBytes(); in getLODFaceOffset()
135 uint32_t faceOffset = getSizeBytes() / 6; in getLODFaceOffset()
DrsAllocation.cpp70 memcpy(data, getPtr(), mHal.state.type->getSizeBytes()); in read()
127 if (sizeBytes != e->getSizeBytes()) { in elementData()
128 …cation::subElementData data size %i does not match field size %zu.", sizeBytes, e->getSizeBytes()); in elementData()
161 if (sizeBytes != e->getSizeBytes()) { in elementData()
162 …cation::subElementData data size %i does not match field size %zu.", sizeBytes, e->getSizeBytes()); in elementData()
209 uint32_t dataSize = mHal.state.type->getSizeBytes(); in serialize()
235 if (dataSize != type->getSizeBytes()) { in createFromStream()
264 uint32_t stride = e->getSizeBytes(); in incRefs()
280 uint32_t stride = e->getSizeBytes(); in decRefs()
291 decRefs(getPtr(), mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(), 0); in freeChildrenUnlocked()
DrsAdapter.cpp59 mAllocation.get()->getType()->getSizeBytes()); in data()
151 uint32_t totalSizeBytes = mAllocation->getType()->getSizeBytes(); in getElement()
176 mAllocation.get()->getType()->getSizeBytes()); in data()
DrsType.h33 size_t getSizeBytes() const {return mTotalSizeBytes;} in getSizeBytes() function
34 size_t getElementSizeBytes() const {return mElement->getSizeBytes();} in getElementSizeBytes()
DrsElement.cpp65 LOGV("%s Element: fieldCount: %zu, size bytes: %zu", prefix, mFieldCount, getSizeBytes()); in dumpLOGV()
259 p2 += mFields[i].e->getSizeBytes(); in incRefs()
281 p2 += mFields[i].e->getSizeBytes(); in decRefs()
DrsElement.h47 size_t getSizeBytes() const { in getSizeBytes() function
DrsScriptC_LibGL.cpp278 size_t allocSize = a->getType()->getSizeBytes(); in rsrDrawTextAlloc()
307 size_t textLen = a->getType()->getSizeBytes(); in rsrMeasureTextAlloc()
DrsMesh.cpp222 stride = bufferElem->getSizeBytes() / sizeof(float); in computeBBox()
/frameworks/base/graphics/java/android/renderscript/
DAllocation.java298 " of " + mType.getElement().getSizeBytes() + in validateBitmapFormat()
304 (mType.getElement().getSizeBytes() != 4)) { in validateBitmapFormat()
308 " of " + mType.getElement().getSizeBytes() + in validateBitmapFormat()
314 (mType.getElement().getSizeBytes() != 2)) { in validateBitmapFormat()
318 " of " + mType.getElement().getSizeBytes() + in validateBitmapFormat()
324 (mType.getElement().getSizeBytes() != 2)) { in validateBitmapFormat()
328 " of " + mType.getElement().getSizeBytes() + in validateBitmapFormat()
456 int eSize = mType.mElement.getSizeBytes(); in setFromFieldPacker()
484 int eSize = mType.mElement.mElements[component_number].getSizeBytes(); in setFromFieldPacker()
536 int dataSize = mType.mElement.getSizeBytes() * count; in copy1DRangeFromUnchecked()
[all …]
DProgramVertexFixedFunction.java205 int bufferSize = constInputType.getElement().getSizeBytes()* in Constants()
DElement.java55 int getSizeBytes() {return mSize;} in getSizeBytes() method in Element
/frameworks/base/libs/rs/driver/
DrsdAllocation.cpp203 RSD_CALL_GL(glBufferData, drv->glTarget, alloc->mHal.state.type->getSizeBytes(), in UploadToBufferObject()
215 void * ptr = malloc(alloc->mHal.state.type->getSizeBytes()); in rsdAllocationInit()
242 memset(ptr, 0, alloc->mHal.state.type->getSizeBytes()); in rsdAllocationInit()
288 drv->mallocPtr = (uint8_t *)realloc(drv->mallocPtr, newType->getSizeBytes()); in rsdAllocationResize()
298 uint32_t stride = e->getSizeBytes(); in rsdAllocationResize()
442 uint32_t totalSizeBytes = alloc->getType()->getSizeBytes(); in getOffsetPtr()
DrsdMeshObj.cpp107 uint32_t stride = elem->getSizeBytes(); in init()
DrsdShader.cpp252 uint32_t elementSize = field->getSizeBytes() / sizeof(float); in logUniform()