Lines Matching refs:ptr
193 static void copyWithPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithPadding() argument
196 uint8_t *dst = static_cast<uint8_t *>(ptr); in copyWithPadding()
205 static void copyWithUnPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithUnPadding() argument
208 uint8_t *dst = static_cast<uint8_t *>(ptr); in copyWithUnPadding()
231 void *ptr = malloc(eSize * count); in copy1DRangeFrom() local
232 copyWithPadding(ptr, data, eSize / 4, count); in copy1DRangeFrom()
234 … count, ptr, count * mType->getElement()->getSizeBytes())); in copy1DRangeFrom()
235 free(ptr); in copy1DRangeFrom()
254 void *ptr = malloc(eSize * count); in copy1DRangeTo() local
256 … count, ptr, count * mType->getElement()->getSizeBytes())); in copy1DRangeTo()
257 copyWithUnPadding(data, ptr, eSize / 4, count); in copy1DRangeTo()
258 free(ptr); in copy1DRangeTo()
298 void *ptr = malloc(eSize * w * h); in copy2DRangeFrom() local
299 copyWithPadding(ptr, data, eSize / 4, w * h); in copy2DRangeFrom()
302 … w, h, ptr, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom()
304 free(ptr); in copy2DRangeFrom()
327 void *ptr = malloc(eSize * w * h); in copy2DRangeTo() local
329 mSelectedLOD, mSelectedFace, w, h, ptr, in copy2DRangeTo()
332 copyWithUnPadding(data, ptr, eSize / 4, w * h); in copy2DRangeTo()
333 free(ptr); in copy2DRangeTo()
382 void *ptr = malloc(eSize * w * h * d); in copy3DRangeFrom() local
383 copyWithPadding(ptr, data, eSize / 4, w * h * d); in copy3DRangeFrom()
385 mSelectedLOD, w, h, d, ptr, in copy3DRangeFrom()
388 free(ptr); in copy3DRangeFrom()
410 void *ptr = malloc(eSize * w * h * d); in copy3DRangeTo() local
412 mSelectedLOD, w, h, d, ptr, in copy3DRangeTo()
415 copyWithUnPadding(data, ptr, eSize / 4, w * h * d); in copy3DRangeTo()
416 free(ptr); in copy3DRangeTo()