Searched refs:num_types (Results 1 - 25 of 66) sorted by relevance

123

/xsrc/external/mit/brotli/dist/c/enc/
H A Dblock_splitter.h23 size_t num_types; /* Amount of distinct types */ member in struct:BlockSplit
H A Dmetablock_inc.h99 ++split->num_types;
121 if (split->num_types < BROTLI_MAX_NUMBER_OF_BLOCK_TYPES &&
126 split->types[self->num_blocks_] = (uint8_t)split->num_types;
128 self->last_histogram_ix_[0] = (uint8_t)split->num_types;
132 ++split->num_types;
157 if (split->num_types == 1) {
168 *self->histograms_size_ = split->num_types;
H A Dmetablock.c198 BROTLI_ALLOC(m, ContextType, mb->literal_split.num_types);
200 for (i = 0; i < mb->literal_split.num_types; ++i) {
206 mb->literal_split.num_types * literal_context_multiplier;
213 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS;
220 mb->command_histograms_size = mb->command_split.num_types;
234 mb->literal_split.num_types << BROTLI_LITERAL_CONTEXT_BITS;
253 for (i = mb->literal_split.num_types; i != 0;) {
265 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS;
404 ++split->num_types;
440 if (split->num_types < sel
[all...]
H A Dbrotli_bit_stream.c759 const size_t num_types,
768 memset(type_histo, 0, (num_types + 2) * sizeof(type_histo[0]));
776 StoreVarLenUint8(num_types - 1, storage_ix, storage);
777 if (num_types > 1) { /* TODO: else? could StoreBlockSwitch occur? */
778 BuildAndStoreHuffmanTree(&type_histo[0], num_types + 2, num_types + 2, tree,
790 static void StoreTrivialContextMap(size_t num_types, argument
795 StoreVarLenUint8(num_types - 1, storage_ix, storage);
796 if (num_types > 1) {
799 size_t alphabet_size = num_types
756 BuildAndStoreBlockSplitCode(const uint8_t * types,const uint32_t * lengths,const size_t num_blocks,const size_t num_types,HuffmanTree * tree,BlockSplitCode * code,size_t * storage_ix,uint8_t * storage) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/xvmc/tests/
H A Dtestlib.c60 int num_types; local in function:GetPort
73 XvMCSurfaceInfo *surface_info = XvMCListSurfaceTypes(display, adaptor_info[i].base_id, &num_types);
77 for (j = 0; j < num_types && !found_port; ++j)
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/xvmc/tests/
H A Dtestlib.c60 int num_types; local in function:GetPort
73 XvMCSurfaceInfo *surface_info = XvMCListSurfaceTypes(display, adaptor_info[i].base_id, &num_types);
77 for (j = 0; j < num_types && !found_port; ++j)
/xsrc/external/mit/xorg-server.old/dist/Xext/
H A Dxres.c123 int i, clientID, num_types; local in function:ProcXResQueryClientResources
139 num_types = 0;
142 if(counts[i]) num_types++;
147 rep.num_types = num_types;
148 rep.length = bytes_to_int32(rep.num_types * sz_xXResType);
153 swapl (&rep.num_types, n);
158 if(num_types) {
/xsrc/external/mit/libX11/dist/src/xkb/
H A DXKBMAlloc.c72 map->num_types = map->size_types = 0;
79 map->num_types = map->size_types = 0;
251 XkbCopyKeyTypes(XkbKeyTypePtr from, XkbKeyTypePtr into, int num_types) argument
255 if ((!from) || (!into) || (num_types < 0))
257 for (i = 0; i < num_types; i++) {
280 for (i = 0; i < map->num_types; i++) {
289 if ((!map) || (!map->types) || (map->num_types < XkbNumRequiredTypes)) {
296 if (map->num_types <= XkbKeypadIndex)
298 if (map->num_types <= XkbAlphabeticIndex)
300 if (map->num_types <
[all...]
H A DXKBList.c205 list->num_types = rep.nTypes;
213 if ((status == Success) && (list->num_types > 0))
214 list->types = _ReadListing(&buf, list->num_types, &status);
245 _FreeComponentNames(list->num_types, list->types);
H A DXKBNames.c107 for (i = 0; (i < map->num_types) && (i < rep->nTypes); i++, type++) {
128 if (i >= map->num_types) {
361 (firstType + nTypes > xkb->map->num_types) ||
362 (firstLvlType + nLvlTypes > xkb->map->num_types))
552 nTypes = changes->num_types;
583 (firstType + nTypes > xkb->map->num_types) ||
584 (firstLvlType + nLvlTypes > xkb->map->num_types))
792 new_last = (new->first_type + new->num_types - 1);
793 old_last = (old->first_type + old->num_types - 1);
806 old->num_types
[all...]
H A DXKBUse.c50 oldLast = old->first_type + old->num_types - 1;
51 newLast = new->first_type + new->num_types - 1;
58 old->num_types = newLast - first + 1;
62 old->num_types = new->num_types;
279 mev->num_types = mn->nTypes;
440 nev->num_types = nn->nTypes;
/xsrc/external/mit/libXres/dist/src/
H A DXRes.c144 int *num_types, XResType **types)
151 *num_types = 0;
167 if (rep.num_types) {
170 if (rep.num_types < (INT_MAX / sizeof(XResType)))
171 typs = Xcalloc(rep.num_types, sizeof(XResType));
176 for (CARD32 i = 0; i < rep.num_types; i++) {
184 *num_types = (int) rep.num_types;
143 XResQueryClientResources(Display * dpy,XID xid,int * num_types,XResType ** types) argument
/xsrc/external/mit/libXres/dist/include/X11/extensions/
H A DXRes.h89 int *num_types,
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
H A Dlp_test_conv.c396 const unsigned num_types = ARRAY_SIZE(conv_types);
407 for(src_type = conv_types; src_type < &conv_types[num_types]; ++src_type) {
408 for(dst_type = conv_types; dst_type < &conv_types[num_types]; ++dst_type) {
436 src_type = &conv_types[rand() % num_types];
439 dst_type = &conv_types[rand() % num_types];
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
H A Dlp_test_conv.c396 const unsigned num_types = ARRAY_SIZE(conv_types);
407 for(src_type = conv_types; src_type < &conv_types[num_types]; ++src_type) {
408 for(dst_type = conv_types; dst_type < &conv_types[num_types]; ++dst_type) {
436 src_type = &conv_types[rand() % num_types];
439 dst_type = &conv_types[rand() % num_types];
/xsrc/external/mit/xorg-server.old/dist/xkb/
H A DXKBMAlloc.c74 map->num_types= 0;
83 map->num_types= map->size_types= 0;
87 memset(&map->types[map->num_types], 0,
88 ((map->size_types-map->num_types)*sizeof(XkbKeyTypeRec)));
255 XkbCopyKeyTypes(XkbKeyTypePtr from,XkbKeyTypePtr into,int num_types) argument
259 if ((!from)||(!into)||(num_types<0))
261 for (i=0;i<num_types;i++) {
278 if ((type_ndx<0)||(type_ndx>=xkb->map->num_types)||(map_count<0)||
804 if (map->num_types>0) {
807 for (i=0,type=map->types;i<map->num_types;
[all...]
H A DxkbUtils.c958 if (src->map->types && src->map->num_types) {
959 if (src->map->num_types > dst->map->size_types ||
963 src->map->num_types * sizeof(XkbKeyTypeRec));
967 memset(dst->map->types + dst->map->num_types, 0,
968 (src->map->num_types - dst->map->num_types) *
972 tmp = calloc(src->map->num_types, sizeof(XkbKeyTypeRec));
978 else if (src->map->num_types < dst->map->num_types &&
980 for (i = src->map->num_types, dtyp
[all...]
H A DXKBMisc.c65 if ((protected&(1<<i))&&(types_inout[i]<xkb->map->num_types)) {
553 if (newTypes[i]>xkb->map->num_types)
715 if ((type_ndx<0)||(type_ndx>xkb->map->num_types))
719 last= changes->map.first_type+changes->map.num_types-1;
722 changes->map.num_types= (last-type_ndx)+1;
725 changes->map.num_types= (type_ndx-changes->map.first_type)+1;
731 changes->map.num_types= 1;
745 for (i=0;i<xkb->map->num_types;i++) {
/xsrc/external/mit/xorg-server/dist/xkb/
H A DXKBMAlloc.c73 map->num_types = 0;
83 map->num_types = map->size_types = 0;
87 memset(&map->types[map->num_types], 0,
89 map->num_types) * sizeof(XkbKeyTypeRec)));
254 XkbCopyKeyTypes(XkbKeyTypePtr from, XkbKeyTypePtr into, int num_types) argument
258 if ((!from) || (!into) || (num_types < 0))
260 for (i = 0; i < num_types; i++) {
275 if ((type_ndx < 0) || (type_ndx >= xkb->map->num_types) || (map_count < 0)
795 if (map->num_types > 0) {
799 for (i = 0, type = map->types; i < map->num_types;
[all...]
H A DxkbUtils.c988 if (src->map->types && src->map->num_types) {
989 if (src->map->num_types > dst->map->size_types ||
992 tmp = reallocarray(dst->map->types, src->map->num_types,
997 memset(dst->map->types + dst->map->num_types, 0,
998 (src->map->num_types - dst->map->num_types) *
1002 tmp = calloc(src->map->num_types, sizeof(XkbKeyTypeRec));
1008 else if (src->map->num_types < dst->map->num_types &&
1010 for (i = src->map->num_types, dtyp
[all...]
H A DXKBMisc.c62 if ((protected & (1 << i)) && (types_inout[i] < xkb->map->num_types)) {
571 if (newTypes[i] > xkb->map->num_types)
741 if ((type_ndx < 0) || (type_ndx > xkb->map->num_types))
746 last = changes->map.first_type + changes->map.num_types - 1;
749 changes->map.num_types = (last - type_ndx) + 1;
752 changes->map.num_types =
759 changes->map.num_types = 1;
774 for (i = 0; i < xkb->map->num_types; i++) {
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/xvmc/
H A Dcontext.c55 int num_types; local in function:Validate
84 surface_info = XvMCListSurfaceTypes(dpy, adaptor_info[j].base_id, &num_types);
90 for (int l = 0; l < num_types && !found_surface; ++l) {
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/xvmc/
H A Dcontext.c55 int num_types; local in function:Validate
84 surface_info = XvMCListSurfaceTypes(dpy, adaptor_info[j].base_id, &num_types);
90 for (int l = 0; l < num_types && !found_surface; ++l) {
/xsrc/external/mit/libxkbfile/dist/src/
H A Dsrvmisc.c56 if (!XkbSetNames(dpy, XkbAllNamesMask, 0, xkb->map->num_types, xkb))
146 for (t = 0, type = xkb->map->types; t < xkb->map->num_types;
/xsrc/external/mit/xorg-server/dist/Xext/
H A Dxres.c300 int i, clientID, num_types; local in function:ProcXResQueryClientResources
316 num_types = 0;
320 num_types++;
326 .length = bytes_to_int32(num_types * sz_xXResType),
327 .num_types = num_types
332 swapl(&rep.num_types);
337 if (num_types) {

Completed in 40 milliseconds

123