• Home
  • Raw
  • Download

Lines Matching refs:rsc

78 time_t rsrTime(Context *rsc, time_t *timer) {  in rsrTime()  argument
82 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { in rsrLocalTime() argument
89 pthread_mutex_lock(&rsc->gLibMutex); in rsrLocalTime()
92 pthread_mutex_unlock(&rsc->gLibMutex); in rsrLocalTime()
96 int64_t rsrUptimeMillis(Context *rsc) { in rsrUptimeMillis() argument
100 int64_t rsrUptimeNanos(Context *rsc) { in rsrUptimeNanos() argument
104 float rsrGetDt(Context *rsc, const Script *sc) { in rsrGetDt() argument
114 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef() argument
127 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject() argument
151 void rsrClearObject(const Context *rsc, rs_object_base *dst) { in rsrClearObject() argument
156 void rsrSetObject(const Context *rsc, void *dst, ObjectBase *src) { in rsrSetObject() argument
158 rsrClearObject(rsc, dst); in rsrSetObject()
166 SetObjectRef(rsc, odst[0], src); in rsrSetObject()
167 src->callUpdateCacheObject(rsc, dst); in rsrSetObject()
170 void rsrSetObject(const Context *rsc, rs_object_base *dst, const ObjectBase *src) { in rsrSetObject() argument
172 rsrClearObject(rsc, dst); in rsrSetObject()
180 SetObjectRef(rsc, odst[0], src); in rsrSetObject()
181 src->callUpdateCacheObject(rsc, dst); in rsrSetObject()
190 bool rsrIsObject(const Context *rsc, rs_object_base o) { in rsrIsObject() argument
196 uint32_t rsrToClient(Context *rsc, int cmdID, const void *data, int len) { in rsrToClient() argument
198 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, false); in rsrToClient()
201 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, const void *data, int len) { in rsrToClientBlocking() argument
203 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true); in rsrToClientBlocking()
208 uint32_t rsrToClient(Context *rsc, int cmdID, void *data, int len) { in rsrToClient() argument
209 return rsrToClient(rsc, cmdID, (const void *)data, len); in rsrToClient()
212 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, void *data, int len) { in rsrToClientBlocking() argument
213 return rsrToClientBlocking(rsc, cmdID, (const void *)data, len); in rsrToClientBlocking()
216 void rsrAllocationIoSend(Context *rsc, Allocation *src) { in rsrAllocationIoSend() argument
217 src->ioSend(rsc); in rsrAllocationIoSend()
220 void rsrAllocationIoReceive(Context *rsc, Allocation *src) { in rsrAllocationIoReceive() argument
221 src->ioReceive(rsc); in rsrAllocationIoReceive()
224 void rsrForEach(Context *rsc, in rsrForEach() argument
231 target->runForEach(rsc, slot, (const Allocation**)in, numInputs, out, usr, usrBytes, call); in rsrForEach()
234 void rsrAllocationSyncAll(Context *rsc, Allocation *a, RsAllocationUsageType usage) { in rsrAllocationSyncAll() argument
235 a->syncAll(rsc, usage); in rsrAllocationSyncAll()
247 static bool validateCopyArgs(Context *rsc, bool isSrc, uint32_t expectDim, in validateCopyArgs() argument
256 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
268 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
278 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
287 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
294 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
302 void rsrAllocationCopy1DRange(Context *rsc, Allocation *dstAlloc, in rsrAllocationCopy1DRange() argument
308 if (!validateCopyArgs(rsc, false, 1, dstAlloc, dstOff, 0, dstMip, count, 1) || in rsrAllocationCopy1DRange()
309 !validateCopyArgs(rsc, true, 1, srcAlloc, srcOff, 0, srcMip, count, 1)) { in rsrAllocationCopy1DRange()
312 rsi_AllocationCopy2DRange(rsc, dstAlloc, dstOff, 0, in rsrAllocationCopy1DRange()
317 void rsrAllocationCopy2DRange(Context *rsc, Allocation *dstAlloc, in rsrAllocationCopy2DRange() argument
324 if (!validateCopyArgs(rsc, false, 2, dstAlloc, dstXoff, dstYoff, dstMip, width, height) || in rsrAllocationCopy2DRange()
325 !validateCopyArgs(rsc, true, 2, srcAlloc, srcXoff, srcYoff, srcMip, width, height)) { in rsrAllocationCopy2DRange()
329 rsi_AllocationCopy2DRange(rsc, dstAlloc, dstXoff, dstYoff, in rsrAllocationCopy2DRange()
334 RsElement rsrElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, in rsrElementCreate() argument
336 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
339 RsType rsrTypeCreate(Context *rsc, const RsElement element, uint32_t dimX, in rsrTypeCreate() argument
342 return rsi_TypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, faces, yuv); in rsrTypeCreate()
345 RsAllocation rsrAllocationCreateTyped(Context *rsc, const RsType type, in rsrAllocationCreateTyped() argument
348 return rsi_AllocationCreateTyped(rsc, type, mipmaps, usages, ptr); in rsrAllocationCreateTyped()