Lines Matching refs:dispatch

37 dispatchTable* RS::dispatch = NULL;
57 RS::dispatch->ContextDeinitToClient(mContext);
62 RS::dispatch->ContextDestroy(mContext);
64 RS::dispatch->DeviceDestroy(mDev);
75 RS::dispatch->AllocationGetType = (AllocationGetTypeFnPtr)dlsym(handle, "rsaAllocationGetType");
76 if (RS::dispatch->AllocationGetType == NULL) {
77 ALOGE("Couldn't initialize RS::dispatch->AllocationGetType");
80 RS::dispatch->TypeGetNativeData = (TypeGetNativeDataFnPtr)dlsym(handle, "rsaTypeGetNativeData");
81 if (RS::dispatch->TypeGetNativeData == NULL) {
82 ALOGE("Couldn't initialize RS::dispatch->TypeGetNativeData");
85 RS::dispatch->ElementGetNativeData = (ElementGetNativeDataFnPtr)dlsym(handle, "rsaElementGetNativeData");
86 if (RS::dispatch->ElementGetNativeData == NULL) {
87 ALOGE("Couldn't initialize RS::dispatch->ElementGetNativeData");
90 RS::dispatch->ElementGetSubElements = (ElementGetSubElementsFnPtr)dlsym(handle, "rsaElementGetSubElements");
91 if (RS::dispatch->ElementGetSubElements == NULL) {
92 ALOGE("Couldn't initialize RS::dispatch->ElementGetSubElements");
95 RS::dispatch->DeviceCreate = (DeviceCreateFnPtr)dlsym(handle, "rsDeviceCreate");
96 if (RS::dispatch->DeviceCreate == NULL) {
97 ALOGE("Couldn't initialize RS::dispatch->DeviceCreate");
100 RS::dispatch->DeviceDestroy = (DeviceDestroyFnPtr)dlsym(handle, "rsDeviceDestroy");
101 if (RS::dispatch->DeviceDestroy == NULL) {
102 ALOGE("Couldn't initialize RS::dispatch->DeviceDestroy");
105 RS::dispatch->DeviceSetConfig = (DeviceSetConfigFnPtr)dlsym(handle, "rsDeviceSetConfig");
106 if (RS::dispatch->DeviceSetConfig == NULL) {
107 ALOGE("Couldn't initialize RS::dispatch->DeviceSetConfig");
110 RS::dispatch->ContextCreate = (ContextCreateFnPtr)dlsym(handle, "rsContextCreate");;
111 if (RS::dispatch->ContextCreate == NULL) {
112 ALOGE("Couldn't initialize RS::dispatch->ContextCreate");
115 RS::dispatch->GetName = (GetNameFnPtr)dlsym(handle, "rsaGetName");;
116 if (RS::dispatch->GetName == NULL) {
117 ALOGE("Couldn't initialize RS::dispatch->GetName");
120 RS::dispatch->ContextDestroy = (ContextDestroyFnPtr)dlsym(handle, "rsContextDestroy");
121 if (RS::dispatch->ContextDestroy == NULL) {
122 ALOGE("Couldn't initialize RS::dispatch->ContextDestroy");
125 RS::dispatch->ContextGetMessage = (ContextGetMessageFnPtr)dlsym(handle, "rsContextGetMessage");
126 if (RS::dispatch->ContextGetMessage == NULL) {
127 ALOGE("Couldn't initialize RS::dispatch->ContextGetMessage");
130 RS::dispatch->ContextPeekMessage = (ContextPeekMessageFnPtr)dlsym(handle, "rsContextPeekMessage");
131 if (RS::dispatch->ContextPeekMessage == NULL) {
132 ALOGE("Couldn't initialize RS::dispatch->ContextPeekMessage");
135 RS::dispatch->ContextSendMessage = (ContextSendMessageFnPtr)dlsym(handle, "rsContextSendMessage");
136 if (RS::dispatch->ContextSendMessage == NULL) {
137 ALOGE("Couldn't initialize RS::dispatch->ContextSendMessage");
140 RS::dispatch->ContextInitToClient = (ContextInitToClientFnPtr)dlsym(handle, "rsContextInitToClient");
141 if (RS::dispatch->ContextInitToClient == NULL) {
142 ALOGE("Couldn't initialize RS::dispatch->ContextInitToClient");
145 RS::dispatch->ContextDeinitToClient = (ContextDeinitToClientFnPtr)dlsym(handle, "rsContextDeinitToClient");
146 if (RS::dispatch->ContextDeinitToClient == NULL) {
147 ALOGE("Couldn't initialize RS::dispatch->ContextDeinitToClient");
150 RS::dispatch->TypeCreate = (TypeCreateFnPtr)dlsym(handle, "rsTypeCreate");
151 if (RS::dispatch->TypeCreate == NULL) {
152 ALOGE("Couldn't initialize RS::dispatch->TypeCreate");
155 RS::dispatch->AllocationCreateTyped = (AllocationCreateTypedFnPtr)dlsym(handle, "rsAllocationCreateTyped");
156 if (RS::dispatch->AllocationCreateTyped == NULL) {
157 ALOGE("Couldn't initialize RS::dispatch->AllocationCreateTyped");
160 RS::dispatch->AllocationCreateFromBitmap = (AllocationCreateFromBitmapFnPtr)dlsym(handle, "rsAllocationCreateFromBitmap");
161 if (RS::dispatch->AllocationCreateFromBitmap == NULL) {
162 ALOGE("Couldn't initialize RS::dispatch->AllocationCreateFromBitmap");
165 RS::dispatch->AllocationCubeCreateFromBitmap = (AllocationCubeCreateFromBitmapFnPtr)dlsym(handle, "rsAllocationCubeCreateFromBitmap");
166 if (RS::dispatch->AllocationCubeCreateFromBitmap == NULL) {
167 ALOGE("Couldn't initialize RS::dispatch->AllocationCubeCreateFromBitmap");
170 RS::dispatch->AllocationGetSurface = (AllocationGetSurfaceFnPtr)dlsym(handle, "rsAllocationGetSurface");
171 if (RS::dispatch->AllocationGetSurface == NULL) {
172 ALOGE("Couldn't initialize RS::dispatch->AllocationGetSurface");
175 RS::dispatch->AllocationSetSurface = (AllocationSetSurfaceFnPtr)dlsym(handle, "rsAllocationSetSurface");
176 if (RS::dispatch->AllocationSetSurface == NULL) {
177 ALOGE("Couldn't initialize RS::dispatch->AllocationSetSurface");
180 RS::dispatch->ContextFinish = (ContextFinishFnPtr)dlsym(handle, "rsContextFinish");
181 if (RS::dispatch->ContextFinish == NULL) {
182 ALOGE("Couldn't initialize RS::dispatch->ContextFinish");
185 RS::dispatch->ContextDump = (ContextDumpFnPtr)dlsym(handle, "rsContextDump");
186 if (RS::dispatch->ContextDump == NULL) {
187 ALOGE("Couldn't initialize RS::dispatch->ContextDump");
190 RS::dispatch->ContextSetPriority = (ContextSetPriorityFnPtr)dlsym(handle, "rsContextSetPriority");
191 if (RS::dispatch->ContextSetPriority == NULL) {
192 ALOGE("Couldn't initialize RS::dispatch->ContextSetPriority");
195 RS::dispatch->AssignName = (AssignNameFnPtr)dlsym(handle, "rsAssignName");
196 if (RS::dispatch->AssignName == NULL) {
197 ALOGE("Couldn't initialize RS::dispatch->AssignName");
200 RS::dispatch->ObjDestroy = (ObjDestroyFnPtr)dlsym(handle, "rsObjDestroy");
201 if (RS::dispatch->ObjDestroy == NULL) {
202 ALOGE("Couldn't initialize RS::dispatch->ObjDestroy");
205 RS::dispatch->ElementCreate = (ElementCreateFnPtr)dlsym(handle, "rsElementCreate");
206 if (RS::dispatch->ElementCreate == NULL) {
207 ALOGE("Couldn't initialize RS::dispatch->ElementCreate");
210 RS::dispatch->ElementCreate2 = (ElementCreate2FnPtr)dlsym(handle, "rsElementCreate2");
211 if (RS::dispatch->ElementCreate2 == NULL) {
212 ALOGE("Couldn't initialize RS::dispatch->ElementCreate2");
215 RS::dispatch->AllocationCopyToBitmap = (AllocationCopyToBitmapFnPtr)dlsym(handle, "rsAllocationCopyToBitmap");
216 if (RS::dispatch->AllocationCopyToBitmap == NULL) {
217 ALOGE("Couldn't initialize RS::dispatch->AllocationCopyToBitmap");
220 RS::dispatch->Allocation1DData = (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData");
221 if (RS::dispatch->Allocation1DData == NULL) {
222 ALOGE("Couldn't initialize RS::dispatch->Allocation1DData");
225 RS::dispatch->Allocation1DElementData = (Allocation1DElementDataFnPtr)dlsym(handle, "rsAllocation1DElementData");
226 if (RS::dispatch->Allocation1DElementData == NULL) {
227 ALOGE("Couldn't initialize RS::dispatch->Allocation1DElementData");
230 RS::dispatch->Allocation2DData = (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData");
231 if (RS::dispatch->Allocation2DData == NULL) {
232 ALOGE("Couldn't initialize RS::dispatch->Allocation2DData");
235 RS::dispatch->Allocation3DData = (Allocation3DDataFnPtr)dlsym(handle, "rsAllocation3DData");
236 if (RS::dispatch->Allocation3DData == NULL) {
237 ALOGE("Couldn't initialize RS::dispatch->Allocation3DData");
240 RS::dispatch->AllocationGenerateMipmaps = (AllocationGenerateMipmapsFnPtr)dlsym(handle, "rsAllocationGenerateMipmaps");
241 if (RS::dispatch->AllocationGenerateMipmaps == NULL) {
242 ALOGE("Couldn't initialize RS::dispatch->AllocationGenerateMipmaps");
245 RS::dispatch->AllocationRead = (AllocationReadFnPtr)dlsym(handle, "rsAllocationRead");
246 if (RS::dispatch->AllocationRead == NULL) {
247 ALOGE("Couldn't initialize RS::dispatch->AllocationRead");
250 RS::dispatch->Allocation1DRead = (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead");
251 if (RS::dispatch->Allocation1DRead == NULL) {
252 ALOGE("Couldn't initialize RS::dispatch->Allocation1DRead");
255 RS::dispatch->Allocation2DRead = (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead");
256 if (RS::dispatch->Allocation2DRead == NULL) {
257 ALOGE("Couldn't initialize RS::dispatch->Allocation2DRead");
260 RS::dispatch->AllocationSyncAll = (AllocationSyncAllFnPtr)dlsym(handle, "rsAllocationSyncAll");
261 if (RS::dispatch->AllocationSyncAll == NULL) {
262 ALOGE("Couldn't initialize RS::dispatch->AllocationSyncAll");
265 RS::dispatch->AllocationResize1D = (AllocationResize1DFnPtr)dlsym(handle, "rsAllocationResize1D");
266 if (RS::dispatch->AllocationResize1D == NULL) {
267 ALOGE("Couldn't initialize RS::dispatch->AllocationResize1D");
270 RS::dispatch->AllocationCopy2DRange = (AllocationCopy2DRangeFnPtr)dlsym(handle, "rsAllocationCopy2DRange");
271 if (RS::dispatch->AllocationCopy2DRange == NULL) {
272 ALOGE("Couldn't initialize RS::dispatch->AllocationCopy2DRange");
275 RS::dispatch->AllocationCopy3DRange = (AllocationCopy3DRangeFnPtr)dlsym(handle, "rsAllocationCopy3DRange");
276 if (RS::dispatch->AllocationCopy3DRange == NULL) {
277 ALOGE("Couldn't initialize RS::dispatch->AllocationCopy3DRange");
280 RS::dispatch->SamplerCreate = (SamplerCreateFnPtr)dlsym(handle, "rsSamplerCreate");
281 if (RS::dispatch->SamplerCreate == NULL) {
282 ALOGE("Couldn't initialize RS::dispatch->SamplerCreate");
285 RS::dispatch->ScriptBindAllocation = (ScriptBindAllocationFnPtr)dlsym(handle, "rsScriptBindAllocation");
286 if (RS::dispatch->ScriptBindAllocation == NULL) {
287 ALOGE("Couldn't initialize RS::dispatch->ScriptBindAllocation");
290 RS::dispatch->ScriptSetTimeZone = (ScriptSetTimeZoneFnPtr)dlsym(handle, "rsScriptSetTimeZone");
291 if (RS::dispatch->ScriptSetTimeZone == NULL) {
292 ALOGE("Couldn't initialize RS::dispatch->ScriptSetTimeZone");
295 RS::dispatch->ScriptInvoke = (ScriptInvokeFnPtr)dlsym(handle, "rsScriptInvoke");
296 if (RS::dispatch->ScriptInvoke == NULL) {
297 ALOGE("Couldn't initialize RS::dispatch->ScriptInvoke");
300 RS::dispatch->ScriptInvokeV = (ScriptInvokeVFnPtr)dlsym(handle, "rsScriptInvokeV");
301 if (RS::dispatch->ScriptInvokeV == NULL) {
302 ALOGE("Couldn't initialize RS::dispatch->ScriptInvokeV");
305 RS::dispatch->ScriptForEach = (ScriptForEachFnPtr)dlsym(handle, "rsScriptForEach");
306 if (RS::dispatch->ScriptForEach == NULL) {
307 ALOGE("Couldn't initialize RS::dispatch->ScriptForEach");
310 RS::dispatch->ScriptSetVarI = (ScriptSetVarIFnPtr)dlsym(handle, "rsScriptSetVarI");
311 if (RS::dispatch->ScriptSetVarI == NULL) {
312 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarI");
315 RS::dispatch->ScriptSetVarObj = (ScriptSetVarObjFnPtr)dlsym(handle, "rsScriptSetVarObj");
316 if (RS::dispatch->ScriptSetVarObj == NULL) {
317 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarObj");
320 RS::dispatch->ScriptSetVarJ = (ScriptSetVarJFnPtr)dlsym(handle, "rsScriptSetVarJ");
321 if (RS::dispatch->ScriptSetVarJ == NULL) {
322 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarJ");
325 RS::dispatch->ScriptSetVarF = (ScriptSetVarFFnPtr)dlsym(handle, "rsScriptSetVarF");
326 if (RS::dispatch->ScriptSetVarF == NULL) {
327 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarF");
330 RS::dispatch->ScriptSetVarD = (ScriptSetVarDFnPtr)dlsym(handle, "rsScriptSetVarD");
331 if (RS::dispatch->ScriptSetVarD == NULL) {
332 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarD");
335 RS::dispatch->ScriptSetVarV = (ScriptSetVarVFnPtr)dlsym(handle, "rsScriptSetVarV");
336 if (RS::dispatch->ScriptSetVarV == NULL) {
337 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarV");
340 RS::dispatch->ScriptGetVarV = (ScriptGetVarVFnPtr)dlsym(handle, "rsScriptGetVarV");
341 if (RS::dispatch->ScriptGetVarV == NULL) {
342 ALOGE("Couldn't initialize RS::dispatch->ScriptGetVarV");
345 RS::dispatch->ScriptSetVarVE = (ScriptSetVarVEFnPtr)dlsym(handle, "rsScriptSetVarVE");
346 if (RS::dispatch->ScriptSetVarVE == NULL) {
347 ALOGE("Couldn't initialize RS::dispatch->ScriptSetVarVE");
350 RS::dispatch->ScriptCCreate = (ScriptCCreateFnPtr)dlsym(handle, "rsScriptCCreate");
351 if (RS::dispatch->ScriptCCreate == NULL) {
352 ALOGE("Couldn't initialize RS::dispatch->ScriptCCreate");
355 RS::dispatch->ScriptIntrinsicCreate = (ScriptIntrinsicCreateFnPtr)dlsym(handle, "rsScriptIntrinsicCreate");
356 if (RS::dispatch->ScriptIntrinsicCreate == NULL) {
357 ALOGE("Couldn't initialize RS::dispatch->ScriptIntrinsicCreate");
360 RS::dispatch->ScriptKernelIDCreate = (ScriptKernelIDCreateFnPtr)dlsym(handle, "rsScriptKernelIDCreate");
361 if (RS::dispatch->ScriptKernelIDCreate == NULL) {
362 ALOGE("Couldn't initialize RS::dispatch->ScriptKernelIDCreate");
365 RS::dispatch->ScriptFieldIDCreate = (ScriptFieldIDCreateFnPtr)dlsym(handle, "rsScriptFieldIDCreate");
366 if (RS::dispatch->ScriptFieldIDCreate == NULL) {
367 ALOGE("Couldn't initialize RS::dispatch->ScriptFieldIDCreate");
370 RS::dispatch->ScriptGroupCreate = (ScriptGroupCreateFnPtr)dlsym(handle, "rsScriptGroupCreate");
371 if (RS::dispatch->ScriptGroupCreate == NULL) {
372 ALOGE("Couldn't initialize RS::dispatch->ScriptGroupCreate");
375 RS::dispatch->ScriptGroupSetOutput = (ScriptGroupSetOutputFnPtr)dlsym(handle, "rsScriptGroupSetOutput");
376 if (RS::dispatch->ScriptGroupSetOutput == NULL) {
377 ALOGE("Couldn't initialize RS::dispatch->ScriptGroupSetOutput");
380 RS::dispatch->ScriptGroupSetInput = (ScriptGroupSetInputFnPtr)dlsym(handle, "rsScriptGroupSetInput");
381 if (RS::dispatch->ScriptGroupSetInput == NULL) {
382 ALOGE("Couldn't initialize RS::dispatch->ScriptGroupSetInput");
385 RS::dispatch->ScriptGroupExecute = (ScriptGroupExecuteFnPtr)dlsym(handle, "rsScriptGroupExecute");
386 if (RS::dispatch->ScriptGroupExecute == NULL) {
387 ALOGE("Couldn't initialize RS::dispatch->ScriptGroupExecute");
390 RS::dispatch->AllocationIoSend = (AllocationIoSendFnPtr)dlsym(handle, "rsAllocationIoSend");
391 if (RS::dispatch->AllocationIoSend == NULL) {
392 ALOGE("Couldn't initialize RS::dispatch->AllocationIoSend");
395 RS::dispatch->AllocationIoReceive = (AllocationIoReceiveFnPtr)dlsym(handle, "rsAllocationIoReceive");
396 if (RS::dispatch->AllocationIoReceive == NULL) {
397 ALOGE("Couldn't initialize RS::dispatch->AllocationIoReceive");
440 RS::dispatch = new dispatchTable;
467 ALOGE("Couldn't initialize dispatch table");
471 mDev = RS::dispatch->DeviceCreate();
482 mContext = RS::dispatch->ContextCreate(mDev, 0, targetApi, RS_CONTEXT_TYPE_NORMAL, flags);
524 RS::dispatch->ContextInitToClient(rs->mContext);
531 RsMessageToClientType r = RS::dispatch->ContextPeekMessage(rs->mContext,
543 RS::dispatch->ContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen),
592 RS::dispatch->ContextFinish(mContext);