[php-directfb-cvs] PHP-DirectFB/examples df_dok.php,NONE,1.1 palette.dsc,NONE,1.1
Status: Pre-Alpha
Brought to you by:
klan
From: Claudio C. <kl...@us...> - 2004-11-13 17:04:14
|
Update of /cvsroot/php-directfb/PHP-DirectFB/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11493 Added Files: df_dok.php palette.dsc Log Message: Ported df_dok. --- NEW FILE: df_dok.php --- <?php /* (c) Copyright 2000-2002 convergence integrated media GmbH. (c) Copyright 2002 convergence GmbH. All rights reserved. Written by Denis Oliver Kropp <do...@di...>, Andreas Hundt <an...@fi...> and Sven Neumann <ne...@di...>. This file is subject to the terms and conditions of the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: [...1180 lines suppressed...] printf( "%-44s %3ld.%.3ld secs (%s%4ld.%.3ld %s)\n", $demo->desc, $dt / 1000, $dt % 1000, $demo->accelerated ? "*" : " ", $demo->result / 1000, $demo->result % 1000, $demo->unit); if ($do_offscreen) { $primary->SetBlittingFlags( DSBLIT_NOFX ); $primary->Blit( $dest, $clip ); sleep(2); $dest->Clear( 0, 0, 0, 0x80 ); } } if ($show_results) showResult(); printf( "\n" ); shutdown(); --- NEW FILE: palette.dsc --- <?php $image_lut_palette_dsc = new DFBPaletteDescription ( DPDESC_CAPS | DPDESC_SIZE | DPDESC_ENTRIES, 0, 256, array( new DFBColor( 0x00, 0x00, 0x00, 0x00 ), new DFBColor( 0x80, 0x05, 0x03, 0x04 ), new DFBColor( 0x80, 0x36, 0x54, 0x47 ), new DFBColor( 0x80, 0x7d, 0x8f, 0x88 ), new DFBColor( 0x80, 0xa4, 0xb4, 0xa0 ), new DFBColor( 0x80, 0xbe, 0xd2, 0xc2 ), new DFBColor( 0x80, 0x1d, 0x41, 0x2c ), new DFBColor( 0x80, 0x0c, 0x30, 0x14 ), new DFBColor( 0x80, 0x55, 0x6b, 0x63 ), new DFBColor( 0x80, 0xde, 0xf5, 0xda ), new DFBColor( 0x80, 0x06, 0x1f, 0x06 ), new DFBColor( 0x80, 0xdc, 0xe8, 0xde ), new DFBColor( 0x80, 0x67, 0x78, 0x6f ), new DFBColor( 0x80, 0xbe, 0x8e, 0x69 ), new DFBColor( 0x80, 0xcb, 0xb6, 0xa2 ), new DFBColor( 0x80, 0x2b, 0x02, 0x03 ), new DFBColor( 0x80, 0xe7, 0xd0, 0xb4 ), new DFBColor( 0x80, 0x96, 0xa7, 0xab ), new DFBColor( 0x80, 0xa6, 0x7d, 0x50 ), new DFBColor( 0x80, 0x40, 0x1c, 0x09 ), new DFBColor( 0x80, 0x61, 0x43, 0x14 ), new DFBColor( 0x80, 0x0b, 0x13, 0x10 ), new DFBColor( 0x80, 0xe5, 0xdc, 0xc9 ), new DFBColor( 0x80, 0xcb, 0xc0, 0xaf ), new DFBColor( 0x80, 0x4f, 0x31, 0x18 ), new DFBColor( 0x80, 0x9c, 0x8e, 0x86 ), new DFBColor( 0x80, 0x7e, 0x8a, 0x91 ), new DFBColor( 0x80, 0x1d, 0x02, 0x02 ), new DFBColor( 0x80, 0x7b, 0x5e, 0x0a ), new DFBColor( 0x80, 0xec, 0xe7, 0xd2 ), new DFBColor( 0x80, 0xf4, 0xc7, 0x84 ), new DFBColor( 0x80, 0x85, 0x79, 0x6f ), new DFBColor( 0x80, 0x48, 0x3d, 0x20 ), new DFBColor( 0x80, 0x27, 0x1c, 0x06 ), new DFBColor( 0x80, 0x82, 0x6a, 0x02 ), new DFBColor( 0x80, 0x34, 0x2c, 0x11 ), new DFBColor( 0x80, 0xa0, 0x9c, 0x95 ), new DFBColor( 0x80, 0x53, 0x4e, 0x44 ), new DFBColor( 0x80, 0xfe, 0xde, 0x76 ), new DFBColor( 0x80, 0x93, 0xbc, 0xfa ), new DFBColor( 0x80, 0x60, 0x53, 0x34 ), new DFBColor( 0x80, 0xdc, 0xf3, 0xf2 ), new DFBColor( 0x80, 0x47, 0x45, 0x49 ), new DFBColor( 0x80, 0x0a, 0x04, 0x03 ), new DFBColor( 0x80, 0xfe, 0xe6, 0x82 ), new DFBColor( 0x80, 0xab, 0xd4, 0xfe ), new DFBColor( 0x80, 0x3c, 0x34, 0x35 ), new DFBColor( 0x80, 0xd5, 0xc0, 0xb4 ), new DFBColor( 0x80, 0xbd, 0x99, 0x8e ), new DFBColor( 0x80, 0x88, 0x7e, 0x6a ), new DFBColor( 0x80, 0xe1, 0xd0, 0xc9 ), new DFBColor( 0x80, 0xda, 0xfe, 0xea ), new DFBColor( 0x80, 0x27, 0x22, 0x24 ), new DFBColor( 0x80, 0x61, 0x5c, 0x4e ), new DFBColor( 0x80, 0xf7, 0xe6, 0xe3 ), new DFBColor( 0x80, 0x50, 0x4a, 0x37 ), new DFBColor( 0x80, 0xf0, 0xda, 0xd4 ), new DFBColor( 0x80, 0xbb, 0xc6, 0xc2 ), new DFBColor( 0x80, 0x0a, 0x0b, 0x06 ), new DFBColor( 0x80, 0x2e, 0x26, 0x12 ), new DFBColor( 0x80, 0xdc, 0xa7, 0x97 ), new DFBColor( 0x80, 0xbc, 0xb4, 0xa2 ), new DFBColor( 0x80, 0x2e, 0x06, 0x02 ), new DFBColor( 0x80, 0x8f, 0x6e, 0x5e ), new DFBColor( 0x80, 0xba, 0xa7, 0x96 ), new DFBColor( 0x80, 0xfa, 0xb2, 0x52 ), new DFBColor( 0x80, 0xd3, 0xe0, 0xd1 ), new DFBColor( 0x80, 0x3e, 0x2e, 0x0e ), new DFBColor( 0x80, 0x74, 0x69, 0x64 ), new DFBColor( 0x80, 0x47, 0x3d, 0x32 ), new DFBColor( 0x80, 0xf6, 0xd5, 0xcd ), new DFBColor( 0x80, 0x14, 0x13, 0x09 ), new DFBColor( 0x80, 0x8e, 0x9a, 0xb4 ), new DFBColor( 0x80, 0xa9, 0x9a, 0x92 ), new DFBColor( 0x80, 0xd7, 0xd0, 0xbc ), new DFBColor( 0x80, 0x9f, 0xaa, 0xc9 ), new DFBColor( 0x80, 0xd5, 0xc1, 0xc2 ), new DFBColor( 0x80, 0xe1, 0xdb, 0xd9 ), new DFBColor( 0x80, 0xb7, 0xba, 0xc8 ), new DFBColor( 0x80, 0x60, 0x3d, 0x33 ), new DFBColor( 0x80, 0xca, 0xc6, 0xcf ), new DFBColor( 0x80, 0xc7, 0x85, 0x75 ), new DFBColor( 0x80, 0x33, 0x1f, 0x0c ), new DFBColor( 0x80, 0x49, 0x10, 0x08 ), new DFBColor( 0x80, 0xec, 0xf4, 0xef ), new DFBColor( 0x80, 0xcd, 0xd1, 0xd1 ), new DFBColor( 0x80, 0x87, 0x4b, 0x3e ), new DFBColor( 0x80, 0xf7, 0xec, 0xe2 ), new DFBColor( 0x80, 0xf3, 0xe1, 0xe5 ), new DFBColor( 0x80, 0xe5, 0xd4, 0xd9 ), new DFBColor( 0x80, 0x92, 0x85, 0x7e ), new DFBColor( 0x80, 0x74, 0x70, 0x68 ), new DFBColor( 0x80, 0xe9, 0xc5, 0xaa ), new DFBColor( 0x80, 0x4a, 0x44, 0x35 ), new DFBColor( 0x80, 0xa4, 0xa8, 0xa3 ), new DFBColor( 0x80, 0x74, 0x77, 0x71 ), new DFBColor( 0x80, 0x27, 0x2f, 0x3e ), new DFBColor( 0x80, 0x3d, 0x2d, 0x1e ), new DFBColor( 0x80, 0x16, 0x1f, 0x31 ), new DFBColor( 0x80, 0x8a, 0x84, 0x85 ), new DFBColor( 0x80, 0xae, 0x93, 0x8c ), new DFBColor( 0x80, 0xdc, 0xb7, 0xab ), new DFBColor( 0x80, 0x37, 0x44, 0x54 ), new DFBColor( 0x80, 0x2a, 0x0c, 0x04 ), new DFBColor( 0x80, 0x6b, 0x67, 0x5f ), new DFBColor( 0x80, 0xd2, 0xfc, 0xfe ), new DFBColor( 0x80, 0xcc, 0xab, 0xa1 ), new DFBColor( 0x80, 0x60, 0x5d, 0x5c ), new DFBColor( 0x80, 0x5b, 0x20, 0x0c ), new DFBColor( 0x80, 0xcc, 0xca, 0xbc ), new DFBColor( 0x80, 0x7b, 0x83, 0x82 ), new DFBColor( 0x80, 0xfa, 0xed, 0xf5 ), new DFBColor( 0x80, 0xb9, 0xa6, 0xa4 ), new DFBColor( 0x80, 0x26, 0x1a, 0x12 ), new DFBColor( 0x80, 0x19, 0x15, 0x26 ), new DFBColor( 0x80, 0xd6, 0xda, 0xd4 ), new DFBColor( 0x80, 0x9b, 0x7c, 0x70 ), new DFBColor( 0x80, 0xbe, 0xbe, 0xb0 ), new DFBColor( 0x80, 0x1d, 0x06, 0x04 ), new DFBColor( 0x80, 0x11, 0x04, 0x03 ), new DFBColor( 0x80, 0xe4, 0xd6, 0xcb ), new DFBColor( 0x80, 0xc9, 0xb2, 0xb0 ), new DFBColor( 0x80, 0x79, 0x58, 0x31 ), new DFBColor( 0x80, 0xea, 0xea, 0xf4 ), new DFBColor( 0x80, 0x1d, 0x13, 0x06 ), new DFBColor( 0x80, 0x8f, 0x95, 0xa4 ), new DFBColor( 0x80, 0xba, 0xd2, 0xf1 ), new DFBColor( 0x80, 0x53, 0x33, 0x32 ), new DFBColor( 0x80, 0x3f, 0x34, 0x20 ), new DFBColor( 0x80, 0x83, 0x71, 0x69 ), new DFBColor( 0x80, 0xac, 0xa1, 0xa2 ), new DFBColor( 0x80, 0xfc, 0xe0, 0xd5 ), new DFBColor( 0x80, 0xfe, 0xfa, 0x96 ), new DFBColor( 0x80, 0xe6, 0xe2, 0xde ), new DFBColor( 0x80, 0x5e, 0x4b, 0x38 ), new DFBColor( 0x80, 0xd8, 0xc8, 0xc4 ), new DFBColor( 0x80, 0xaa, 0xaa, 0xb7 ), new DFBColor( 0x80, 0xb4, 0xb4, 0xb3 ), new DFBColor( 0x80, 0x95, 0x5f, 0x4c ), new DFBColor( 0x80, 0xfc, 0xf4, 0xe8 ), new DFBColor( 0x80, 0x9e, 0x95, 0x99 ), new DFBColor( 0x80, 0xf1, 0xe0, 0xcf ), new DFBColor( 0x80, 0x41, 0x22, 0x2c ), new DFBColor( 0x80, 0x8a, 0x83, 0x7a ), new DFBColor( 0x80, 0x39, 0x11, 0x05 ), new DFBColor( 0x80, 0x6b, 0x72, 0x6d ), new DFBColor( 0x80, 0x5d, 0x54, 0x49 ), new DFBColor( 0x80, 0xea, 0xfc, 0xfe ), new DFBColor( 0x80, 0x52, 0x59, 0x63 ), new DFBColor( 0x80, 0x3b, 0x3b, 0x20 ), new DFBColor( 0x80, 0x34, 0x2c, 0x20 ), new DFBColor( 0x80, 0x7b, 0x7b, 0x82 ), new DFBColor( 0x80, 0xe5, 0xc9, 0xc4 ), new DFBColor( 0x80, 0xb2, 0x86, 0x79 ), new DFBColor( 0x80, 0xfe, 0xf6, 0x9e ), new DFBColor( 0x80, 0xfe, 0xed, 0xe4 ), new DFBColor( 0x80, 0x93, 0x90, 0x87 ), new DFBColor( 0x80, 0xd8, 0xc7, 0xb6 ), new DFBColor( 0x80, 0xcb, 0xbf, 0xbc ), new DFBColor( 0x80, 0x2a, 0x2e, 0x27 ), new DFBColor( 0x80, 0x04, 0x0e, 0x0d ), new DFBColor( 0x80, 0x6b, 0x6b, 0x6d ), new DFBColor( 0x80, 0x12, 0x0b, 0x05 ), new DFBColor( 0x80, 0xbe, 0xb4, 0xb1 ), new DFBColor( 0x80, 0x17, 0x1f, 0x23 ), new DFBColor( 0x80, 0xa3, 0xbb, 0xe1 ), new DFBColor( 0x80, 0x77, 0x71, 0x75 ), new DFBColor( 0x80, 0x75, 0x49, 0x41 ), new DFBColor( 0x80, 0xfe, 0xd2, 0x9b ), new DFBColor( 0x80, 0x68, 0x60, 0x5b ), new DFBColor( 0x80, 0xa0, 0x9f, 0xb7 ), new DFBColor( 0x80, 0xfb, 0xf5, 0xfc ), new DFBColor( 0x80, 0xd4, 0xe9, 0xfd ), new DFBColor( 0x80, 0x9d, 0x94, 0x8c ), new DFBColor( 0x80, 0xa6, 0x9f, 0x96 ), new DFBColor( 0x80, 0x56, 0x46, 0x34 ), new DFBColor( 0x80, 0x2a, 0x14, 0x07 ), new DFBColor( 0x80, 0x5e, 0x4b, 0x4c ), new DFBColor( 0x80, 0xd7, 0xce, 0xcb ), new DFBColor( 0x80, 0x04, 0x04, 0x28 ), new DFBColor( 0x80, 0x7b, 0x71, 0x69 ), new DFBColor( 0x80, 0x53, 0x54, 0x49 ), new DFBColor( 0x80, 0xbb, 0xac, 0xa8 ), new DFBColor( 0x80, 0x93, 0x9b, 0x92 ), new DFBColor( 0x80, 0x98, 0x89, 0x81 ), new DFBColor( 0x80, 0x29, 0x20, 0x13 ), new DFBColor( 0x80, 0x78, 0x54, 0x4a ), new DFBColor( 0x80, 0x3b, 0x3d, 0x34 ), new DFBColor( 0x80, 0x6c, 0x2a, 0x18 ), new DFBColor( 0x80, 0x54, 0x3c, 0x2f ), new DFBColor( 0x80, 0x8f, 0x8a, 0x83 ), new DFBColor( 0x80, 0x54, 0x40, 0x21 ), new DFBColor( 0x80, 0x7d, 0x78, 0x72 ), new DFBColor( 0x80, 0xd3, 0xb9, 0xb5 ), new DFBColor( 0x80, 0x50, 0x20, 0x0e ), new DFBColor( 0x80, 0x1b, 0x1c, 0x0e ), new DFBColor( 0x80, 0xcc, 0xc6, 0xbe ), new DFBColor( 0x80, 0xfd, 0xfc, 0xf9 ), new DFBColor( 0x80, 0xfd, 0xfe, 0xdf ), new DFBColor( 0x80, 0xb0, 0xa8, 0x98 ), new DFBColor( 0x80, 0xd8, 0xc8, 0xd5 ), new DFBColor( 0x80, 0x52, 0x48, 0x47 ), new DFBColor( 0x80, 0x04, 0x0a, 0x08 ), new DFBColor( 0x80, 0xd8, 0xd4, 0xd0 ), new DFBColor( 0x80, 0xd2, 0xda, 0xef ), new DFBColor( 0x80, 0xa6, 0x95, 0x8a ), new DFBColor( 0x80, 0xc9, 0xb8, 0xb3 ), new DFBColor( 0x80, 0xc6, 0xad, 0xa6 ), new DFBColor( 0x80, 0x3e, 0x25, 0x0e ), new DFBColor( 0x80, 0xeb, 0xd0, 0xc6 ), new DFBColor( 0x80, 0xf6, 0xdd, 0xbe ), new DFBColor( 0x80, 0x2e, 0x1e, 0x06 ), new DFBColor( 0x80, 0xfd, 0xfc, 0xeb ), new DFBColor( 0x80, 0xbf, 0xba, 0xb4 ), new DFBColor( 0x80, 0x50, 0x60, 0x54 ), new DFBColor( 0x80, 0x1c, 0x0c, 0x05 ), new DFBColor( 0x80, 0xe3, 0xdc, 0xef ), new DFBColor( 0x80, 0x11, 0x0b, 0x25 ), new DFBColor( 0x80, 0x1e, 0x14, 0x14 ), new DFBColor( 0x80, 0xf1, 0xe1, 0xda ), new DFBColor( 0x80, 0x34, 0x33, 0x21 ), new DFBColor( 0x80, 0xe6, 0xf8, 0xe1 ), new DFBColor( 0x80, 0x52, 0x45, 0x34 ), new DFBColor( 0x80, 0x47, 0x02, 0x02 ), new DFBColor( 0x80, 0x85, 0x79, 0x7e ), new DFBColor( 0x80, 0xec, 0xe8, 0xe1 ), new DFBColor( 0x80, 0xee, 0xd6, 0xca ), new DFBColor( 0x80, 0x7d, 0x7e, 0x76 ), new DFBColor( 0x80, 0x78, 0x69, 0x53 ), new DFBColor( 0x80, 0xf9, 0xe9, 0xd2 ), new DFBColor( 0x80, 0xf7, 0xed, 0xec ), new DFBColor( 0x80, 0x5e, 0x55, 0x59 ), new DFBColor( 0x80, 0x34, 0x4a, 0x34 ), new DFBColor( 0x80, 0x92, 0x91, 0x94 ), new DFBColor( 0x80, 0xb0, 0xa8, 0xa4 ), new DFBColor( 0x80, 0x31, 0x24, 0x23 ), new DFBColor( 0x80, 0xe8, 0xdc, 0xd9 ), new DFBColor( 0x80, 0xfc, 0xf4, 0xf1 ), new DFBColor( 0x80, 0xa5, 0xb4, 0xc1 ), new DFBColor( 0x80, 0x8d, 0x8a, 0x97 ), new DFBColor( 0x80, 0xfc, 0xc6, 0xc0 ), new DFBColor( 0x80, 0x6a, 0x5d, 0x4f ), new DFBColor( 0x80, 0x72, 0x60, 0x58 ), new DFBColor( 0x80, 0xef, 0xb8, 0xaa ), new DFBColor( 0x80, 0x2a, 0x2c, 0x14 ), new DFBColor( 0x80, 0xae, 0xa0, 0x95 ), new DFBColor( 0x80, 0x36, 0x26, 0x0d ), new DFBColor( 0x80, 0x6c, 0x6e, 0x63 ), new DFBColor( 0x80, 0xce, 0x72, 0x5e ), new DFBColor( 0x80, 0xfc, 0xf5, 0xdd ), new DFBColor( 0x80, 0xa8, 0x85, 0x79 ), new DFBColor( 0x80, 0xca, 0xb9, 0xc2 ), new DFBColor( 0x80, 0x6a, 0x54, 0x47 ), new DFBColor( 0x80, 0x86, 0x7e, 0x78 ), new DFBColor( 0x80, 0xb7, 0xc4, 0xe2 ), new DFBColor( 0x80, 0xcc, 0xa2, 0x64 ), ) ); ?> |