/frameworks/wilhelm/src/ |
H A D | locks.c | 27 #define LIKELY_VALID(ptr) (((ptr) != (pthread_t) 0) && ((((size_t) (ptr)) & 3) == 0))
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 107 void *ptr; variable 299 frame - (unsigned char *) ptr, framelen, filelen); 305 frame - (unsigned char *) ptr, filelen); 431 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 432 if (ptr == MAP_FAILED) { 436 frame = (unsigned char *) ptr; 649 frame - (unsigned char *) ptr); 848 ok = munmap(ptr, statbuf.st_size);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 142 const unsigned char *ptr = (unsigned char *) temp; local 144 ssize_t actual = audio_utils_fifo_write(&fifo, ptr, (size_t) count); 151 ptr += actual * sfframesize;
|
H A D | playbq.cpp | 142 const unsigned char *ptr = (unsigned char *) temp; local 144 ssize_t actual = audio_utils_fifo_write(&fifo, ptr, (size_t) count); 151 ptr += actual * sfframesize;
|
H A D | xaplay.c | 333 void *ptr; local 334 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 335 if (ptr == MAP_FAILED) { 344 packets = (MPEG2TS_Packet *) ptr;
|
/frameworks/wilhelm/tools/permute/ |
H A D | permute.c | 241 void *ptr = malloc(sfinfo_in.frames * frameSizeRead); local 242 assert(NULL != ptr); 244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames); 270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 42 void *ptr = nullptr; \ 54 ptr = _env->GetFloatArrayElements((jfloatArray)data, flag); \ 57 srcPtr = ptr; \ 62 ptr = malloc (len * typeBytes); \ 64 copyWithPadding(ptr, srcPtr, mSize, count); \ 68 copyWithUnPadding(srcPtr, ptr, mSize, count); \ 70 free(ptr); \ 71 ptr = srcPtr; \ 75 _env->ReleaseFloatArrayElements((jfloatArray)data, (jfloat *)ptr, relFlag); \ 79 ptr 319 copyWithPadding(void* ptr, void* srcPtr, int mSize, int count) argument 331 copyWithUnPadding(void* ptr, void* srcPtr, int mSize, int count) argument 858 jint *ptr = _env->GetIntArrayElements(data, NULL); local 903 jint *ptr = NULL; local 1180 jbyte *ptr = _env->GetByteArrayElements(data, nullptr); local 1450 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 1465 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 1516 jbyte *ptr = _env->GetByteArrayElements(data, NULL); local 1548 jbyte *ptr = _env->GetByteArrayElements(params, NULL); local 1605 jbyte *ptr = _env->GetByteArrayElements(params, NULL); local 2230 void* ptr = NULL; local 2256 void* ptr = NULL; local [all...] |
/frameworks/rs/api/ |
H A D | rs_allocation_create.spec | 168 arg: void* ptr
|
/frameworks/rs/cpp/ |
H A D | Allocation.cpp | 192 static void copyWithPadding(void* ptr, const void* srcPtr, int mSize, int count) { argument 195 uint8_t *dst = static_cast<uint8_t *>(ptr); 204 static void copyWithUnPadding(void* ptr, const void* srcPtr, int mSize, int count) { argument 207 uint8_t *dst = static_cast<uint8_t *>(ptr); 230 void *ptr = malloc(eSize * count); local 231 copyWithPadding(ptr, data, eSize / 4, count); 233 count, ptr, count * mType->getElement()->getSizeBytes())); 234 free(ptr); 253 void *ptr = malloc(eSize * count); local 255 count, ptr, coun 297 void *ptr = malloc(eSize * w * h); local 326 void *ptr = malloc(eSize * w * h); local 381 void *ptr = malloc(eSize * w * h * d); local 409 void *ptr = malloc(eSize * w * h * d); local [all...] |
/frameworks/rs/cpp/util/ |
H A D | StrongPointer.h | 108 void set_pointer(T* ptr); 207 void sp<T>::set_pointer(T* ptr) { argument 208 m_ptr = ptr;
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuRuntimeMath.cpp | 133 float SC_frexpf(float v, int* ptr) {return frexpf(v, ptr);} argument 138 float SC_lgammaf_r(float v, int* ptr) {return lgammaf_r(v, ptr);} argument 143 float SC_modff(float v, float* ptr) {return modff(v, ptr);} argument 147 float SC_remquof(float t, float v, int* ptr) {return remquof(t, v, ptr);} argument
|
H A D | rsCpuScript.cpp | 918 void *ptr = nullptr; local 921 ptr = data->mHal.drvState.lod[0].mallocPtr; 923 memcpy(destPtr, &ptr, sizeof(void *)); 952 Allocation * RsdCpuScriptImpl::getAllocationForPointer(const void *ptr) const { 953 if (!ptr) { 960 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { 964 ALOGE("rsGetAllocation, failed to find %p", ptr);
|
H A D | rsCpuScript.h | 101 Allocation * getAllocationForPointer(const void *ptr) const override;
|
H A D | rsCpuScriptGroup2.cpp | 57 const uint8_t* ptr = (uint8_t*)(a->mHal.drvState.lod[0].mallocPtr) + local 60 ptr += a->mHal.drvState.lod[0].stride * kinfo->current.y; 62 mutable_kinfo->inPtr[i] = ptr; 69 const uint8_t* ptr = (uint8_t *)(out->mHal.drvState.lod[0].mallocPtr) + local 72 ptr += out->mHal.drvState.lod[0].stride * kinfo->current.y; 76 mutable_kinfo->outPtr[0] = const_cast<uint8_t*>(ptr);
|
H A D | rsd_cpu.h | 76 virtual Allocation * getAllocationForPointer(const void *ptr) const = 0;
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; local 95 ptr += face * alloc->mHal.drvState.faceOffset; 96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 98 ptr += xoff * alloc->mHal.state.elementSizeBytes; 99 return ptr; 103 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 116 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); 306 const Type *type, uint8_t *ptr, size_t requiredAlignment) { 348 alloc->mHal.drvState.lod[0].mallocPtr = ptr; 305 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr, size_t requiredAlignment) argument 361 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 368 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); local 393 uint8_t * ptr = nullptr; local 614 uint8_t *ptr = (uint8_t *)realloc(oldPtr, s); local 876 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 995 const uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 1159 uint8_t * ptr = GetOffsetPtr(alloc, x, y, z, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 1178 uint8_t * ptr = GetOffsetPtr(alloc, x, y, z, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local [all...] |
H A D | rsdBcc.cpp | 176 const void *ptr) { 178 return cs->getAllocationForPointer(ptr); 174 rsdScriptGetAllocationForPointer(const android::renderscript::Context *dc, const android::renderscript::Script *sc, const void *ptr) argument
|
H A D | rsdCore.cpp | 368 void rsdFreeRuntimeMem(void* ptr) { argument 369 free(ptr);
|
H A D | rsdCore.h | 50 void rsdFreeRuntimeMem(void* ptr);
|
H A D | rsdMeshObj.cpp | 143 // update attributes with either buffer information or data ptr based on their current state 151 mAttribs[ct].ptr = nullptr; 154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr;
|
H A D | rsdRuntimeStubs.cpp | 154 const Allocation * rsGetAllocation(const void *ptr) { argument 157 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 163 const android::renderscript::rs_allocation rsGetAllocation(const void *ptr) { argument 166 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 322 void *ptr) { 341 (uintptr_t) ptr); 384 uint32_t usages, void *ptr) { 388 usages, ptr); 411 void *ptr) { 415 usages, ptr); 320 CreateAllocation( RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, void *ptr) argument 382 rsCreateAllocation(::rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, void *ptr) argument 409 rsCreateAllocation( ::rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, void *ptr) argument 498 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x, uint32_t y, uint32_t z) argument 506 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x, uint32_t y) argument 510 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x) argument [all...] |
H A D | rsdVertexArray.cpp | 49 ptr = nullptr; 70 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p", 74 mAttribs[idx].ptr, 115 mAttribs[ct].ptr + mAttribs[ct].offset);
|
H A D | rsdVertexArray.h | 36 const uint8_t * ptr; member in class:RsdVertexArray::Attrib
|
/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 280 rsSetElementAt(rs_allocation a, void* ptr, uint32_t x) { argument 284 memcpy((void*)&p[eSize * x], ptr, eSize); 288 rsSetElementAt(rs_allocation a, void* ptr, uint32_t x, uint32_t y) { argument 293 memcpy((void*)&p[(eSize * x) + (y * stride)], ptr, eSize); 297 rsSetElementAt(rs_allocation a, void* ptr, uint32_t x, uint32_t y, uint32_t z) { argument 303 memcpy((void*)&p[(eSize * x) + (y * stride) + (z * stride * dimY)], ptr, eSize); 508 void *ptr);
|
H A D | rs_cl.c | 552 float __attribute__((overloadable)) lgamma(float v, int* ptr) { argument 553 return SC_lgammaf_r(v, ptr);
|