Lines Matching defs:table

291      printf("table[%d]: %d\n",i,eht->table[i]);
340 static uint32_t *table=NULL;
343 if(table)free(table);
344 table=NULL;
347 if(!table){
348 table = (uint32_t *) malloc(sizeof(uint32_t)*(1 + U_EMR_MAX));
349 if(!table)return(result);
353 table[ 0] = 0x00; // Does not map to any EMR record
354 table[ 1] = 0x80; // U_EMRHEADER 1 0 0 0 0 0 0 0
355 table[ 2] = 0x83; // U_EMRPOLYBEZIER 1 0 0 0 0 0 1 1
356 table[ 3] = 0x87; // U_EMRPOLYGON 1 0 0 0 0 1 1 1
357 table[ 4] = 0x83; // U_EMRPOLYLINE 1 0 0 0 0 0 1 1
358 table[ 5] = 0x8B; // U_EMRPOLYBEZIERTO 1 0 0 0 1 0 1 1
359 table[ 6] = 0x8B; // U_EMRPOLYLINETO 1 0 0 0 1 0 1 1
360 table[ 7] = 0x83; // U_EMRPOLYPOLYLINE 1 0 0 0 0 0 1 1
361 table[ 8] = 0x87; // U_EMRPOLYPOLYGON 1 0 0 0 0 1 1 1
362 table[ 9] = 0xA0; // U_EMRSETWINDOWEXTEX 1 0 1 0 0 0 0 0
363 table[ 10] = 0xA0; // U_EMRSETWINDOWORGEX 1 0 1 0 0 0 0 0
364 table[ 11] = 0xA0; // U_EMRSETVIEWPORTEXTEX 1 0 1 0 0 0 0 0
365 table[ 12] = 0xA0; // U_EMRSETVIEWPORTORGEX 1 0 1 0 0 0 0 0
366 table[ 13] = 0xA0; // U_EMRSETBRUSHORGEX 1 0 1 0 0 0 0 0
367 table[ 14] = 0x82; // U_EMREOF 1 0 1 0 0 0 0 0 Force out any pending draw
368 table[ 15] = 0x82; // U_EMRSETPIXELV 1 0 0 0 0 0 1 0
369 table[ 16] = 0xA0; // U_EMRSETMAPPERFLAGS 1 0 1 0 0 0 0 0
370 table[ 17] = 0xA0; // U_EMRSETMAPMODE 1 0 1 0 0 0 0 0
371 table[ 18] = 0x20; // U_EMRSETBKMODE 0 0 1 0 0 0 0 0
372 table[ 19] = 0xA0; // U_EMRSETPOLYFILLMODE 1 0 1 0 0 0 0 0
373 table[ 20] = 0xA0; // U_EMRSETROP2 1 0 1 0 0 0 0 0
374 table[ 21] = 0xA0; // U_EMRSETSTRETCHBLTMODE 1 0 1 0 0 0 0 0
375 table[ 22] = 0x20; // U_EMRSETTEXTALIGN 0 0 1 0 0 0 0 0
376 table[ 23] = 0xA0; // U_EMRSETCOLORADJUSTMENT 1 0 1 0 0 0 0 0
377 table[ 24] = 0x20; // U_EMRSETTEXTCOLOR 0 0 1 0 0 0 0 0
378 table[ 25] = 0x20; // U_EMRSETBKCOLOR 0 0 1 0 0 0 0 0
379 table[ 26] = 0xA0; // U_EMROFFSETCLIPRGN 1 0 1 0 0 0 0 0
380 table[ 27] = 0x89; // U_EMRMOVETOEX 1 0 0 0 1 0 0 1
381 table[ 28] = 0xA0; // U_EMRSETMETARGN 1 0 1 0 0 0 0 0
382 table[ 29] = 0xA0; // U_EMREXCLUDECLIPRECT 1 0 1 0 0 0 0 0
383 table[ 30] = 0xA0; // U_EMRINTERSECTCLIPRECT 1 0 1 0 0 0 0 0
384 table[ 31] = 0xA0; // U_EMRSCALEVIEWPORTEXTEX 1 0 1 0 0 0 0 0
385 table[ 32] = 0xA0; // U_EMRSCALEWINDOWEXTEX 1 0 1 0 0 0 0 0
386 table[ 33] = 0xA0; // U_EMRSAVEDC 1 0 1 0 0 0 0 0
387 table[ 34] = 0xA0; // U_EMRRESTOREDC 1 0 1 0 0 0 0 0
388 table[ 35] = 0xA0; // U_EMRSETWORLDTRANSFORM 1 0 1 0 0 0 0 0
389 table[ 36] = 0xA0; // U_EMRMODIFYWORLDTRANSFORM 1 0 1 0 0 0 0 0
390 table[ 37] = 0x20; // U_EMRSELECTOBJECT 0 0 1 0 0 0 0 0
391 table[ 38] = 0x20; // U_EMRCREATEPEN 0 0 1 0 0 0 0 0
392 table[ 39] = 0x20; // U_EMRCREATEBRUSHINDIRECT 0 0 1 0 0 0 0 0
393 table[ 40] = 0x20; // U_EMRDELETEOBJECT 0 0 1 0 0 0 0 0
394 table[ 41] = 0x83; // U_EMRANGLEARC 1 0 0 0 0 0 1 1
395 table[ 42] = 0x87; // U_EMRELLIPSE 1 0 0 0 0 1 1 1
396 table[ 43] = 0x87; // U_EMRRECTANGLE 1 0 0 0 0 1 1 1
397 table[ 44] = 0x87; // U_EMRROUNDRECT 1 0 0 0 0 1 1 1
398 table[ 45] = 0x83; // U_EMRARC 1 0 0 0 0 0 1 1
399 table[ 46] = 0x87; // U_EMRCHORD 1 0 0 0 0 1 1 1
400 table[ 47] = 0x87; // U_EMRPIE 1 0 0 0 0 1 1 1
401 table[ 48] = 0xA0; // U_EMRSELECTPALETTE 1 0 1 0 0 0 0 0
402 table[ 49] = 0xA0; // U_EMRCREATEPALETTE 1 0 1 0 0 0 0 0
403 table[ 50] = 0xA0; // U_EMRSETPALETTEENTRIES 1 0 1 0 0 0 0 0
404 table[ 51] = 0xA0; // U_EMRRESIZEPALETTE 1 0 1 0 0 0 0 0
405 table[ 52] = 0xA0; // U_EMRREALIZEPALETTE 1 0 1 0 0 0 0 0
406 table[ 53] = 0x82; // U_EMREXTFLOODFILL 1 0 0 0 0 0 1 0
407 table[ 54] = 0x8B; // U_EMRLINETO 1 0 0 0 1 0 1 1
408 table[ 55] = 0x8B; // U_EMRARCTO 1 0 0 0 1 0 1 1
409 table[ 56] = 0x83; // U_EMRPOLYDRAW 1 0 0 0 0 0 1 1
410 table[ 57] = 0xA0; // U_EMRSETARCDIRECTION 1 0 1 0 0 0 0 0
411 table[ 58] = 0xA0; // U_EMRSETMITERLIMIT 1 0 1 0 0 0 0 0
412 table[ 59] = 0xE0; // U_EMRBEGINPATH 1 1 1 0 0 0 0 0
413 table[ 60] = 0x80; // U_EMRENDPATH 1 0 0 0 0 0 0 0
414 table[ 61] = 0x84; // U_EMRCLOSEFIGURE 1 0 0 0 0 1 0 0
415 table[ 62] = 0x94; // U_EMRFILLPATH 1 0 0 1 0 1 0 0
416 table[ 63] = 0x94; // U_EMRSTROKEANDFILLPATH 1 0 0 1 0 1 0 0
417 table[ 64] = 0x90; // U_EMRSTROKEPATH 1 0 0 1 0 0 0 0
418 table[ 65] = 0xA0; // U_EMRFLATTENPATH 1 0 1 0 0 0 0 0
419 table[ 66] = 0xA0; // U_EMRWIDENPATH 1 0 1 0 0 0 0 0
420 table[ 67] = 0x80; // U_EMRSELECTCLIPPATH 1 0 0 0 0 0 0 0 consumes the path, draws nothing
421 table[ 68] = 0xA0; // U_EMRABORTPATH 1 0 1 0 0 0 0 0
422 table[ 69] = 0xA0; // U_EMRUNDEF69 1 0 1 0 0 0 0 0
423 table[ 70] = 0x00; // U_EMRCOMMENT 0 0 0 0 0 0 0 0
424 table[ 71] = 0x82; // U_EMRFILLRGN 1 0 0 0 0 0 1 0
425 table[ 72] = 0x82; // U_EMRFRAMERGN 1 0 0 0 0 0 1 0
426 table[ 73] = 0x82; // U_EMRINVERTRGN 1 0 0 0 0 0 1 0
427 table[ 74] = 0x82; // U_EMRPAINTRGN 1 0 0 0 0 0 1 0
428 table[ 75] = 0xA0; // U_EMREXTSELECTCLIPRGN 1 0 1 0 0 0 0 0
429 table[ 76] = 0x82; // U_EMRBITBLT 1 0 0 0 0 0 1 0
430 table[ 77] = 0x82; // U_EMRSTRETCHBLT 1 0 0 0 0 0 1 0
431 table[ 78] = 0x82; // U_EMRMASKBLT 1 0 0 0 0 0 1 0
432 table[ 79] = 0x82; // U_EMRPLGBLT 1 0 0 0 0 0 1 0
433 table[ 80] = 0xA0; // U_EMRSETDIBITSTODEVICE 1 0 1 0 0 0 0 0
434 table[ 81] = 0xA0; // U_EMRSTRETCHDIBITS 1 0 1 0 0 0 0 0
435 table[ 82] = 0x20; // U_EMREXTCREATEFONTINDIRECTW 0 0 1 0 0 0 0 0
436 table[ 83] = 0x02; // U_EMREXTTEXTOUTA 0 0 0 0 0 0 1 0
437 table[ 84] = 0x02; // U_EMREXTTEXTOUTW 0 0 0 0 0 0 1 0
438 table[ 85] = 0x83; // U_EMRPOLYBEZIER16 1 0 0 0 0 0 1 1
439 table[ 86] = 0x83; // U_EMRPOLYGON16 1 0 0 0 0 0 1 1
440 table[ 87] = 0x83; // U_EMRPOLYLINE16 1 0 0 0 0 0 1 1
441 table[ 88] = 0x8B; // U_EMRPOLYBEZIERTO16 1 0 0 0 1 0 1 1
442 table[ 89] = 0x8B; // U_EMRPOLYLINETO16 1 0 0 0 1 0 1 1
443 table[ 90] = 0x83; // U_EMRPOLYPOLYLINE16 1 0 0 0 0 0 1 1
444 table[ 91] = 0x87; // U_EMRPOLYPOLYGON16 1 0 0 0 0 1 1 1
445 table[ 92] = 0x83; // U_EMRPOLYDRAW16 1 0 0 0 0 0 1 1
446 table[ 93] = 0x80; // U_EMRCREATEMONOBRUSH 1 0 0 0 0 0 0 0 Not selected yet, so no change in drawing conditions
447 table[ 94] = 0x80; // U_EMRCREATEDIBPATTERNBRUSHPT 1 0 0 0 0 0 0 0 "
448 table[ 95] = 0x00; // U_EMREXTCREATEPEN 0 0 0 0 0 0 0 0 "
449 table[ 96] = 0x02; // U_EMRPOLYTEXTOUTA 0 0 0 0 0 0 1 0
450 table[ 97] = 0x02; // U_EMRPOLYTEXTOUTW 0 0 0 0 0 0 1 0
451 table[ 98] = 0xA0; // U_EMRSETICMMODE 1 0 1 0 0 0 0 0
452 table[ 99] = 0xA0; // U_EMRCREATECOLORSPACE 1 0 1 0 0 0 0 0
453 table[100] = 0xA0; // U_EMRSETCOLORSPACE 1 0 1 0 0 0 0 0
454 table[101] = 0xA0; // U_EMRDELETECOLORSPACE 1 0 1 0 0 0 0 0
455 table[102] = 0xA0; // U_EMRGLSRECORD 1 0 1 0 0 0 0 0
456 table[103] = 0xA0; // U_EMRGLSBOUNDEDRECORD 1 0 1 0 0 0 0 0
457 table[104] = 0xA0; // U_EMRPIXELFORMAT 1 0 1 0 0 0 0 0
458 table[105] = 0xA0; // U_EMRDRAWESCAPE 1 0 1 0 0 0 0 0
459 table[106] = 0xA0; // U_EMREXTESCAPE 1 0 1 0 0 0 0 0
460 table[107] = 0xA0; // U_EMRUNDEF107 1 0 1 0 0 0 0 0
461 table[108] = 0x02; // U_EMRSMALLTEXTOUT 0 0 0 0 0 0 1 0
462 table[109] = 0xA0; // U_EMRFORCEUFIMAPPING 1 0 1 0 0 0 0 0
463 table[110] = 0xA0; // U_EMRNAMEDESCAPE 1 0 1 0 0 0 0 0
464 table[111] = 0xA0; // U_EMRCOLORCORRECTPALETTE 1 0 1 0 0 0 0 0
465 table[112] = 0xA0; // U_EMRSETICMPROFILEA 1 0 1 0 0 0 0 0
466 table[113] = 0xA0; // U_EMRSETICMPROFILEW 1 0 1 0 0 0 0 0
467 table[114] = 0x82; // U_EMRALPHABLEND 1 0 0 0 0 0 1 0
468 table[115] = 0xA0; // U_EMRSETLAYOUT 1 0 1 0 0 0 0 0
469 table[116] = 0x82; // U_EMRTRANSPARENTBLT 1 0 0 0 0 0 1 0
470 table[117] = 0xA0; // U_EMRUNDEF117 1 0 1 0 0 0 0 0
471 table[118] = 0x82; // U_EMRGRADIENTFILL 1 0 1 0 0 0 1 0
472 table[119] = 0xA0; // U_EMRSETLINKEDUFIS 1 0 1 0 0 0 0 0
473 table[120] = 0x20; // U_EMRSETTEXTJUSTIFICATION 0 0 1 0 0 0 0 0
474 table[121] = 0xA0; // U_EMRCOLORMATCHTOTARGETW 1 0 1 0 0 0 0 0
475 table[122] = 0xA0; // U_EMRCREATECOLORSPACEW 1 0 1 0 0 0 0 0
477 result = table[type];
609 Conversions to formats using color tables assume that the color table can hold every color
616 \param ct DIB color table
617 \param numCt DIB color table number of entries
623 \param use_ct If true use color table (only for 1-16 bit DIBs).
704 for(lct = *ct, k=0; k<found; k++,lct++){ // Is this color in the table (VERY inefficient if there are a lot of colors!!!)
711 if(found > *numCt){ // More colors found than are supported by the color table
799 \brief Get the actual number of colors in the color table from the BitMapInfoHeader.
800 \return Number of entries in the color table.
825 \brief Get the actual number of colors in the color table from the ClrUsed, BitCount, Width, and Height.
826 \return Number of entries in the color table.
827 \param Colors Number of colors in the table.
858 \param ct pointer to DIB color table in pEmr
859 \param numCt DIB color table number of entries, for PNG or JPG returns the number of bytes in the image
915 \param ct DIB color table
916 \param numCt DIB color table number of entries
952 if(use_ct && !numCt)return(4); //color table not adequately described
1198 \param eht EMF handle table (peak handle number needed)
1355 \brief Create a handle table. Entries filled with 0 are empty, entries >0 hold a handle.
1359 \param eht EMF handle table
1373 ehtl->table = malloc(initsize * sizeof(uint32_t));
1374 if(!ehtl->table){
1380 free(ehtl->table);
1384 memset(ehtl->table , 0, initsize * sizeof(uint32_t)); // zero all slots in the table
1388 ehtl->table[0] = 0; // This slot isn't actually ever used
1398 \brief Delete an entry from the handle table. Move it back onto the stack. The specified slot is filled with a 0.
1401 \param eht EMF handle table
1409 if(!eht->table)return(2);
1412 if(!eht->table[*ih])return(5); // requested table position was not in use
1413 eht->table[*ih]=0; // remove handle from table
1414 while(eht->top>0 && !eht->table[eht->top]){ // adjust top
1428 \param eht EMF handle table
1438 if(!eht->table)return(2);
1443 eht->table = realloc(eht->table,newsize * sizeof(uint32_t));
1444 if(!eht->table)return(5);
1445 memset(&eht->table[eht->allocated] , 0, eht->chunk * sizeof(uint32_t)); // zero all NEW slots in the table
1453 if(eht->table[*ih])return(7);
1454 eht->table[*ih] = *ih; // handle goes into preexisting (but zero) slot in table
1465 \param eht EMF handle table
1474 if(!ehtl->table)return(3);
1476 free(ehtl->table);
2066 \param BmiColors Color table (must be NULL for some values of BmiHeader->biBitCount)
2465 \brief Allocate and construct a U_EMRDELETEOBJECT structure and also delete the requested object from the table.
2469 \param eht EMF handle table
2492 \param eht EMF handle table
2499 if(ihObject > eht->top)return(NULL); // handle this high is not in the table
2500 if(!eht->table[ihObject])return(NULL); // handle is not in the table, so not active, so cannot be selected
2510 \param eht EMF handle table
2533 \param eht EMF handle table
2550 \param eht EMF handle table
2567 \param eht EMF handle table
2591 \param eht EMF handle table
3128 uint32_t ihBrush, // Index to place object in EMF object table (this entry must not yet exist)
3897 \param ihBrush Index to place object in EMF object table (this entry must not yet exist)
3912 ((PU_EMRCREATEBRUSHINDIRECT) record)->ihBrush = ihBrush; // Index to place object in EMF object table (this entry must not yet exist)
4073 \param ihPal Index of a Palette object in the EMF object table
4086 \param ihPal Index to place object in EMF object table (this entry must not yet exist)
4112 \param ihPal Index of a Palette object in the EMF object table
4146 \param ihPal Index of a Palette object in the EMF object table
4435 \param ihBrush Index of a Brush object in the EMF object table
4474 \param ihBrush Index of a Brush object in the EMF object table
4920 \param ihFont Index of the font in the EMF object table
5155 \param ihBrush Index to place object in EMF object table (this entry must not yet exist)
5176 \param ihBrush Index to place object in EMF object table (this entry must not yet exist)
5198 \param ihPen ihPen Index to place object in EMF object table (this entry must not yet exist)
5284 \param ihCS Index to place object in EMF object table (this entry must not yet exist)
5309 \param ihCS Index of object in EMF object table
5321 \param ihCS Index of object in EMF object table
5566 \param ihCS Index to place object in EMF object table (this entry must not yet exist)