Re: [Kicad-developers] How to make single-plane .cpp from .png?

2019-08-07 Thread Johannes Sprigode
Thanks Nick, that made the resulting cpp files even smaller thanks to
pngcrush!

On 6/08/19 9:15 PM, Nick Østergaard wrote:
> Maybe I am off here, butnis there any reason why you can just enable
> the MAINTAIN_PNGS option to make it convert the svg to cpp?
>
> tir. 6. aug. 2019 06.01 skrev Johannes Sprigode  >:
>
> If I may chip in.
>
> The new symbols (16x16) I created for the horizontal text are done in
> inkscape and exported as png.
>
> Post processed in gimp to an 8-bit grey scale with alpha which reduced
> them from ~300 to ~170 something bytes.
>
> They still appear to have the same quality as you have seen. Settings
> attached.
>
> The same should be doable for those cursors, or anything alike.
>
> Cheers
>
> Johannes
>
> On 6/08/19 9:51 AM, Jeff Young wrote:
> > If you open the PNG in Gimp and then export as XBM it works. 
> (Note that while wxBitmap’s constructor purports to support sizes,
> if you pass anything under 32x32 you’ll get garbage.)
> >
> > However, the cursors aren’t greyscale (they’re true
> black-and-white), so the whole SVG source idea produces some
> pretty ugly cursors.  I think we’ll have to specify them as bitmaps.
> >
> >> On 5 Aug 2019, at 15:25, Jeff Young  > wrote:
> >>
> >> I also tried online converters for PNG -> XBM and directly from
> the source (SVG -> XBM), but they all give me black images….
> >>
> >>
> >>> On 5 Aug 2019, at 15:15, Jeff Young  > wrote:
> >>>
> >>> I found doc on the colour modes; 0 is monochrome without
> alpha, 2 is RGB, 4 is monochrome with alpha and 6 is RGBA.
> >>>
> >>> So -c 0 should be correct. 
> >>>
> >>> But it appears wxBitmap is expecting XBM data rather than PNG
> data.  Hm…..
> >>>
> >>>
>  On 5 Aug 2019, at 14:46, Jeff Young  > wrote:
> 
>  pngcrush -c 0 makes a single-plane char array, but it appears
> to be in a different order or something (the array is the right
> size, but produces a garbage cursor).
> 
>  Anyone know what the other colour modes are?  (0, 2, 4, 6)
> 
> > On 5 Aug 2019, at 13:22, Jeff Young  > wrote:
> >
> > Our PNG2cpp.cmake script makes a 3 or 4 plane (ie: colour)
> char array.
> >
> > wxWidgets’ wxBitmap() constructor needs a single plane char
> array.  John Beard created a couple for the SPICE cursors, but I’m
> not sure how he did it.
> >
> > Thanks,
> > Jeff.
> >
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to     : kicad-developers@lists.launchpad.net
> 
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> 
>  ___
>  Mailing list: https://launchpad.net/~kicad-developers
>  Post to     : kicad-developers@lists.launchpad.net
> 
>  Unsubscribe : https://launchpad.net/~kicad-developers
>  More help   : https://help.launchpad.net/ListHelp
> >>>
> >>> ___
> >>> Mailing list: https://launchpad.net/~kicad-developers
> >>> Post to     : kicad-developers@lists.launchpad.net
> 
> >>> Unsubscribe : https://launchpad.net/~kicad-developers
> >>> More help   : https://help.launchpad.net/ListHelp
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to     : kicad-developers@lists.launchpad.net
> 
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to     : kicad-developers@lists.launchpad.net
> 
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@lists.launchpad.net
> 
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


signature.asc
Description: OpenPGP digital signature

[Kicad-developers] Coding style question

2019-08-07 Thread Tomasz Wlostowski
Hi Fellow Devs,

I'm fixing some memory management issues in the P by introducing smart
pointers here and there. Do we have any coding policy on typedefing
shared_ptrs/unique_ptrs?

Should I:
- always use std::shared_ptr explicitly?
- or am I allowed to typedef std::shared_ptr TYPE_SP (or something
alike)?

Cheers,
Tom


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] GAL layer question

2019-08-07 Thread Tomasz Wlostowski
On 07/08/2019 19:45, Jeff Young wrote:
> Hi Orson,
> 
> I wanted to keep the selection highlight shadows uncached, but they need to 
> go above the device backgrounds and sheet backgrounds.
> 
> I can go ahead and put them in cached.  (I just need to add some code to 
> redraw them when the zoom level changes.)
>
Hi Jeff,

IIRC selected items are never cached in GAL, at least in pcbnew (select
moves them to m_selection which is a non-cached VIEW_GROUP).

Cheers,
Tom

> 
> Cheers,
> Jeff.
> 
>> On 7 Aug 2019, at 13:24, Maciej Suminski  wrote:
>>
>> Hi Jeff,
>>
>> I am afraid it is not possible. We use two framebuffers for rendering:
>> the cached one keeps in the video memory vertices that are not likely to
>> change in the near future, the non-cached is for vertices that are
>> modified (e.g. dragged tracks) and are send to the GPU every frame.
>>
>> To boost the performance even further, the framebuffers take advantage
>> of composition. The framebuffers are rendered to textures, then they are
>> blitted on the screen: first cached, then non-cached. Thanks to that,
>> the cached framebuffer might be reused for many frames when only
>> non-cached items are updated, but the drawback is that one cannot
>> interleave the rendering order.
>>
>> Is there a particular problem you are trying to solve? Perhaps it can be
>> implemented in another way.
>>
>> Cheers,
>> Orson
>>
>> On 8/3/19 11:09 PM, Jeff Young wrote:
>>> How do I interleave a GAL non-cached layer with cached layers?
>>>
>>> The selection shadow is currently non-cached, but because of that is always 
>>> drawn behind device fills.  Is there a way to put it between LAYER_DEVICE 
>>> and LAYER_DEVICE_BACKGROUND (both of which are cached in OpenGL)?
>>> ___
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] GAL layer question

2019-08-07 Thread Jeff Young
Hi Tom,

I don’t know a thing about them but it’s probably time I bone up on this whole 
OpenGL thing anyway, so I’ll look into it.

Cheers,
Jeff.


> On 7 Aug 2019, at 19:17, Tomasz Wlostowski  wrote:
> 
> On 07/08/2019 19:45, Jeff Young wrote:
>> Hi Orson,
>> 
>> I wanted to keep the selection highlight shadows uncached, but they need to 
>> go above the device backgrounds and sheet backgrounds.
>> 
>> I can go ahead and put them in cached.  (I just need to add some code to 
>> redraw them when the zoom level changes.)
> 
> Hi Jeff,
> 
> How about using a shader for drawing selection highlights/overlays in
> OpenGL (fallback has no distinction between cached/noncached anyway)?
> 
> Tom


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] GAL layer question

2019-08-07 Thread Tomasz Wlostowski
On 07/08/2019 19:45, Jeff Young wrote:
> Hi Orson,
> 
> I wanted to keep the selection highlight shadows uncached, but they need to 
> go above the device backgrounds and sheet backgrounds.
> 
> I can go ahead and put them in cached.  (I just need to add some code to 
> redraw them when the zoom level changes.)

Hi Jeff,

How about using a shader for drawing selection highlights/overlays in
OpenGL (fallback has no distinction between cached/noncached anyway)?

Tom

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Anyone know where the sources to the simulation cursors are?

2019-08-07 Thread Jeff Young
Hi Orson,

I needed to make a current-probe, so I created a new voltage-probe to match.

Try the SPICE probe out and see what you think.  (You should get a 
voltage-probe over wires and a current-probe over pins.)

Cheers,
Jeff.


> On 7 Aug 2019, at 13:37, Maciej Suminski  wrote:
> 
> Hi Jeff,
> 
> I am afraid I have lost them in a hard drive crash. I should have
> committed them to the repository, my bad. I have an idea how to quickly
> convert them back to the original version. Are you still interested in
> the sources?
> 
> Cheers,
> Orson
> 
> On 8/5/19 6:06 PM, Jeff Young wrote:
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] GAL layer question

2019-08-07 Thread Jeff Young
Hi Orson,

I wanted to keep the selection highlight shadows uncached, but they need to go 
above the device backgrounds and sheet backgrounds.

I can go ahead and put them in cached.  (I just need to add some code to redraw 
them when the zoom level changes.)

Cheers,
Jeff.

> On 7 Aug 2019, at 13:24, Maciej Suminski  wrote:
> 
> Hi Jeff,
> 
> I am afraid it is not possible. We use two framebuffers for rendering:
> the cached one keeps in the video memory vertices that are not likely to
> change in the near future, the non-cached is for vertices that are
> modified (e.g. dragged tracks) and are send to the GPU every frame.
> 
> To boost the performance even further, the framebuffers take advantage
> of composition. The framebuffers are rendered to textures, then they are
> blitted on the screen: first cached, then non-cached. Thanks to that,
> the cached framebuffer might be reused for many frames when only
> non-cached items are updated, but the drawback is that one cannot
> interleave the rendering order.
> 
> Is there a particular problem you are trying to solve? Perhaps it can be
> implemented in another way.
> 
> Cheers,
> Orson
> 
> On 8/3/19 11:09 PM, Jeff Young wrote:
>> How do I interleave a GAL non-cached layer with cached layers?
>> 
>> The selection shadow is currently non-cached, but because of that is always 
>> drawn behind device fills.  Is there a way to put it between LAYER_DEVICE 
>> and LAYER_DEVICE_BACKGROUND (both of which are cached in OpenGL)?
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] 5.1.3 release

2019-08-07 Thread Nick Østergaard
Yes. There is an issue on the 5.1.3 of kicad-doc that and we need to
include the fix for that in 5.1.4 and test it.

ons. 7. aug. 2019 17.44 skrev Wayne Stambaugh :

>
>
> On 8/7/19 9:33 AM, Steven A. Falco wrote:
> > On 8/5/19 9:35 AM, Steven A. Falco wrote:
> >> On 8/4/19 6:02 PM, Rene Pöschl wrote:
> >>> On 04/08/2019 19:03, Wayne Stambaugh wrote:
>  Please tag the doc, translation,
>  and library repos to 5.1.4 using the same commit as 5.1.3.  I'll
> update
>  the release announcement and there will be no official 5.1.3 release.
>  Thank you everyone for your cooperation and patience.
> 
>  Cheers,
> 
>  Wayne
> >>>
> >>>
> >>> The library is tagged
> >>
> >> Good - as soon as doc and i18n get tagged I'll start a Fedora build.
> >>
> >
> > Still waiting for doc and i18n to be tagged.  Someone please tag them so
> I can start a 5.1.4 build.
> >
> >   Thanks,
> >   Steve
> >
>
> Is there any reason why we haven't tagged the doc and i18n repos yet?
> The 5.1.4 tag should be the same commit as 5.1.3.  I can do it if the
> need be.
>
> Cheers,
>
> Wayne
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] 5.1.3 release

2019-08-07 Thread Wayne Stambaugh


On 8/7/19 9:33 AM, Steven A. Falco wrote:
> On 8/5/19 9:35 AM, Steven A. Falco wrote:
>> On 8/4/19 6:02 PM, Rene Pöschl wrote:
>>> On 04/08/2019 19:03, Wayne Stambaugh wrote:
 Please tag the doc, translation,
 and library repos to 5.1.4 using the same commit as 5.1.3.  I'll update
 the release announcement and there will be no official 5.1.3 release.
 Thank you everyone for your cooperation and patience.

 Cheers,

 Wayne
>>>
>>>
>>> The library is tagged
>>
>> Good - as soon as doc and i18n get tagged I'll start a Fedora build.
>>
> 
> Still waiting for doc and i18n to be tagged.  Someone please tag them so I 
> can start a 5.1.4 build.
> 
>   Thanks,
>   Steve
> 

Is there any reason why we haven't tagged the doc and i18n repos yet?
The 5.1.4 tag should be the same commit as 5.1.3.  I can do it if the
need be.

Cheers,

Wayne

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] 5.1.3 release

2019-08-07 Thread Steven A. Falco
On 8/5/19 9:35 AM, Steven A. Falco wrote:
> On 8/4/19 6:02 PM, Rene Pöschl wrote:
>> On 04/08/2019 19:03, Wayne Stambaugh wrote:
>>> Please tag the doc, translation,
>>> and library repos to 5.1.4 using the same commit as 5.1.3.  I'll update
>>> the release announcement and there will be no official 5.1.3 release.
>>> Thank you everyone for your cooperation and patience.
>>>
>>> Cheers,
>>>
>>> Wayne
>>
>>
>> The library is tagged
> 
> Good - as soon as doc and i18n get tagged I'll start a Fedora build.
> 

Still waiting for doc and i18n to be tagged.  Someone please tag them so I can 
start a 5.1.4 build.

Thanks,
Steve


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Anyone know where the sources to the simulation cursors are?

2019-08-07 Thread Maciej Suminski
Hi Jeff,

I am afraid I have lost them in a hard drive crash. I should have
committed them to the repository, my bad. I have an idea how to quickly
convert them back to the original version. Are you still interested in
the sources?

Cheers,
Orson

On 8/5/19 6:06 PM, Jeff Young wrote:
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] GAL layer question

2019-08-07 Thread Maciej Suminski
Hi Jeff,

I am afraid it is not possible. We use two framebuffers for rendering:
the cached one keeps in the video memory vertices that are not likely to
change in the near future, the non-cached is for vertices that are
modified (e.g. dragged tracks) and are send to the GPU every frame.

To boost the performance even further, the framebuffers take advantage
of composition. The framebuffers are rendered to textures, then they are
blitted on the screen: first cached, then non-cached. Thanks to that,
the cached framebuffer might be reused for many frames when only
non-cached items are updated, but the drawback is that one cannot
interleave the rendering order.

Is there a particular problem you are trying to solve? Perhaps it can be
implemented in another way.

Cheers,
Orson

On 8/3/19 11:09 PM, Jeff Young wrote:
> How do I interleave a GAL non-cached layer with cached layers?
> 
> The selection shadow is currently non-cached, but because of that is always 
> drawn behind device fills.  Is there a way to put it between LAYER_DEVICE and 
> LAYER_DEVICE_BACKGROUND (both of which are cached in OpenGL)?
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp