| /xsrc/external/mit/MesaLib/dist/src/egl/main/ |
| eglarray.c | 38 * Grow the size of the array. 41 _eglGrowArray(_EGLArray *array) 46 new_size = array->MaxSize; 47 while (new_size <= array->Size) 50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0])); 52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d", 53 array->Name, new_size); 57 array->Elements = elems; 58 array->MaxSize = new_size 70 _EGLArray *array; local [all...] |
| eglarray.h | 58 _eglDestroyArray(_EGLArray *array, void (*free_cb)(void *)); 62 _eglAppendArray(_EGLArray *array, void *elem); 66 _eglEraseArray(_EGLArray *array, EGLint i, void (*free_cb)(void *)); 70 _eglFindArray(_EGLArray *array, void *elem); 74 _eglFilterArray(_EGLArray *array, void **data, EGLint size, 79 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, 84 _eglGetArraySize(_EGLArray *array) 86 return (array) ? array->Size : 0;
|
| /xsrc/external/mit/MesaLib.old/dist/src/egl/main/ |
| eglarray.c | 38 * Grow the size of the array. 41 _eglGrowArray(_EGLArray *array) 46 new_size = array->MaxSize; 47 while (new_size <= array->Size) 50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0])); 52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d", 53 array->Name, new_size); 57 array->Elements = elems; 58 array->MaxSize = new_size 70 _EGLArray *array; local [all...] |
| eglarray.h | 58 _eglDestroyArray(_EGLArray *array, void (*free_cb)(void *)); 62 _eglAppendArray(_EGLArray *array, void *elem); 66 _eglEraseArray(_EGLArray *array, EGLint i, void (*free_cb)(void *)); 70 _eglFindArray(_EGLArray *array, void *elem); 74 _eglFilterArray(_EGLArray *array, void **data, EGLint size, 79 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, 84 _eglGetArraySize(_EGLArray *array) 86 return (array) ? array->Size : 0;
|
| /xsrc/external/mit/libXdmcp/dist/ |
| Read.c | 53 XdmcpReadARRAY8 (XdmcpBufferPtr buffer, ARRAY8Ptr array) 58 * When returning FALSE, guarantee that array->data = 0. 59 * This allows the user to safely call XdmcpDisposeARRAY8(array) 61 * Note that XdmcpDisposeARRAY*(array) will call free(array->data), 62 * so we must guarantee that array->data is NULL or a malloced pointer. 64 if (!XdmcpReadCARD16 (buffer, &array->length)) { 65 array->data = NULL; 68 if (!array->length) 70 array->data = NULL [all...] |
| Array.c | 65 XdmcpAllocARRAY8 (ARRAY8Ptr array, int length) 69 array->data = NULL; 71 array->data = xmalloc(length * sizeof (CARD8)); 73 if (array->data == NULL) { 74 array->length = 0; 77 array->length = (CARD16) length; 82 XdmcpAllocARRAY16 (ARRAY16Ptr array, int length) 86 array->data = NULL; 88 array->data = xmalloc(length * sizeof (CARD16)); 90 if (array->data == NULL) [all...] |
| Write.c | 63 XdmcpWriteARRAY8 (XdmcpBufferPtr buffer, const ARRAY8Ptr array) 67 if (!XdmcpWriteCARD16 (buffer, array->length)) 69 for (i = 0; i < (int)array->length; i++) 70 if (!XdmcpWriteCARD8 (buffer, array->data[i])) 76 XdmcpWriteARRAY16 (XdmcpBufferPtr buffer, const ARRAY16Ptr array) 80 if (!XdmcpWriteCARD8 (buffer, array->length)) 82 for (i = 0; i < (int)array->length; i++) 83 if (!XdmcpWriteCARD16 (buffer, array->data[i])) 89 XdmcpWriteARRAY32 (XdmcpBufferPtr buffer, const ARRAY32Ptr array) 93 if (!XdmcpWriteCARD8 (buffer, array->length) [all...] |
| /xsrc/external/mit/xorgproto/dist/include/X11/extensions/ |
| xtrapbits.h | 44 typedef unsigned char *UByteP; /* Pointer to an unsigned byte array */ 56 #define ByteInArray(array,bit) /* Returns the byte offset to get to a bit */ \ 57 (((UByteP)(array))[(bit) / BitsInByte]) 59 #define BitIsTrue(array,bit) /* Test to see if a specific bit is True */ \ 60 (ByteInArray(array,bit) & BitInByte(bit)) 62 #define BitIsFalse(array,bit) /* Test to see if a specific bit is False */ \ 63 (!(BitIsTrue(array,bit))) 65 #define BitTrue(array,bit) /* Set a specific bit to be True */ \ 66 (ByteInArray(array,bit) |= BitInByte(bit)) 68 #define BitFalse(array,bit) /* Set a specific bit to be False */ [all...] |
| /xsrc/external/mit/glu/dist/src/libnurbs/internals/ |
| reader.cc | 60 O_pwlcurve::O_pwlcurve( long _type, long count, INREAL *array, long byte_stride, TrimVertex *trimpts ) 81 if(equal(prev->param[0], array[0]) && equal(prev->param[1], array[1])) 89 v->param[0] = (REAL) array[0]; 90 v->param[1] = (REAL) array[1]; 95 array = (INREAL *) (((char *) array) + byte_stride); 103 v->param[0] = (REAL) array[0] / (REAL) array[2]; 104 v->param[1] = (REAL) array[1] / (REAL) array[2] [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| ast_array_index.cpp | 40 * If \c ir is a reference to an array for which we are tracking the max array 44 * This function also checks whether the array is a built-in array whose 58 * the size of a built-in array to be too large. 66 * - Accessing an element of an array that is a member of a named 69 * - Accessing an element of an array that is a member of a named 70 * interface block array (e.g. ifc[j].foo[i]). 72 * - Accessing an element of an array that is a member of a named 73 * interface block array of arrays (e.g. ifc[j][k].foo[i]) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| ast_array_index.cpp | 40 * If \c ir is a reference to an array for which we are tracking the max array 44 * This function also checks whether the array is a built-in array whose 58 * the size of a built-in array to be too large. 66 * - Accessing an element of an array that is a member of a named 69 * - Accessing an element of an array that is a member of a named 70 * interface block array (e.g. ifc[j].foo[i]). 72 * - Accessing an element of an array that is a member of a named 73 * interface block array of arrays (e.g. ifc[j][k].foo[i]) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| formats.csv | 37 # - channel encoding (only meaningful for array or packed layout), containing for each 99 # Array normalized formats 100 MESA_FORMAT_A_UNORM8 , array , 1, 1, 1, un8 , , , , 000x, rgb 101 MESA_FORMAT_A_UNORM16 , array , 1, 1, 1, un16, , , , 000x, rgb 102 MESA_FORMAT_L_UNORM8 , array , 1, 1, 1, un8 , , , , xxx1, rgb 103 MESA_FORMAT_L_UNORM16 , array , 1, 1, 1, un16, , , , xxx1, rgb 104 MESA_FORMAT_LA_UNORM8 , array , 1, 1, 1, un8 , un8 , , , xxxy, rgb 105 MESA_FORMAT_LA_UNORM16 , array , 1, 1, 1, un16, un16, , , xxxy, rgb 106 MESA_FORMAT_I_UNORM8 , array , 1, 1, 1, un8 , , , , xxxx, rgb 107 MESA_FORMAT_I_UNORM16 , array , 1, 1, 1, un16, , , , xxxx, rg [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| formats.csv | 37 # - channel encoding (only meaningful for array or packed layout), containing for each 104 # Array normalized formats 105 MESA_FORMAT_A_UNORM8 , array , 1, 1, 1, un8 , , , , 000x, rgb 106 MESA_FORMAT_A_UNORM16 , array , 1, 1, 1, un16, , , , 000x, rgb 107 MESA_FORMAT_L_UNORM8 , array , 1, 1, 1, un8 , , , , xxx1, rgb 108 MESA_FORMAT_L_UNORM16 , array , 1, 1, 1, un16, , , , xxx1, rgb 109 MESA_FORMAT_I_UNORM8 , array , 1, 1, 1, un8 , , , , xxxx, rgb 110 MESA_FORMAT_I_UNORM16 , array , 1, 1, 1, un16, , , , xxxx, rgb 111 MESA_FORMAT_R_UNORM8 , array , 1, 1, 1, un8 , , , , x001, rgb 112 MESA_FORMAT_R_UNORM16 , array , 1, 1, 1, un16, , , , x001, rg [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| memory_pool.h | 51 * Generic helper for growing an array that has separate size/count 54 * type * Array; 58 * memory_pool_array_reserve(pool, type, Array, Size, Reserved, k); 63 * \warning Array, Size, Reserved have to be lvalues and may be evaluated 66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \ 74 memcpy(newarray, (array), (size) * sizeof(type)); \ 75 (array) = newarray; \
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| sfn_shader_compute.h | 52 bool emit_load_3vec(nir_intrinsic_instr* instr, const std::array<PValue,3>& src); 56 std::array<PValue,3> m_workgroup_id; 57 std::array<PValue,3> m_local_invocation_id;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| memory_pool.h | 51 * Generic helper for growing an array that has separate size/count 54 * type * Array; 58 * memory_pool_array_reserve(pool, type, Array, Size, Reserved, k); 63 * \warning Array, Size, Reserved have to be lvalues and may be evaluated 66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \ 74 memcpy(newarray, (array), (size) * sizeof(type)); \ 75 (array) = newarray; \
|
| /xsrc/external/mit/xf86-video-geode/dist/src/gfx/ |
| gfx_defs.h | 157 * array - pointer to an array of unsigned characters. 158 * array_offset - offset into the array from which to pull the first 162 #define WRITE_SCRATCH_STRING(dwords, bytes, array, array_offset) \ 165 _asm { mov esi, array } \ 183 * array - pointer to an array of unsigned characters. 184 * array_offset - offset into the array from which to pull the first 188 #define WRITE_FRAME_BUFFER_STRING32(fboffset, bytes, array, array_offset) \ 195 _asm { mov esi, array } \ [all...] |
| /xsrc/external/mit/MesaLib/dist/src/glx/ |
| clientattrib.c | 40 do_enable_disable(GLenum array, GLboolean val) 46 if (array == GL_TEXTURE_COORD_ARRAY) { 50 if (!__glXSetArrayEnable(state, array, index, val)) { 56 __indirect_glEnableClientState(GLenum array) 58 do_enable_disable(array, GL_TRUE); 62 __indirect_glDisableClientState(GLenum array) 64 do_enable_disable(array, GL_FALSE);
|
| /xsrc/external/mit/MesaLib/dist/src/mesa/swrast/ |
| s_fog.c | 94 const GLfloat fogCoord = span->array->attribs[VARYING_SLOT_FOGC][i][0]; \ 127 * The fog value are either in the span->array->fog array or interpolated from 142 if (span->array->ChanType == GL_UNSIGNED_BYTE) { 147 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { 168 if (span->array->ChanType == GL_UNSIGNED_BYTE) { 169 GLubyte (*rgba)[4] = span->array->rgba8; 172 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { 173 GLushort (*rgba)[4] = span->array->rgba16; 177 GLfloat (*rgba)[4] = span->array->attribs[VARYING_SLOT_COL0] [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/ |
| s_fog.c | 94 const GLfloat fogCoord = span->array->attribs[VARYING_SLOT_FOGC][i][0]; \ 127 * The fog value are either in the span->array->fog array or interpolated from 142 if (span->array->ChanType == GL_UNSIGNED_BYTE) { 147 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { 168 if (span->array->ChanType == GL_UNSIGNED_BYTE) { 169 GLubyte (*rgba)[4] = span->array->rgba8; 172 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { 173 GLushort (*rgba)[4] = span->array->rgba16; 177 GLfloat (*rgba)[4] = span->array->attribs[VARYING_SLOT_COL0] [all...] |
| /xsrc/external/mit/glu/dist/src/libnurbs/nurbtess/ |
| rectBlock.cc | 124 ret += array[i]->num_quads(); 133 array = (rectBlock**) malloc(sizeof(rectBlock*) * s); 134 assert(array); 137 array[i] = NULL; 145 if(array[i] != NULL) 146 delete array[i]; 148 free(array); 151 //put to the end of the array, check the size 164 temp[i] = array[i]; 166 free(array); [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/ |
| u_surfaces.c | 41 { /* or 2D array */ 49 if(!us->u.array) 50 us->u.array = CALLOC(pt->last_level + 1, sizeof(struct pipe_surface *)); 51 ps = us->u.array[level]; 73 us->u.array[level] = ps; 84 { /* or 2D array */ 88 us->u.array[ps->u.tex.level] = 0; 95 { /* or 2D array */ 111 if(us->u.array) 116 struct pipe_surface *ps = us->u.array[i] [all...] |
| /xsrc/external/mit/brotli/dist/c/enc/ |
| write_bits.h | 7 /* Write bits into a byte array. */ 37 uint8_t* BROTLI_RESTRICT array) { 50 uint8_t* p = &array[*pos >> 3]; 59 uint8_t* array_pos = &array[*pos >> 3]; 77 size_t pos, uint8_t* array) { 80 array[pos >> 3] = 0;
|
| /xsrc/external/mit/libXdmcp/dist/include/X11/ |
| Xdmcp.h | 132 extern int XdmcpWriteARRAY16(XdmcpBufferPtr buffer, const ARRAY16Ptr array); 134 extern int XdmcpWriteARRAY32(XdmcpBufferPtr buffer, const ARRAY32Ptr array); 136 extern int XdmcpWriteARRAY8(XdmcpBufferPtr buffer, const ARRAY8Ptr array); 138 extern int XdmcpWriteARRAYofARRAY8(XdmcpBufferPtr buffer, const ARRAYofARRAY8Ptr array); 152 extern int XdmcpReadARRAY16(XdmcpBufferPtr buffer, ARRAY16Ptr array); 154 extern int XdmcpReadARRAY32(XdmcpBufferPtr buffer, ARRAY32Ptr array); 156 extern int XdmcpReadARRAY8(XdmcpBufferPtr buffer, ARRAY8Ptr array); 158 extern int XdmcpReadARRAYofARRAY8(XdmcpBufferPtr buffer, ARRAYofARRAY8Ptr array); 175 extern void XdmcpDisposeARRAY8(ARRAY8Ptr array); 177 extern void XdmcpDisposeARRAY16(ARRAY16Ptr array); [all...] |
| /xsrc/external/mit/pixman/dist/pixman/dither/ |
| make-blue-noise.c | 3 * The void-and-cluster method for dither array generation 209 array_init (array_t *array, int width, int height) 213 if (!array) 221 array->buffer = buffer; 222 array->width = width; 223 array->height = height; 229 array_get (array_t *array, int x, int y) 231 return &array->buffer[y * array->width + x]; 235 array_save_ppm (array_t *array, const char *filename 579 array_t array; local [all...] |