/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; 650 frame - (unsigned char *) ptr); 849 ok = munmap(ptr, statbuf.st_size);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.cpp | 144 const unsigned char *ptr = (unsigned char *) temp; local 146 ssize_t actual = fifoWriter->write(ptr, (size_t) count); 153 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/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 | 130 float SC_frexpf(float v, int* ptr) {return frexpf(v, ptr);} argument 135 float SC_lgammaf_r(float v, int* ptr) {return lgammaf_r(v, ptr);} argument 140 float SC_modff(float v, float* ptr) {return modff(v, ptr);} argument 144 float SC_remquof(float t, float v, int* ptr) {return remquof(t, v, ptr);} argument
|
H A D | rsCpuScript.cpp | 916 void *ptr = nullptr; local 919 ptr = data->mHal.drvState.lod[0].mallocPtr; 921 memcpy(destPtr, &ptr, sizeof(void *)); 950 Allocation * RsdCpuScriptImpl::getAllocationForPointer(const void *ptr) const { 951 if (!ptr) { 958 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { 962 ALOGE("rsGetAllocation, failed to find %p", ptr);
|
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; 75 mutable_kinfo->outPtr[0] = const_cast<uint8_t*>(ptr);
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 87 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; local 88 ptr += face * alloc->mHal.drvState.faceOffset; 89 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 90 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 91 ptr += xoff * alloc->mHal.state.elementSizeBytes; 92 return ptr; 96 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 109 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); 297 const Type *type, uint8_t *ptr, size_t requiredAlignment) { 339 alloc->mHal.drvState.lod[0].mallocPtr = ptr; 296 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr, size_t requiredAlignment) argument 352 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 359 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); local 384 uint8_t * ptr = nullptr; local 604 uint8_t *ptr = (uint8_t *)realloc(oldPtr, s); local 822 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 941 const uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 1105 uint8_t * ptr = GetOffsetPtr(alloc, x, y, z, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local 1124 uint8_t * ptr = GetOffsetPtr(alloc, x, y, z, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); local [all...] |
H A D | rsdBcc.cpp | 175 const void *ptr) { 177 return cs->getAllocationForPointer(ptr); 173 rsdScriptGetAllocationForPointer(const android::renderscript::Context *dc, const android::renderscript::Script *sc, const void *ptr) argument
|
H A D | rsdCore.cpp | 375 void rsdFreeRuntimeMem(void* ptr) { argument 376 free(ptr);
|
H A D | rsdRuntimeStubs.cpp | 170 const Allocation * rsGetAllocation(const void *ptr) { argument 173 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 179 const android::renderscript::rs_allocation rsGetAllocation(const void *ptr) { argument 182 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 338 void *ptr) { 357 (uintptr_t) ptr); 400 uint32_t usages, void *ptr) { 404 usages, ptr); 427 void *ptr) { 431 usages, ptr); 336 CreateAllocation( RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, void *ptr) argument 398 rsCreateAllocation(::rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, void *ptr) argument 425 rsCreateAllocation( ::rs_type type, rs_allocation_mipmap_control mipmaps, uint32_t usages, void *ptr) argument 515 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x, uint32_t y, uint32_t z) argument 523 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x, uint32_t y) argument 527 rsSetElementAt(::rs_allocation a, const void *ptr, uint32_t x) argument [all...] |
H A D | rsdVertexArray.h | 38 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 local_memcpy((void*)&p[eSize * x], ptr, eSize); 288 rsSetElementAt(rs_allocation a, void* ptr, uint32_t x, uint32_t y) { argument 293 local_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 local_memcpy((void*)&p[(eSize * x) + (y * stride) + (z * stride * dimY)], ptr, eSize); 507 void *ptr);
|
H A D | rs_cl.c | 555 float __attribute__((overloadable)) lgamma(float v, int* ptr) { argument 556 return SC_lgammaf_r(v, ptr);
|
H A D | rs_core.c | 44 extern int32_t __attribute__((overloadable)) rsAtomicCas(volatile int32_t *ptr, int32_t expectedValue, int32_t newValue) { argument 45 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); 48 extern uint32_t __attribute__((overloadable)) rsAtomicCas(volatile uint32_t *ptr, uint32_t expectedValue, uint32_t newValue) { argument 49 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); 52 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile int32_t *ptr) { argument 53 return __sync_fetch_and_add(ptr, 1); 56 extern int32_t __attribute__((overloadable)) rsAtomicInc(volatile uint32_t *ptr) { argument 57 return __sync_fetch_and_add(ptr, 1); 60 extern int32_t __attribute__((overloadable)) rsAtomicDec(volatile int32_t *ptr) { argument 61 return __sync_fetch_and_sub(ptr, 64 rsAtomicDec(volatile uint32_t *ptr) argument 68 rsAtomicAdd(volatile int32_t *ptr, int32_t value) argument 72 rsAtomicAdd(volatile uint32_t *ptr, uint32_t value) argument 76 rsAtomicSub(volatile int32_t *ptr, int32_t value) argument 80 rsAtomicSub(volatile uint32_t *ptr, uint32_t value) argument 84 rsAtomicAnd(volatile int32_t *ptr, int32_t value) argument 88 rsAtomicAnd(volatile uint32_t *ptr, uint32_t value) argument 92 rsAtomicOr(volatile int32_t *ptr, int32_t value) argument 96 rsAtomicOr(volatile uint32_t *ptr, uint32_t value) argument 100 rsAtomicXor(volatile int32_t *ptr, int32_t value) argument 104 rsAtomicXor(volatile uint32_t *ptr, uint32_t value) argument 113 rsAtomicMin(volatile uint32_t *ptr, uint32_t value) argument 123 rsAtomicMin(volatile int32_t *ptr, int32_t value) argument 133 rsAtomicMax(volatile uint32_t *ptr, uint32_t value) argument 143 rsAtomicMax(volatile int32_t *ptr, int32_t value) argument [all...] |
/frameworks/rs/ |
H A D | rsAllocation.cpp | 29 RsAllocationMipmapControl mc, void * ptr) 36 mHal.state.userProvidedPtr = ptr; 54 void Allocation::operator delete(void* ptr) { argument 55 if (ptr) { 56 Allocation *a = (Allocation*) ptr; 57 a->getContext()->mHal.funcs.freeRuntimeMem(ptr); 62 RsAllocationMipmapControl mc, void * ptr, 77 success = rsc->mHal.funcs.allocation.initOem(rsc, a, type->getElement()->getHasReferences(), ptr); 84 a = new (allocMem) Allocation(rsc, type, usages, mc, ptr); 88 a = new (allocMem) Allocation(rsc, type, usages, mc, ptr); 28 Allocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 61 createAllocationStrided(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr, size_t requiredAlignment) argument 101 createAllocation(Context *rsc, const Type *type, uint32_t usages, RsAllocationMipmapControl mc, void * ptr) argument 521 incRefs(const void *ptr, size_t ct, size_t startOff) const argument 525 decRefs(const void *ptr, size_t ct, size_t startOff) const argument 542 void *ptr = mRSC->mHal.funcs.allocation.lock1D(mRSC, this); local 630 void *ptr = nullptr; local 739 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mipmaps, uint32_t usages, uintptr_t ptr) argument 750 rsi_AllocationCreateStrided(Context *rsc, RsType vtype, RsAllocationMipmapControl mipmaps, uint32_t usages, uintptr_t ptr, size_t requiredAlignment) argument [all...] |
H A D | rsApiStubs.cpp | 338 uint32_t usages, uintptr_t ptr) 340 return RS_DISPATCH(ctxWrapper, AllocationCreateTyped, vtype, mipmaps, usages, ptr); 337 rsAllocationCreateTyped(RsContext ctxWrapper, RsType vtype, RsAllocationMipmapControl mipmaps, uint32_t usages, uintptr_t ptr) argument
|
H A D | rsContext.cpp | 880 // RS_CMD_ObjDestroy (ptr) 884 RsAsyncVoidPtr ptr; member in struct:android::renderscript::destroyCmd 890 cmd.ptr = objPtr;
|
H A D | rsElement.cpp | 36 void Element::operator delete(void* ptr) { argument 37 if (ptr) { 38 Element *e = (Element*) ptr; 39 e->getContext()->mHal.funcs.freeRuntimeMem(ptr); 350 void Element::incRefs(const void *ptr) const { 353 ObjectBase *const*obp = static_cast<ObjectBase *const*>(ptr); 360 const uint8_t *p = static_cast<const uint8_t *>(ptr); 372 void Element::decRefs(const void *ptr) const { 375 ObjectBase *const*obp = static_cast<ObjectBase *const*>(ptr); 382 const uint8_t *p = static_cast<const uint8_t *>(ptr); [all...] |
H A D | rsHidlAdaptation.cpp | 421 uint32_t usages, uintptr_t ptr) 424 void * _ptr = (void *)ptr; 1051 void* ptr; local 1054 [&ptr, stride] (void* retPtr, uint64_t retStride) { 1055 ptr = retPtr; 1060 return ptr; 419 AllocationCreateTyped(RsContext context, RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, uintptr_t ptr) argument
|
H A D | rsSampler.cpp | 122 void Sampler::operator delete(void* ptr) { argument 123 if (ptr) { 124 Sampler *s = (Sampler*) ptr; 125 s->getContext()->mHal.funcs.freeRuntimeMem(ptr);
|
H A D | rsScriptC_Lib.cpp | 347 uint32_t usages, uintptr_t ptr) { 348 return rsi_AllocationCreateTyped(rsc, type, mipmaps, usages, ptr); 345 rsrAllocationCreateTyped(Context *rsc, const RsType type, RsAllocationMipmapControl mipmaps, uint32_t usages, uintptr_t ptr) argument
|
H A D | rsType.cpp | 47 void Type::operator delete(void* ptr) { argument 48 if (ptr) { 49 Type *t = (Type*) ptr; 50 t->getContext()->mHal.funcs.freeRuntimeMem(ptr); 321 void Type::incRefs(const void *ptr, size_t ct, size_t startOff) const { argument 322 const uint8_t *p = static_cast<const uint8_t *>(ptr); 335 void Type::decRefs(const void *ptr, size_t ct, size_t startOff) const { argument 339 const uint8_t *p = static_cast<const uint8_t *>(ptr);
|