Home
last modified time | relevance | path

Searched refs:eSize (Results 1 – 9 of 9) sorted by relevance

/frameworks/rs/cpp/
DAllocation.cpp229 size_t eSize = mType->getElement()->getSizeBytes(); in copy1DRangeFrom() local
230 void *ptr = malloc(eSize * count); in copy1DRangeFrom()
231 copyWithPadding(ptr, data, eSize / 4, count); in copy1DRangeFrom()
252 size_t eSize = mType->getElement()->getSizeBytes(); in copy1DRangeTo() local
253 void *ptr = malloc(eSize * count); in copy1DRangeTo()
256 copyWithUnPadding(data, ptr, eSize / 4, count); in copy1DRangeTo()
296 size_t eSize = mType->getElement()->getSizeBytes(); in copy2DRangeFrom() local
297 void *ptr = malloc(eSize * w * h); in copy2DRangeFrom()
298 copyWithPadding(ptr, data, eSize / 4, w * h); in copy2DRangeFrom()
325 size_t eSize = mType->getElement()->getSizeBytes(); in copy2DRangeTo() local
[all …]
/frameworks/rs/driver/runtime/
Drs_allocation.c195 const uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsGetElementAt() local
196 return &p[eSize * x]; in rsGetElementAt()
203 const uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsGetElementAt() local
205 return &p[(eSize * x) + (y * stride)]; in rsGetElementAt()
212 const uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsGetElementAt() local
215 return &p[(eSize * x) + (y * stride) + (z * stride * dimY)]; in rsGetElementAt()
221 const uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsSetElementAt() local
222 local_memcpy((void*)&p[eSize * x], ptr, eSize); in rsSetElementAt()
229 const uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsSetElementAt() local
231 local_memcpy((void*)&p[(eSize * x) + (y * stride)], ptr, eSize); in rsSetElementAt()
[all …]
/frameworks/rs/rsov/driver/
DrsovAllocation.cpp322 const size_t eSize = alloc->mHal.state.type->getElementSizeBytes(); in rsovAllocationData1D() local
325 size_t size = count * eSize; in rsovAllocationData1D()
341 size_t eSize = alloc->mHal.state.elementSizeBytes; in rsovAllocationData2D() local
342 size_t lineSize = eSize * w; in rsovAllocationData2D()
393 uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsovAllocationData3D() local
394 uint32_t lineSize = eSize * w; in rsovAllocationData3D()
420 const size_t eSize = alloc->mHal.state.type->getElementSizeBytes(); in rsovAllocationRead1D() local
426 memcpy(data, ptr, count * eSize); in rsovAllocationRead1D()
434 size_t eSize = alloc->mHal.state.elementSizeBytes; in rsovAllocationRead2D() local
435 size_t lineSize = eSize * w; in rsovAllocationRead2D()
[all …]
DrsovRuntimeStubs.cpp481 const uint32_t eSize = e->getSizeBytes(); in IS_CLEAR_SET_OBJ() local
484 return &p[(x * eSize) + (y * stride) + (z * stride * dimY)]; in IS_CLEAR_SET_OBJ()
/frameworks/rs/
DrsAllocation.cpp196 const size_t eSize = mHal.state.type->getElementSizeBytes(); in data() local
198 if ((count * eSize) != sizeBytes) { in data()
202 (count * eSize), sizeBytes); in data()
227 const size_t eSize = mHal.state.type->getElementSizeBytes(); in read() local
229 if ((count * eSize) != sizeBytes) { in read()
233 (count * eSize), sizeBytes); in read()
244 const size_t eSize = mHal.state.elementSizeBytes; in read() local
245 const size_t lineSize = eSize * w; in read()
263 const size_t eSize = mHal.state.elementSizeBytes; in read() local
264 const size_t lineSize = eSize * w; in read()
/frameworks/rs/driver/
DrsdAllocation.cpp833 const size_t eSize = alloc->mHal.state.type->getElementSizeBytes(); in rsdAllocationData1D() local
835 size_t size = count * eSize; in rsdAllocationData1D()
853 size_t eSize = alloc->mHal.state.elementSizeBytes; in rsdAllocationData2D() local
854 size_t lineSize = eSize * w; in rsdAllocationData2D()
917 uint32_t eSize = alloc->mHal.state.elementSizeBytes; in rsdAllocationData3D() local
918 uint32_t lineSize = eSize * w; in rsdAllocationData3D()
952 const size_t eSize = alloc->mHal.state.type->getElementSizeBytes(); in rsdAllocationRead1D() local
957 memcpy(data, ptr, count * eSize); in rsdAllocationRead1D()
964 size_t eSize = alloc->mHal.state.elementSizeBytes; in rsdAllocationRead2D() local
965 size_t lineSize = eSize * w; in rsdAllocationRead2D()
[all …]
DrsdRuntimeStubs.cpp509 const uint32_t eSize = e->getSizeBytes(); in IS_CLEAR_SET_OBJ() local
512 return &p[(x * eSize) + (y * stride) + (z * stride * dimY)]; in IS_CLEAR_SET_OBJ()
/frameworks/base/rs/java/android/renderscript/
DAllocation.java1036 int eSize = mType.mElement.getBytesSize(); in setFromFieldPacker() local
1040 int count = data_length / eSize; in setFromFieldPacker()
1041 if ((eSize * count) != data_length) { in setFromFieldPacker()
1043 " not divisible by element size " + eSize + "."); in setFromFieldPacker()
1088 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in setFromFieldPacker() local
1089 eSize *= mType.mElement.mArraySizes[component_number]; in setFromFieldPacker()
1091 if (data_length != eSize) { in setFromFieldPacker()
1093 " does not match component size " + eSize + "."); in setFromFieldPacker()
2045 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in copyToFieldPacker() local
2046 eSize *= mType.mElement.mArraySizes[component_number]; in copyToFieldPacker()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DAllocation.java997 int eSize = mType.mElement.getBytesSize(); in setFromFieldPacker() local
1001 int count = data_length / eSize; in setFromFieldPacker()
1002 if ((eSize * count) != data_length) { in setFromFieldPacker()
1004 " not divisible by element size " + eSize + "."); in setFromFieldPacker()
1028 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in setFromFieldPacker() local
1029 eSize *= mType.mElement.mArraySizes[component_number]; in setFromFieldPacker()
1031 if (data_length != eSize) { in setFromFieldPacker()
1033 " does not match component size " + eSize + "."); in setFromFieldPacker()