Lines Matching refs:ptr

40     void *ptr = nullptr;                                                                \
52 ptr = _env->GetFloatArrayElements((jfloatArray)data, flag); \
55 srcPtr = ptr; \
60 ptr = malloc (len * typeBytes); \
62 copyWithPadding(ptr, srcPtr, mSize, count); \
66 copyWithUnPadding(srcPtr, ptr, mSize, count); \
68 free(ptr); \
69 ptr = srcPtr; \
73 _env->ReleaseFloatArrayElements((jfloatArray)data, (jfloat *)ptr, relFlag); \
77 ptr = _env->GetDoubleArrayElements((jdoubleArray)data, flag); \
80 srcPtr = ptr; \
85 ptr = malloc (len * typeBytes); \
87 copyWithPadding(ptr, srcPtr, mSize, count); \
91 copyWithUnPadding(srcPtr, ptr, mSize, count); \
93 free(ptr); \
94 ptr = srcPtr; \
98 _env->ReleaseDoubleArrayElements((jdoubleArray)data, (jdouble *)ptr, relFlag); \
103 ptr = _env->GetByteArrayElements((jbyteArray)data, flag); \
106 srcPtr = ptr; \
111 ptr = malloc (len * typeBytes); \
113 copyWithPadding(ptr, srcPtr, mSize, count); \
117 copyWithUnPadding(srcPtr, ptr, mSize, count); \
119 free(ptr); \
120 ptr = srcPtr; \
124 _env->ReleaseByteArrayElements((jbyteArray)data, (jbyte*)ptr, relFlag); \
129 ptr = _env->GetShortArrayElements((jshortArray)data, flag); \
132 srcPtr = ptr; \
137 ptr = malloc (len * typeBytes); \
139 copyWithPadding(ptr, srcPtr, mSize, count); \
143 copyWithUnPadding(srcPtr, ptr, mSize, count); \
145 free(ptr); \
146 ptr = srcPtr; \
150 _env->ReleaseShortArrayElements((jshortArray)data, (jshort *)ptr, relFlag); \
155 ptr = _env->GetIntArrayElements((jintArray)data, flag); \
158 srcPtr = ptr; \
163 ptr = malloc (len * typeBytes); \
165 copyWithPadding(ptr, srcPtr, mSize, count); \
169 copyWithUnPadding(srcPtr, ptr, mSize, count); \
171 free(ptr); \
172 ptr = srcPtr; \
176 _env->ReleaseIntArrayElements((jintArray)data, (jint *)ptr, relFlag); \
181 ptr = _env->GetLongArrayElements((jlongArray)data, flag); \
184 srcPtr = ptr; \
189 ptr = malloc (len * typeBytes); \
191 copyWithPadding(ptr, srcPtr, mSize, count); \
195 copyWithUnPadding(srcPtr, ptr, mSize, count); \
197 free(ptr); \
198 ptr = srcPtr; \
202 _env->ReleaseLongArrayElements((jlongArray)data, (jlong *)ptr, relFlag); \
207 UNUSED(len, ptr, srcPtr, typeBytes, relFlag); \
309 static void copyWithPadding(void* ptr, void* srcPtr, int mSize, int count) {
312 uint8_t *dst = static_cast<uint8_t *>(ptr);
321 static void copyWithUnPadding(void* ptr, void* srcPtr, int mSize, int count) {
324 uint8_t *dst = static_cast<uint8_t *>(ptr);
866 jint *ptr = _env->GetIntArrayElements(data, NULL);
870 ptr, len * 4,
877 _env->ReleaseIntArrayElements(data, ptr, 0);
911 jint *ptr = NULL;
915 jint *ptr = _env->GetIntArrayElements(data, NULL);
918 dispatchTab.ContextSendMessage((RsContext)con, id, (const uint8_t *)ptr, len * sizeof(int));
920 _env->ReleaseIntArrayElements(data, ptr, JNI_ABORT);
1024 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)",
1176 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1188 jbyte *ptr = _env->GetByteArrayElements(data, nullptr);
1190 lod, ptr, sizeBytes, compIdx);
1191 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1204 jbyte *ptr = _env->GetByteArrayElements(data, nullptr);
1207 lod, ptr, sizeBytes, compIdx);
1208 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1224 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
1263 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0);
1297 (RsContext)con, alloc, ptr, len * typeBytes);
1310 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1324 jbyte *ptr = _env->GetByteArrayElements(data, nullptr);
1327 lod, ptr, sizeBytes, compIdx);
1328 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1344 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
1360 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0);
1458 jbyte *ptr = _env->GetByteArrayElements(data, NULL);
1460 dispatchTabInc.ScriptSetVarV((RsContext)con, (RsScript)script, slot, ptr, len);
1462 dispatchTab.ScriptSetVarV((RsContext)con, (RsScript)script, slot, ptr, len);
1464 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1473 jbyte *ptr = _env->GetByteArrayElements(data, NULL);
1477 dispatchTabInc.ScriptSetVarVE((RsContext)con, (RsScript)script, slot, ptr, len, (RsElement)elem,
1480 dispatchTab.ScriptSetVarVE((RsContext)con, (RsScript)script, slot, ptr, len, (RsElement)elem,
1483 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1524 jbyte *ptr = _env->GetByteArrayElements(data, NULL);
1526 dispatchTabInc.ScriptInvokeV((RsContext)con, (RsScript)script, slot, ptr, len);
1528 dispatchTab.ScriptInvokeV((RsContext)con, (RsScript)script, slot, ptr, len);
1530 _env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
1555 jbyte *ptr = _env->GetByteArrayElements(params, NULL);
1560 ptr, len, NULL, 0);
1564 ptr, len, NULL, 0);
1566 _env->ReleaseByteArrayElements(params, ptr, JNI_ABORT);
1606 jbyte *ptr = _env->GetByteArrayElements(params, NULL);
1621 ptr, len, &sc, sizeof(sc));
1625 ptr, len, &sc, sizeof(sc));
1627 _env->ReleaseByteArrayElements(params, ptr, JNI_ABORT);
1926 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)",