Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 46) sorted by relevance

12

/device/generic/goldfish/opengl/system/GLESv1_enc/
Dgl_client_context.cpp13 void *ptr; in initDispatchByName() local
15 ptr = getProc("glAlphaFunc", userData); set_glAlphaFunc((glAlphaFunc_client_proc_t)ptr); in initDispatchByName()
16 ptr = getProc("glClearColor", userData); set_glClearColor((glClearColor_client_proc_t)ptr); in initDispatchByName()
17 ptr = getProc("glClearDepthf", userData); set_glClearDepthf((glClearDepthf_client_proc_t)ptr); in initDispatchByName()
18 ptr = getProc("glClipPlanef", userData); set_glClipPlanef((glClipPlanef_client_proc_t)ptr); in initDispatchByName()
19 ptr = getProc("glColor4f", userData); set_glColor4f((glColor4f_client_proc_t)ptr); in initDispatchByName()
20 ptr = getProc("glDepthRangef", userData); set_glDepthRangef((glDepthRangef_client_proc_t)ptr); in initDispatchByName()
21 ptr = getProc("glFogf", userData); set_glFogf((glFogf_client_proc_t)ptr); in initDispatchByName()
22 ptr = getProc("glFogfv", userData); set_glFogfv((glFogfv_client_proc_t)ptr); in initDispatchByName()
23 ptr = getProc("glFrustumf", userData); set_glFrustumf((glFrustumf_client_proc_t)ptr); in initDispatchByName()
[all …]
Dgl_enc.cpp23 unsigned char *ptr; in glAlphaFunc_enc() local
25 ptr = stream->alloc(packetSize); in glAlphaFunc_enc()
26 int tmp = OP_glAlphaFunc;memcpy(ptr, &tmp, 4); ptr += 4; in glAlphaFunc_enc()
27 memcpy(ptr, &packetSize, 4); ptr += 4; in glAlphaFunc_enc()
29 memcpy(ptr, &func, 4); ptr += 4; in glAlphaFunc_enc()
30 memcpy(ptr, &ref, 4); ptr += 4; in glAlphaFunc_enc()
39 unsigned char *ptr; in glClearColor_enc() local
41 ptr = stream->alloc(packetSize); in glClearColor_enc()
42 int tmp = OP_glClearColor;memcpy(ptr, &tmp, 4); ptr += 4; in glClearColor_enc()
43 memcpy(ptr, &packetSize, 4); ptr += 4; in glClearColor_enc()
[all …]
DGLEncoder.cpp71 void GLEncoder::s_glGetIntegerv(void *self, GLenum param, GLint *ptr) in s_glGetIntegerv() argument
82 memcpy(ptr, compressedTextureFormats, in s_glGetIntegerv()
89 ctx->m_glGetIntegerv_enc(self, param, ptr); in s_glGetIntegerv()
90 *ptr = MIN(*ptr, GLClientState::MAX_TEXTURE_UNITS); in s_glGetIntegerv()
94 *ptr = state->getBoundTexture(GL_TEXTURE_2D); in s_glGetIntegerv()
98 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES); in s_glGetIntegerv()
102 if (!state->getClientStateParameter<GLint>(param,ptr)) { in s_glGetIntegerv()
103 ctx->m_glGetIntegerv_enc(self, param, ptr); in s_glGetIntegerv()
109 void GLEncoder::s_glGetFloatv(void *self, GLenum param, GLfloat *ptr) in s_glGetFloatv() argument
121 ptr[i] = (GLfloat) compressedTextureFormats[i]; in s_glGetFloatv()
[all …]
DGLEncoder.h103 static void s_glGetIntegerv(void *self, GLenum pname, GLint *ptr);
104 static void s_glGetBooleanv(void *self, GLenum pname, GLboolean *ptr);
105 static void s_glGetFloatv(void *self, GLenum pname, GLfloat *ptr);
106 static void s_glGetFixedv(void *self, GLenum pname, GLfixed *ptr);
/device/generic/goldfish/opengl/system/GLESv2_enc/
Dgl2_client_context.cpp13 void *ptr; in initDispatchByName() local
15ptr = getProc("glActiveTexture", userData); set_glActiveTexture((glActiveTexture_client_proc_t)ptr in initDispatchByName()
16 ptr = getProc("glAttachShader", userData); set_glAttachShader((glAttachShader_client_proc_t)ptr); in initDispatchByName()
17ptr = getProc("glBindAttribLocation", userData); set_glBindAttribLocation((glBindAttribLocation_cl… in initDispatchByName()
18 ptr = getProc("glBindBuffer", userData); set_glBindBuffer((glBindBuffer_client_proc_t)ptr); in initDispatchByName()
19ptr = getProc("glBindFramebuffer", userData); set_glBindFramebuffer((glBindFramebuffer_client_proc… in initDispatchByName()
20ptr = getProc("glBindRenderbuffer", userData); set_glBindRenderbuffer((glBindRenderbuffer_client_p… in initDispatchByName()
21 ptr = getProc("glBindTexture", userData); set_glBindTexture((glBindTexture_client_proc_t)ptr); in initDispatchByName()
22 ptr = getProc("glBlendColor", userData); set_glBlendColor((glBlendColor_client_proc_t)ptr); in initDispatchByName()
23ptr = getProc("glBlendEquation", userData); set_glBlendEquation((glBlendEquation_client_proc_t)ptr in initDispatchByName()
[all …]
Dgl2_enc.cpp23 unsigned char *ptr; in glActiveTexture_enc() local
25 ptr = stream->alloc(packetSize); in glActiveTexture_enc()
26 int tmp = OP_glActiveTexture;memcpy(ptr, &tmp, 4); ptr += 4; in glActiveTexture_enc()
27 memcpy(ptr, &packetSize, 4); ptr += 4; in glActiveTexture_enc()
29 memcpy(ptr, &texture, 4); ptr += 4; in glActiveTexture_enc()
38 unsigned char *ptr; in glAttachShader_enc() local
40 ptr = stream->alloc(packetSize); in glAttachShader_enc()
41 int tmp = OP_glAttachShader;memcpy(ptr, &tmp, 4); ptr += 4; in glAttachShader_enc()
42 memcpy(ptr, &packetSize, 4); ptr += 4; in glAttachShader_enc()
44 memcpy(ptr, &program, 4); ptr += 4; in glAttachShader_enc()
[all …]
DGL2Encoder.cpp212 …lf, GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * ptr) in s_glVertexAtrribPointer() argument
216 ctx->m_state->setState(indx, size, type, normalized, stride, ptr); in s_glVertexAtrribPointer()
219 void GL2Encoder::s_glGetIntegerv(void *self, GLenum param, GLint *ptr) in s_glGetIntegerv() argument
227 *ptr = 0; in s_glGetIntegerv()
237 memcpy(ptr, compressedTextureFormats, in s_glGetIntegerv()
246 ctx->m_glGetIntegerv_enc(self, param, ptr); in s_glGetIntegerv()
247 *ptr = MIN(*ptr, GLClientState::MAX_TEXTURE_UNITS); in s_glGetIntegerv()
251 *ptr = state->getBoundTexture(GL_TEXTURE_2D); in s_glGetIntegerv()
254 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES); in s_glGetIntegerv()
258 if (!ctx->m_state->getClientStateParameter<GLint>(param, ptr)) { in s_glGetIntegerv()
[all …]
DGL2Encoder.h93 static void s_glGetIntegerv(void *self, GLenum pname, GLint *ptr);
96 static void s_glGetFloatv(void *self, GLenum pname, GLfloat *ptr);
99 static void s_glGetBooleanv(void *self, GLenum pname, GLboolean *ptr);
103 GLboolean normalized, GLsizei stride, const GLvoid * ptr);
/device/generic/goldfish/opengl/tests/gles_android_wrapper/
Dgles_dispatch.cpp24 void *ptr; in create_gles_dispatch() local
25 ptr = dlsym(gles_android,"glAlphaFunc"); disp->set_glAlphaFunc((glAlphaFunc_t)ptr); in create_gles_dispatch()
26 ptr = dlsym(gles_android,"glClearColor"); disp->set_glClearColor((glClearColor_t)ptr); in create_gles_dispatch()
27 ptr = dlsym(gles_android,"glClearDepthf"); disp->set_glClearDepthf((glClearDepthf_t)ptr); in create_gles_dispatch()
28 ptr = dlsym(gles_android,"glClipPlanef"); disp->set_glClipPlanef((glClipPlanef_t)ptr); in create_gles_dispatch()
29 ptr = dlsym(gles_android,"glColor4f"); disp->set_glColor4f((glColor4f_t)ptr); in create_gles_dispatch()
30 ptr = dlsym(gles_android,"glDepthRangef"); disp->set_glDepthRangef((glDepthRangef_t)ptr); in create_gles_dispatch()
31 ptr = dlsym(gles_android,"glFogf"); disp->set_glFogf((glFogf_t)ptr); in create_gles_dispatch()
32 ptr = dlsym(gles_android,"glFogfv"); disp->set_glFogfv((glFogfv_t)ptr); in create_gles_dispatch()
33 ptr = dlsym(gles_android,"glFrustumf"); disp->set_glFrustumf((glFrustumf_t)ptr); in create_gles_dispatch()
[all …]
Degl_dispatch.cpp24 void *ptr; in create_egl_dispatch() local
25 ptr = dlsym(gles_android,"eglGetError"); disp->set_eglGetError((eglGetError_t)ptr); in create_egl_dispatch()
26 ptr = dlsym(gles_android,"eglGetDisplay"); disp->set_eglGetDisplay((eglGetDisplay_t)ptr); in create_egl_dispatch()
27 ptr = dlsym(gles_android,"eglInitialize"); disp->set_eglInitialize((eglInitialize_t)ptr); in create_egl_dispatch()
28 ptr = dlsym(gles_android,"eglTerminate"); disp->set_eglTerminate((eglTerminate_t)ptr); in create_egl_dispatch()
29 ptr = dlsym(gles_android,"eglQueryString"); disp->set_eglQueryString((eglQueryString_t)ptr); in create_egl_dispatch()
30 ptr = dlsym(gles_android,"eglGetConfigs"); disp->set_eglGetConfigs((eglGetConfigs_t)ptr); in create_egl_dispatch()
31 ptr = dlsym(gles_android,"eglChooseConfig"); disp->set_eglChooseConfig((eglChooseConfig_t)ptr); in create_egl_dispatch()
32ptr = dlsym(gles_android,"eglGetConfigAttrib"); disp->set_eglGetConfigAttrib((eglGetConfigAttrib_t… in create_egl_dispatch()
33ptr = dlsym(gles_android,"eglCreateWindowSurface"); disp->set_eglCreateWindowSurface((eglCreateWin… in create_egl_dispatch()
[all …]
DThreadInfo.cpp21 static void tlsDestruct(void *ptr) in tlsDestruct() argument
23 if (ptr) { in tlsDestruct()
24 EGLThreadInfo *ti = (EGLThreadInfo *)ptr; in tlsDestruct()
/device/generic/goldfish/opengl/system/renderControl_enc/
DrenderControl_enc.cpp23 unsigned char *ptr; in rcGetRendererVersion_enc() local
25 ptr = stream->alloc(packetSize); in rcGetRendererVersion_enc()
26 int tmp = OP_rcGetRendererVersion;memcpy(ptr, &tmp, 4); ptr += 4; in rcGetRendererVersion_enc()
27 memcpy(ptr, &packetSize, 4); ptr += 4; in rcGetRendererVersion_enc()
43 unsigned char *ptr; in rcGetEGLVersion_enc() local
45 ptr = stream->alloc(packetSize); in rcGetEGLVersion_enc()
46 int tmp = OP_rcGetEGLVersion;memcpy(ptr, &tmp, 4); ptr += 4; in rcGetEGLVersion_enc()
47 memcpy(ptr, &packetSize, 4); ptr += 4; in rcGetEGLVersion_enc()
49 *(unsigned int *)(ptr) = __size_major; ptr += 4; in rcGetEGLVersion_enc()
50 *(unsigned int *)(ptr) = __size_minor; ptr += 4; in rcGetEGLVersion_enc()
[all …]
DrenderControl_client_context.cpp13 void *ptr; in initDispatchByName() local
15ptr = getProc("rcGetRendererVersion", userData); set_rcGetRendererVersion((rcGetRendererVersion_cl… in initDispatchByName()
16ptr = getProc("rcGetEGLVersion", userData); set_rcGetEGLVersion((rcGetEGLVersion_client_proc_t)ptr in initDispatchByName()
17ptr = getProc("rcQueryEGLString", userData); set_rcQueryEGLString((rcQueryEGLString_client_proc_t) in initDispatchByName()
18 ptr = getProc("rcGetGLString", userData); set_rcGetGLString((rcGetGLString_client_proc_t)ptr); in initDispatchByName()
19ptr = getProc("rcGetNumConfigs", userData); set_rcGetNumConfigs((rcGetNumConfigs_client_proc_t)ptr in initDispatchByName()
20 ptr = getProc("rcGetConfigs", userData); set_rcGetConfigs((rcGetConfigs_client_proc_t)ptr); in initDispatchByName()
21 ptr = getProc("rcChooseConfig", userData); set_rcChooseConfig((rcChooseConfig_client_proc_t)ptr); in initDispatchByName()
22 ptr = getProc("rcGetFBParam", userData); set_rcGetFBParam((rcGetFBParam_client_proc_t)ptr); in initDispatchByName()
23ptr = getProc("rcCreateContext", userData); set_rcCreateContext((rcCreateContext_client_proc_t)ptr in initDispatchByName()
[all …]
/device/lge/mako/camera/QCamera/stack/common/
Dcam_list.h38 #define member_of(ptr, type, member) ({ \ argument
39 const typeof(((type *)0)->member) *__mptr = (ptr); \
46 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
48 ptr->next = ptr; in cam_list_init()
49 ptr->prev = ptr; in cam_list_init()
63 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
65 struct cam_list *prev = ptr->prev; in cam_list_del_node()
66 struct cam_list *next = ptr->next; in cam_list_del_node()
68 next->prev = ptr->prev; in cam_list_del_node()
69 prev->next = ptr->next; in cam_list_del_node()
[all …]
/device/asus/flo/camera/QCamera2/stack/common/
Dcam_list.h38 #define member_of(ptr, type, member) ({ \ argument
39 const typeof(((type *)0)->member) *__mptr = (ptr); \
46 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
48 ptr->next = ptr; in cam_list_init()
49 ptr->prev = ptr; in cam_list_init()
72 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
74 struct cam_list *prev = ptr->prev; in cam_list_del_node()
75 struct cam_list *next = ptr->next; in cam_list_del_node()
77 next->prev = ptr->prev; in cam_list_del_node()
78 prev->next = ptr->next; in cam_list_del_node()
[all …]
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DGLClientState.h218 int getVertexAttribParameter(GLuint index, GLenum param, T *ptr) in getVertexAttribParameter() argument
230 *ptr = (T)(vertexAttrib->bufferObject); in getVertexAttribParameter()
233 *ptr = (T)(vertexAttrib->enabled); in getVertexAttribParameter()
236 *ptr = (T)(vertexAttrib->size); in getVertexAttribParameter()
239 *ptr = (T)(vertexAttrib->stride); in getVertexAttribParameter()
242 *ptr = (T)(vertexAttrib->type); in getVertexAttribParameter()
245 *ptr = (T)(vertexAttrib->normalized); in getVertexAttribParameter()
258 bool getClientStateParameter(GLenum param, T* ptr) in getClientStateParameter() argument
264 *ptr = tex; in getClientStateParameter()
270 *ptr = state->size; in getClientStateParameter()
[all …]
DglUtils.h58 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count);
69 T *ptr = indices; in minmax() local
71 if (*min == -1 || *ptr < *min) *min = *ptr; in minmax()
72 if (*max == -1 || *ptr > *max) *max = *ptr; in minmax()
73 ptr++; in minmax()
78 T *ptr = indices; in shiftIndices() local
80 *ptr += offset; in shiftIndices()
81 ptr++; in shiftIndices()
DGLDecoderContextData.h58 memcpy(m_pointerData[loc].ptr(), data, len); in storePointerData()
62 return m_pointerData[loc].ptr(); in pointerData()
DSmartPtr.h26 explicit SmartPtr(T* ptr = (T*)NULL) {
33 m_ptr = ptr;
34 if (ptr)
/device/generic/goldfish/opengl/system/OpenglSystemCommon/
DThreadInfo.cpp21 static void tlsDestruct(void *ptr) in tlsDestruct() argument
23 if (ptr) { in tlsDestruct()
24 EGLThreadInfo *ti = (EGLThreadInfo *)ptr; in tlsDestruct()
/device/generic/goldfish/opengl/host/include/libOpenglRender/
DIOStream.h63 unsigned char *ptr; in alloc() local
65 ptr = m_buf + (m_bufsize - m_free); in alloc()
68 return ptr; in alloc()
/device/asus/flo/camera/QCamera2/HAL/test/
Dqcamera_test.cpp79 uint8_t *ptr = (uint8_t*) mem->pointer(); in previewCallback() local
81 ptr[0], in previewCallback()
82 ptr[1], in previewCallback()
83 ptr[2], in previewCallback()
84 ptr[3], in previewCallback()
85 ptr[4], in previewCallback()
86 ptr[5], in previewCallback()
87 ptr[6], in previewCallback()
88 ptr[7], in previewCallback()
89 ptr[8], in previewCallback()
[all …]
/device/lge/mako/camera/
DQCameraHWI_Record_7x27A.cpp54 void QCameraStream_record::deleteInstance(QCameraStream *ptr) in deleteInstance() argument
57 if (ptr){ in deleteInstance()
58 ptr->release(); in deleteInstance()
59 delete ptr; in deleteInstance()
60 ptr = NULL; in deleteInstance()
/device/generic/goldfish/libqemu/
Dtest_util.c89 const uint8_t* ptr = buff; in pipe_send() local
91 ret = write(pipe->socket, ptr, bufflen); in pipe_send()
102 ptr += ret; in pipe_send()
/device/lge/mako/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_app.c156 my_cam_app.hal_lib.ptr = dlopen("/usr/lib/hw/camera.msm7630.so", RTLD_LAZY); in mm_app_load_hal()
158 my_cam_app.hal_lib.ptr = dlopen("/usr/lib/hw/camera.msm7627A.so", RTLD_LAZY); in mm_app_load_hal()
161 my_cam_app.hal_lib.ptr = dlopen("libmmcamera_interface_badger.so", RTLD_NOW); in mm_app_load_hal()
163 if (!my_cam_app.hal_lib.ptr) { in mm_app_load_hal()
168 dlsym(my_cam_app.hal_lib.ptr, in mm_app_load_hal()
171 dlsym(my_cam_app.hal_lib.ptr, in mm_app_load_hal()

12