[go-nuts] MPEG-1 Video decoder, MP2 Audio decoder and MPEG-PS Demuxer in pure Go

2022-10-23 Thread Milan Nikolic


A simple way to get video playback into your app or game.
https://github.com/gen2brain/mpeg

There is also a live web example here https://gen2brain.github.io/mpeg. The 
CPU usage is higher than on the desktop but it is still usable.

Interestingly, while TinyGo produced 4x smaller binary, the performance is 
awful. There are large CPU spikes that make it unusable.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/24361c99-e332-4d41-a1bf-3a3d85d584a3n%40googlegroups.com.


[go-nuts] iup-go - Cross-platform UI library with native controls

2022-05-30 Thread Milan Nikolic
https://github.com/gen2brain/iup-go

These are Go bindings for IUP, an amazing C library designed to help you 
build NATIVE user interfaces in a cross-platform way.
It was developed at PUC-Rio, the same university as Lua, it started as a 
research project in the mid-90s, MIT licensed.
The project is alive and is maintained ever since. The API is very simple 
thanks to its attribute mechanism and the learning curve for a new user is 
often faster.

The C source code is included and compiled together with bindings, much 
better than if you include static libraries in the package, making it more 
portable.

These are just bindings for the core IUP library, other components like IM 
(image library) or CD (canvas drawing) are not included.
I just added an `ImageFromImage` function to load `image.Image`, we have 
image support in the standard library. And CD comes with many dependencies, 
macOS support doesn't exist, and it is complicated to include.
That means there is no support for additional controls (`matrix` and `cell` 
are important ones), but there is a chance (I guess) they can be rewritten 
to use only basic IUP drawing, which happened before with e.g. controls 
like colorbrowser, gauge, etc.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e19cb9fd-13da-4c99-a056-a2df2226f17an%40googlegroups.com.