supplierdeeply

Grid Preview Tool

  • 4 Replies
  • 945 Views
Grid Preview Tool
« on: 28 / September / 2014, 09:32:55 »
Advertisements
A little something I hacked up because the DataGhost site was off-line.

http://marquisdegeek.com/rnd_chdkgrids

Any help with sorting the palettes would be appreciated.

Re: Grid Preview Tool
« Reply #1 on: 28 / September / 2014, 14:49:52 »
A little something I hacked up because the DataGhost site was off-line.

http://marquisdegeek.com/rnd_chdkgrids

Any help with sorting the palettes would be appreciated.
Very nice! Thanks

What about to revive the DataGhost's Text2Grid Utility too?

Re: Grid Preview Tool
« Reply #2 on: 28 / September / 2014, 15:18:04 »
Any help with sorting the palettes would be appreciated.
Ah yes - the magic of Canon color palettes. 

Simply put, Canon cameras typically have two or more palettes that they use to display text & icons The palette in use is a function of the current Canon mode  ( i.e. playback, shooting, menu, function menu  etc).    A palette is essentially an array of 256 64bit color values in an AYUV layout.   The tricky thing is that the AYUV value placed in each of the 256 color positions changes between palettes. And to make things really exciting,  pretty much every camera has different palettes and different interpretations of what AYUV means.  However.  cell 0x00 usually gets you TRANPARENT, 0x01 is WHITE and cell 0xFF is usually gets you BLACK.  The rest are a toss-up and some colors might not be represented at all.

Here's an old screen shot of the CHDK display of a currently loaded palette :

You can access this through the CHDK Settings -> Color Settings -> Draw Palette menu item.

So for the Grids thingy you are working on,  the colors that will show up on any particular cameras are pretty much arbitrary.  That's why the Grid menu lets you change the colors used on the camera.  You pretty much have to pick an override color every time.  And even then,  you need to be in shooting mode to see the colors from the Canon shooting palette when you pick a new color.

The CHDK Grid stuff is pretty old and could probably use a refresh. More recently,  there have been standard color definitions used in places.  In addition,  many newer ports have the ability to overwrite parts of the Canon palettes with "consistent" colors. 

ref : http://chdk.setepontos.com/index.php?topic=8306

Ported :   A1200    SD940   G10    Powershot N    G16

Re: Grid Preview Tool
« Reply #3 on: 30 / September / 2014, 05:40:28 »
Very nice! Thanks

What about to revive the DataGhost's Text2Grid Utility too?

Your wish is my command! :)

I'm not sure how the grid code handles a line from x,y to x,y (is it a dot, or nothing?) but I've created a simple algorithm that produces OK results. It's a little too bold, imo, but that could be the canvas rendering and not the line generation algorithm.

Back on the same page:

http://www.marquisdegeek.com/rnd_chdkgrids



Re: Grid Preview Tool
« Reply #4 on: 30 / September / 2014, 07:36:03 »
Your wish is my command! :)

I'm not sure how the grid code handles a line from x,y to x,y (is it a dot, or nothing?) but I've created a simple algorithm that produces OK results. It's a little too bold, imo, but that could be the canvas rendering and not the line generation algorithm.

Back on the same page:

http://www.marquisdegeek.com/rnd_chdkgrids

Bravo!
Very appreciated!
 :)

Code: [Select]
@title Text
#By SuperManu

@line141,152,147,152,17
@line144,152,144,162,17
@line145,152,145,162,17
@line151,152,152,152,17
@line151,152,151,162,17
@line152,152,152,162,17
@line151,155,156,155,17
@line156,155,156,162,17
@line156,156,157,156,17
@line157,156,157,162,17
@line161,155,165,155,17
@line165,155,165,162,17
@line165,156,166,156,17
@line166,156,166,162,17
@line161,157,166,157,17
@line161,157,161,162,17
@line160,158,161,158,17
@line160,158,160,161,17
@line161,161,166,161,17
@line169,155,174,155,17
@line169,155,169,162,17
@line170,155,170,162,17
@line174,155,174,162,17
@line174,156,175,156,17
@line175,156,175,162,17
@line178,152,179,152,17
@line178,152,178,162,17
@line179,152,179,162,17
@line183,155,184,155,17
@line183,155,183,157,17
@line182,156,183,156,17
@line182,156,182,158,17
@line181,157,182,157,17
@line181,157,181,160,17
@line178,158,181,158,17
@line181,159,182,159,17
@line182,159,182,161,17
@line182,160,183,160,17
@line183,160,183,162,17
@line183,161,184,161,17
@line195,155,196,155,17
@line195,155,195,161,17
@line196,155,196,162,17
@line200,155,201,155,17
@line200,155,200,165,17
@line201,155,201,164,17
@line196,161,201,161,17
@line196,164,200,164,17
@line205,155,209,155,17
@line205,155,205,162,17
@line209,155,209,162,17
@line204,156,205,156,17
@line204,156,204,161,17
@line209,156,210,156,17
@line210,156,210,161,17
@line205,161,209,161,17
@line213,155,214,155,17
@line213,155,213,161,17
@line214,155,214,162,17
@line218,155,219,155,17
@line218,155,218,162,17
@line219,155,219,162,17
@line214,161,219,161,17
« Last Edit: 30 / September / 2014, 07:43:35 by fabri22 »

 

Related Topics