Lines Matching defs:dispatch

41 dispatchTable* RS::dispatch = NULL;
62 RS::dispatch->ContextDeinitToClient(mContext);
67 RS::dispatch->ContextDestroy(mContext);
71 RS::dispatch->DeviceDestroy(mDev);
83 RS::dispatch->AllocationGetType = (AllocationGetTypeFnPtr)dlsym(handle, "rsaAllocationGetType");
84 if (RS::dispatch->AllocationGetType == NULL) {
85 ALOGV("Couldn't initialize RS::dispatch->AllocationGetType");
88 RS::dispatch->TypeGetNativeData = (TypeGetNativeDataFnPtr)dlsym(handle, "rsaTypeGetNativeData");
89 if (RS::dispatch->TypeGetNativeData == NULL) {
90 ALOGV("Couldn't initialize RS::dispatch->TypeGetNativeData");
93 RS::dispatch->ElementGetNativeData = (ElementGetNativeDataFnPtr)dlsym(handle, "rsaElementGetNativeData");
94 if (RS::dispatch->ElementGetNativeData == NULL) {
95 ALOGV("Couldn't initialize RS::dispatch->ElementGetNativeData");
98 RS::dispatch->ElementGetSubElements = (ElementGetSubElementsFnPtr)dlsym(handle, "rsaElementGetSubElements");
99 if (RS::dispatch->ElementGetSubElements == NULL) {
100 ALOGV("Couldn't initialize RS::dispatch->ElementGetSubElements");
103 RS::dispatch->DeviceCreate = (DeviceCreateFnPtr)dlsym(handle, "rsDeviceCreate");
104 if (RS::dispatch->DeviceCreate == NULL) {
105 ALOGV("Couldn't initialize RS::dispatch->DeviceCreate");
108 RS::dispatch->DeviceDestroy = (DeviceDestroyFnPtr)dlsym(handle, "rsDeviceDestroy");
109 if (RS::dispatch->DeviceDestroy == NULL) {
110 ALOGV("Couldn't initialize RS::dispatch->DeviceDestroy");
113 RS::dispatch->DeviceSetConfig = (DeviceSetConfigFnPtr)dlsym(handle, "rsDeviceSetConfig");
114 if (RS::dispatch->DeviceSetConfig == NULL) {
115 ALOGV("Couldn't initialize RS::dispatch->DeviceSetConfig");
118 RS::dispatch->ContextCreate = (ContextCreateFnPtr)dlsym(handle, "rsContextCreate");;
119 if (RS::dispatch->ContextCreate == NULL) {
120 ALOGV("Couldn't initialize RS::dispatch->ContextCreate");
123 RS::dispatch->GetName = (GetNameFnPtr)dlsym(handle, "rsaGetName");;
124 if (RS::dispatch->GetName == NULL) {
125 ALOGV("Couldn't initialize RS::dispatch->GetName");
128 RS::dispatch->ContextDestroy = (ContextDestroyFnPtr)dlsym(handle, "rsContextDestroy");
129 if (RS::dispatch->ContextDestroy == NULL) {
130 ALOGV("Couldn't initialize RS::dispatch->ContextDestroy");
133 RS::dispatch->ContextGetMessage = (ContextGetMessageFnPtr)dlsym(handle, "rsContextGetMessage");
134 if (RS::dispatch->ContextGetMessage == NULL) {
135 ALOGV("Couldn't initialize RS::dispatch->ContextGetMessage");
138 RS::dispatch->ContextPeekMessage = (ContextPeekMessageFnPtr)dlsym(handle, "rsContextPeekMessage");
139 if (RS::dispatch->ContextPeekMessage == NULL) {
140 ALOGV("Couldn't initialize RS::dispatch->ContextPeekMessage");
143 RS::dispatch->ContextSendMessage = (ContextSendMessageFnPtr)dlsym(handle, "rsContextSendMessage");
144 if (RS::dispatch->ContextSendMessage == NULL) {
145 ALOGV("Couldn't initialize RS::dispatch->ContextSendMessage");
148 RS::dispatch->ContextInitToClient = (ContextInitToClientFnPtr)dlsym(handle, "rsContextInitToClient");
149 if (RS::dispatch->ContextInitToClient == NULL) {
150 ALOGV("Couldn't initialize RS::dispatch->ContextInitToClient");
153 RS::dispatch->ContextDeinitToClient = (ContextDeinitToClientFnPtr)dlsym(handle, "rsContextDeinitToClient");
154 if (RS::dispatch->ContextDeinitToClient == NULL) {
155 ALOGV("Couldn't initialize RS::dispatch->ContextDeinitToClient");
158 RS::dispatch->TypeCreate = (TypeCreateFnPtr)dlsym(handle, "rsTypeCreate");
159 if (RS::dispatch->TypeCreate == NULL) {
160 ALOGV("Couldn't initialize RS::dispatch->TypeCreate");
163 RS::dispatch->AllocationCreateTyped = (AllocationCreateTypedFnPtr)dlsym(handle, "rsAllocationCreateTyped");
164 if (RS::dispatch->AllocationCreateTyped == NULL) {
165 ALOGV("Couldn't initialize RS::dispatch->AllocationCreateTyped");
168 RS::dispatch->AllocationCreateFromBitmap = (AllocationCreateFromBitmapFnPtr)dlsym(handle, "rsAllocationCreateFromBitmap");
169 if (RS::dispatch->AllocationCreateFromBitmap == NULL) {
170 ALOGV("Couldn't initialize RS::dispatch->AllocationCreateFromBitmap");
173 RS::dispatch->AllocationCubeCreateFromBitmap = (AllocationCubeCreateFromBitmapFnPtr)dlsym(handle, "rsAllocationCubeCreateFromBitmap");
174 if (RS::dispatch->AllocationCubeCreateFromBitmap == NULL) {
175 ALOGV("Couldn't initialize RS::dispatch->AllocationCubeCreateFromBitmap");
178 RS::dispatch->AllocationGetSurface = (AllocationGetSurfaceFnPtr)dlsym(handle, "rsAllocationGetSurface");
179 if (RS::dispatch->AllocationGetSurface == NULL) {
180 ALOGV("Couldn't initialize RS::dispatch->AllocationGetSurface");
183 RS::dispatch->AllocationSetSurface = (AllocationSetSurfaceFnPtr)dlsym(handle, "rsAllocationSetSurface");
184 if (RS::dispatch->AllocationSetSurface == NULL) {
185 ALOGV("Couldn't initialize RS::dispatch->AllocationSetSurface");
188 RS::dispatch->ContextFinish = (ContextFinishFnPtr)dlsym(handle, "rsContextFinish");
189 if (RS::dispatch->ContextFinish == NULL) {
190 ALOGV("Couldn't initialize RS::dispatch->ContextFinish");
193 RS::dispatch->ContextDump = (ContextDumpFnPtr)dlsym(handle, "rsContextDump");
194 if (RS::dispatch->ContextDump == NULL) {
195 ALOGV("Couldn't initialize RS::dispatch->ContextDump");
198 RS::dispatch->ContextSetPriority = (ContextSetPriorityFnPtr)dlsym(handle, "rsContextSetPriority");
199 if (RS::dispatch->ContextSetPriority == NULL) {
200 ALOGV("Couldn't initialize RS::dispatch->ContextSetPriority");
203 RS::dispatch->AssignName = (AssignNameFnPtr)dlsym(handle, "rsAssignName");
204 if (RS::dispatch->AssignName == NULL) {
205 ALOGV("Couldn't initialize RS::dispatch->AssignName");
208 RS::dispatch->ObjDestroy = (ObjDestroyFnPtr)dlsym(handle, "rsObjDestroy");
209 if (RS::dispatch->ObjDestroy == NULL) {
210 ALOGV("Couldn't initialize RS::dispatch->ObjDestroy");
213 RS::dispatch->ElementCreate = (ElementCreateFnPtr)dlsym(handle, "rsElementCreate");
214 if (RS::dispatch->ElementCreate == NULL) {
215 ALOGV("Couldn't initialize RS::dispatch->ElementCreate");
218 RS::dispatch->ElementCreate2 = (ElementCreate2FnPtr)dlsym(handle, "rsElementCreate2");
219 if (RS::dispatch->ElementCreate2 == NULL) {
220 ALOGV("Couldn't initialize RS::dispatch->ElementCreate2");
223 RS::dispatch->AllocationCopyToBitmap = (AllocationCopyToBitmapFnPtr)dlsym(handle, "rsAllocationCopyToBitmap");
224 if (RS::dispatch->AllocationCopyToBitmap == NULL) {
225 ALOGV("Couldn't initialize RS::dispatch->AllocationCopyToBitmap");
228 RS::dispatch->Allocation1DData = (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData");
229 if (RS::dispatch->Allocation1DData == NULL) {
230 ALOGV("Couldn't initialize RS::dispatch->Allocation1DData");
233 RS::dispatch->Allocation1DElementData = (Allocation1DElementDataFnPtr)dlsym(handle, "rsAllocation1DElementData");
234 if (RS::dispatch->Allocation1DElementData == NULL) {
235 ALOGV("Couldn't initialize RS::dispatch->Allocation1DElementData");
238 RS::dispatch->Allocation2DData = (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData");
239 if (RS::dispatch->Allocation2DData == NULL) {
240 ALOGV("Couldn't initialize RS::dispatch->Allocation2DData");
243 RS::dispatch->Allocation3DData = (Allocation3DDataFnPtr)dlsym(handle, "rsAllocation3DData");
244 if (RS::dispatch->Allocation3DData == NULL) {
245 ALOGV("Couldn't initialize RS::dispatch->Allocation3DData");
248 RS::dispatch->AllocationGenerateMipmaps = (AllocationGenerateMipmapsFnPtr)dlsym(handle, "rsAllocationGenerateMipmaps");
249 if (RS::dispatch->AllocationGenerateMipmaps == NULL) {
250 ALOGV("Couldn't initialize RS::dispatch->AllocationGenerateMipmaps");
253 RS::dispatch->AllocationRead = (AllocationReadFnPtr)dlsym(handle, "rsAllocationRead");
254 if (RS::dispatch->AllocationRead == NULL) {
255 ALOGV("Couldn't initialize RS::dispatch->AllocationRead");
258 RS::dispatch->Allocation1DRead = (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead");
259 if (RS::dispatch->Allocation1DRead == NULL) {
260 ALOGV("Couldn't initialize RS::dispatch->Allocation1DRead");
263 RS::dispatch->Allocation2DRead = (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead");
264 if (RS::dispatch->Allocation2DRead == NULL) {
265 ALOGV("Couldn't initialize RS::dispatch->Allocation2DRead");
268 RS::dispatch->AllocationSyncAll = (AllocationSyncAllFnPtr)dlsym(handle, "rsAllocationSyncAll");
269 if (RS::dispatch->AllocationSyncAll == NULL) {
270 ALOGV("Couldn't initialize RS::dispatch->AllocationSyncAll");
273 RS::dispatch->AllocationResize1D = (AllocationResize1DFnPtr)dlsym(handle, "rsAllocationResize1D");
274 if (RS::dispatch->AllocationResize1D == NULL) {
275 ALOGV("Couldn't initialize RS::dispatch->AllocationResize1D");
278 RS::dispatch->AllocationCopy2DRange = (AllocationCopy2DRangeFnPtr)dlsym(handle, "rsAllocationCopy2DRange");
279 if (RS::dispatch->AllocationCopy2DRange == NULL) {
280 ALOGV("Couldn't initialize RS::dispatch->AllocationCopy2DRange");
283 RS::dispatch->AllocationCopy3DRange = (AllocationCopy3DRangeFnPtr)dlsym(handle, "rsAllocationCopy3DRange");
284 if (RS::dispatch->AllocationCopy3DRange == NULL) {
285 ALOGV("Couldn't initialize RS::dispatch->AllocationCopy3DRange");
288 RS::dispatch->SamplerCreate = (SamplerCreateFnPtr)dlsym(handle, "rsSamplerCreate");
289 if (RS::dispatch->SamplerCreate == NULL) {
290 ALOGV("Couldn't initialize RS::dispatch->SamplerCreate");
293 RS::dispatch->ScriptBindAllocation = (ScriptBindAllocationFnPtr)dlsym(handle, "rsScriptBindAllocation");
294 if (RS::dispatch->ScriptBindAllocation == NULL) {
295 ALOGV("Couldn't initialize RS::dispatch->ScriptBindAllocation");
298 RS::dispatch->ScriptSetTimeZone = (ScriptSetTimeZoneFnPtr)dlsym(handle, "rsScriptSetTimeZone");
299 if (RS::dispatch->ScriptSetTimeZone == NULL) {
300 ALOGV("Couldn't initialize RS::dispatch->ScriptSetTimeZone");
303 RS::dispatch->ScriptInvoke = (ScriptInvokeFnPtr)dlsym(handle, "rsScriptInvoke");
304 if (RS::dispatch->ScriptInvoke == NULL) {
305 ALOGV("Couldn't initialize RS::dispatch->ScriptInvoke");
308 RS::dispatch->ScriptInvokeV = (ScriptInvokeVFnPtr)dlsym(handle, "rsScriptInvokeV");
309 if (RS::dispatch->ScriptInvokeV == NULL) {
310 ALOGV("Couldn't initialize RS::dispatch->ScriptInvokeV");
313 RS::dispatch->ScriptForEach = (ScriptForEachFnPtr)dlsym(handle, "rsScriptForEach");
314 if (RS::dispatch->ScriptForEach == NULL) {
315 ALOGV("Couldn't initialize RS::dispatch->ScriptForEach");
318 RS::dispatch->ScriptSetVarI = (ScriptSetVarIFnPtr)dlsym(handle, "rsScriptSetVarI");
319 if (RS::dispatch->ScriptSetVarI == NULL) {
320 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarI");
323 RS::dispatch->ScriptSetVarObj = (ScriptSetVarObjFnPtr)dlsym(handle, "rsScriptSetVarObj");
324 if (RS::dispatch->ScriptSetVarObj == NULL) {
325 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarObj");
328 RS::dispatch->ScriptSetVarJ = (ScriptSetVarJFnPtr)dlsym(handle, "rsScriptSetVarJ");
329 if (RS::dispatch->ScriptSetVarJ == NULL) {
330 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarJ");
333 RS::dispatch->ScriptSetVarF = (ScriptSetVarFFnPtr)dlsym(handle, "rsScriptSetVarF");
334 if (RS::dispatch->ScriptSetVarF == NULL) {
335 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarF");
338 RS::dispatch->ScriptSetVarD = (ScriptSetVarDFnPtr)dlsym(handle, "rsScriptSetVarD");
339 if (RS::dispatch->ScriptSetVarD == NULL) {
340 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarD");
343 RS::dispatch->ScriptSetVarV = (ScriptSetVarVFnPtr)dlsym(handle, "rsScriptSetVarV");
344 if (RS::dispatch->ScriptSetVarV == NULL) {
345 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarV");
348 RS::dispatch->ScriptGetVarV = (ScriptGetVarVFnPtr)dlsym(handle, "rsScriptGetVarV");
349 if (RS::dispatch->ScriptGetVarV == NULL) {
350 ALOGV("Couldn't initialize RS::dispatch->ScriptGetVarV");
353 RS::dispatch->ScriptSetVarVE = (ScriptSetVarVEFnPtr)dlsym(handle, "rsScriptSetVarVE");
354 if (RS::dispatch->ScriptSetVarVE == NULL) {
355 ALOGV("Couldn't initialize RS::dispatch->ScriptSetVarVE");
358 RS::dispatch->ScriptCCreate = (ScriptCCreateFnPtr)dlsym(handle, "rsScriptCCreate");
359 if (RS::dispatch->ScriptCCreate == NULL) {
360 ALOGV("Couldn't initialize RS::dispatch->ScriptCCreate");
363 RS::dispatch->ScriptIntrinsicCreate = (ScriptIntrinsicCreateFnPtr)dlsym(handle, "rsScriptIntrinsicCreate");
364 if (RS::dispatch->ScriptIntrinsicCreate == NULL) {
365 ALOGV("Couldn't initialize RS::dispatch->ScriptIntrinsicCreate");
368 RS::dispatch->ScriptKernelIDCreate = (ScriptKernelIDCreateFnPtr)dlsym(handle, "rsScriptKernelIDCreate");
369 if (RS::dispatch->ScriptKernelIDCreate == NULL) {
370 ALOGV("Couldn't initialize RS::dispatch->ScriptKernelIDCreate");
373 RS::dispatch->ScriptFieldIDCreate = (ScriptFieldIDCreateFnPtr)dlsym(handle, "rsScriptFieldIDCreate");
374 if (RS::dispatch->ScriptFieldIDCreate == NULL) {
375 ALOGV("Couldn't initialize RS::dispatch->ScriptFieldIDCreate");
378 RS::dispatch->ScriptGroupCreate = (ScriptGroupCreateFnPtr)dlsym(handle, "rsScriptGroupCreate");
379 if (RS::dispatch->ScriptGroupCreate == NULL) {
380 ALOGV("Couldn't initialize RS::dispatch->ScriptGroupCreate");
383 RS::dispatch->ScriptGroupSetOutput = (ScriptGroupSetOutputFnPtr)dlsym(handle, "rsScriptGroupSetOutput");
384 if (RS::dispatch->ScriptGroupSetOutput == NULL) {
385 ALOGV("Couldn't initialize RS::dispatch->ScriptGroupSetOutput");
388 RS::dispatch->ScriptGroupSetInput = (ScriptGroupSetInputFnPtr)dlsym(handle, "rsScriptGroupSetInput");
389 if (RS::dispatch->ScriptGroupSetInput == NULL) {
390 ALOGV("Couldn't initialize RS::dispatch->ScriptGroupSetInput");
393 RS::dispatch->ScriptGroupExecute = (ScriptGroupExecuteFnPtr)dlsym(handle, "rsScriptGroupExecute");
394 if (RS::dispatch->ScriptGroupExecute == NULL) {
395 ALOGV("Couldn't initialize RS::dispatch->ScriptGroupExecute");
398 RS::dispatch->AllocationIoSend = (AllocationIoSendFnPtr)dlsym(handle, "rsAllocationIoSend");
399 if (RS::dispatch->AllocationIoSend == NULL) {
400 ALOGV("Couldn't initialize RS::dispatch->AllocationIoSend");
403 RS::dispatch->AllocationIoReceive = (AllocationIoReceiveFnPtr)dlsym(handle, "rsAllocationIoReceive");
404 if (RS::dispatch->AllocationIoReceive == NULL) {
405 ALOGV("Couldn't initialize RS::dispatch->AllocationIoReceive");
408 RS::dispatch->AllocationGetPointer = (AllocationGetPointerFnPtr)dlsym(handle, "rsAllocationGetPointer");
409 if (RS::dispatch->AllocationGetPointer == NULL) {
410 ALOGV("Couldn't initialize RS::dispatch->AllocationGetPointer");
453 RS::dispatch = new dispatchTable;
484 ALOGE("Couldn't initialize dispatch table");
490 mDev = RS::dispatch->DeviceCreate();
502 mContext = RS::dispatch->ContextCreate(mDev, 0, targetApi, RS_CONTEXT_TYPE_NORMAL, flags);
544 RS::dispatch->ContextInitToClient(rs->mContext);
551 RsMessageToClientType r = RS::dispatch->ContextPeekMessage(rs->mContext,
563 RS::dispatch->ContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen),
612 RS::dispatch->ContextFinish(mContext);