Go to advanced search

by blackshard83
Mon Jun 06, 2016 3:03 pm
Forum: Graphics programming
Topic: Possible to use OpenGL (not GLES) with a dispmanx context?
Replies: 2
Views: 2409

Re: Possible to use OpenGL (not GLES) with a dispmanx contex

I'm not a OpenGL guru, but aren't OpenGLES a subset of OpenGL? Actually what I've seen is that broadcom provides EGL, OpenGLES and OpenVG libraries and the can render only to framebuffer. Opensource driver instead, but I can be wrong, should be able to render only to X11 windows via OpenGL (or OpenG...
by blackshard83
Tue Mar 01, 2016 3:00 pm
Forum: Graphics programming
Topic: Displaying images via GPU with Python?
Replies: 6
Views: 5575

Re: Displaying images via GPU with Python?

I had success in compiling and then modifying the omxplayer for my purposes. It is the best way just because a lot of the burden is already done (read: handling OMX components together). I studied a lot the code of the omxplayer, yet some parts are obscure to me (no comments at all), and OMX compone...
by blackshard83
Tue Feb 23, 2016 9:18 am
Forum: OpenMAX
Topic: OMX Audio code working properly?
Replies: 6
Views: 2719

Re: OMX Audio code working properly?

Yes, I guessed it after. Actually I wan't corrupting the pAppPrivate field deliberately, it was a side effect of ilclient_get_input_buffer() calls. At last I had to tweak ilclient library to add a memset() call to clear the buffers in ilclient_enable_port_buffers() function, right after the vcos_mal...
by blackshard83
Mon Feb 22, 2016 3:55 pm
Forum: OpenMAX
Topic: OMX Audio code working properly?
Replies: 6
Views: 2719

Re: OMX Audio code working properly?

It removed the "corrupt" message. About the "ilin buffer", it was an issue with ilclient library: I used ilclient_get_input_buffer() function to get the buffers to clean them *before* the actual audio_render callback. This caused some issues to ilclient library that refused to free all the buffers a...
by blackshard83
Mon Feb 22, 2016 8:19 am
Forum: OpenMAX
Topic: OMX Audio code working properly?
Replies: 6
Views: 2719

Re: OMX Audio code working properly?

No, I haven't. I'm going to try as soon as possible!

edit: got it, issuing cache_flush command removed the corrupt messages!
by blackshard83
Fri Feb 19, 2016 4:53 pm
Forum: OpenMAX
Topic: OMX Audio code working properly?
Replies: 6
Views: 2719

OMX Audio code working properly?

Hello all, I'm working on an self-made audio engine which decodes/mixes multiple samples in realtime via software using the ARM. I have solved all my problems excepts those regarding the interface to the RPi audio hardware. I have to use the OMX audio_render component because I don't (and can't) hav...
by blackshard83
Fri Feb 19, 2016 2:48 pm
Forum: Graphics programming
Topic: Any plans for Vulkan support?
Replies: 0
Views: 1674

Any plans for Vulkan support?

Hello,

I know the GPU is quite old now and a bit obsolete, but I'd like to ask if are there any plans to support recent Vulkan APIs for VideoCore IV from broadcom?
by blackshard83
Wed Feb 10, 2016 3:46 pm
Forum: C/C++
Topic: Compile on Pi2, run on PiB
Replies: 2
Views: 584

Re: Compile on Pi2, run on PiB

Have you tried also -mfpu=vfp flag? RPi2 has vfp version 4 (with neon too), instead Rpi1 have vfp version 2. You have to force vfp2 (enforcing -mfpu=vfp) if you want compatible code.
by blackshard83
Mon Dec 14, 2015 11:05 am
Forum: OpenVG
Topic: Memory problem using pbuffers: EGL_BAD_ALLOC
Replies: 3
Views: 1770

Re: Memory problem using pbuffers: EGL_BAD_ALLOC

Maybe you have also to call eglReleaseThread() and eglTerminate() over your display handle when the process is going to terminate. I found myself that eglTerminate() removes a lot of garbage, leaving the videocore memory heap as clean as it was before. Don't forget to call eglInitialize() at the beg...
by blackshard83
Thu Dec 10, 2015 1:06 pm
Forum: Graphics programming
Topic: OpenWF state on raspberry pi
Replies: 0
Views: 1409

OpenWF state on raspberry pi

Hello, I see there is a WFC directory inside /opt/vc/include, I suppose this is an implementation of Khronos OpenWF compositing specifications and it should do the same work as dispmanx, but at least it has should have a documented API. I'd like to play with it, is there a place where I can find som...
by blackshard83
Thu Nov 19, 2015 11:53 am
Forum: C/C++
Topic: Documentation for VCOS structures and services?
Replies: 3
Views: 681

Re: Documentation for VCOS structures and services?

So basically there is nothing so much interesting, just wrappers to the OS underneath?
by blackshard83
Wed Nov 18, 2015 11:08 am
Forum: C/C++
Topic: Documentation for VCOS structures and services?
Replies: 3
Views: 681

Documentation for VCOS structures and services?

Hello all, I was wondering about all the include files in /opt/vc/include/interface/vcos. I read something and I figured they can create realtime threads, interact with the realtime OS of the videocore chip and some other magical things I'd like to understand :) Is there any documentation, tutorials...
by blackshard83
Wed Nov 18, 2015 11:00 am
Forum: Graphics programming
Topic: Dispmanx - limit of number of displayed elements?
Replies: 11
Views: 3950

Re: Dispmanx - limit of number of displayed elements?

If you're not going to use 3D transformations, textures and such stuff, you may stick to OpenVG for 2D drawings.
by blackshard83
Wed Oct 21, 2015 12:11 pm
Forum: General discussion
Topic: Going crazy with PHP and MySql
Replies: 12
Views: 1250

Re: Going crazy with PHP and MySql

Massi wrote: Ps: dougie afaik mysql functions are something like abandoned in php (deprecated since 5.5.0)..
mysqli is a better way :)
PDO as an abstraction layer would be even better than using the driver directly.
by blackshard83
Sun Jul 12, 2015 6:48 pm
Forum: Graphics programming
Topic: Displaying images via GPU with Python?
Replies: 6
Views: 5575

Re: Displaying images via GPU with Python?

The library you linked is useful to decode a JPEG image using the GPU, but it doesn't look to me that it shows anything on screen. You could use it just for hardware decoding. To display something on screen, you have to use EGL and OpenVG, if you want accelerated GPU features, or use the framebuffer...
by blackshard83
Fri Apr 10, 2015 1:00 pm
Forum: General discussion
Topic: Power cycling USB
Replies: 7
Views: 4030

Re: Power cycling USB

Thanks all,

the link rpdom gave looks like it is exactly what I was looking for!
by blackshard83
Thu Apr 09, 2015 8:42 am
Forum: General discussion
Topic: Power cycling USB
Replies: 7
Views: 4030

Re: Power cycling USB

Because a reboot doesn't solve the issue. Soft rebooting (without power cycling) leave the USB stick non accessible.
A full power cycle instead restores the USB stick functionality.
by blackshard83
Wed Apr 08, 2015 3:51 pm
Forum: General discussion
Topic: Power cycling USB
Replies: 7
Views: 4030

Power cycling USB

Hi all, is it possible, from the raspbian command line, to do a full power cycle of the raspberry USB hub/port? I have some raspberry in a remote position with a USB stick attached to them. Sometimes, maybe because of short power failures, the USB stick detatches or goes into inconsistent state, dis...
by blackshard83
Thu Jan 08, 2015 4:43 pm
Forum: Graphics programming
Topic: How to wait for vsync? (vc_dispmanx_update_submit_sync?)
Replies: 2
Views: 3031

Re: How to wait for vsync? (vc_dispmanx_update_submit_sync?)

Thank you, it's never too late ;)

I went deeper into driver code, but could not understand how EGL do vsync. The approach I described in the first post didn't work.
I'll try your code as soon as I can, I hope it works as expected in my project too.
by blackshard83
Fri Dec 19, 2014 8:35 am
Forum: Graphics programming
Topic: Changing resolution on the fly - not so perfect
Replies: 5
Views: 2635

Re: Changing resolution on the fly - not so perfect

To me, as far as I remember tvservice -e always did the job fine, but I never stressed it so much (occasionally switch from 1080p to 720p and viceversa)
by blackshard83
Fri Dec 19, 2014 8:31 am
Forum: OpenVG
Topic: VG_OUT_OF_MEMORY_ERROR
Replies: 2
Views: 1822

Re: VG_OUT_OF_MEMORY_ERROR

Maybe you were just experiencing some sort of heavy memory fragmentation. My project uses lots of small buffers (rendered glyph images) and now I have 31 different free memory blocks in my heap, ranging from 48 bytes to 130 megabytes. I guess you know, but "vcdbg reloc" shows the current heap status...
by blackshard83
Fri Nov 14, 2014 4:13 pm
Forum: OpenMAX
Topic: Are there any audio hardware decoders available
Replies: 2
Views: 2089

Re: Are there any audio hardware decoders available

I took a look into an old version of omxplayer code and found some hints about hardware decoding for mp3 streams, DTS and AC3/EAC3 streams.

You may check omxplayer source code in file OMXAudio.cpp and look for CanHWDecode() method.
by blackshard83
Mon Nov 03, 2014 10:12 am
Forum: Graphics programming
Topic: How to rotate graphics at any angle?
Replies: 11
Views: 4856

Re: How to rotate graphics at any angle?

You could use the GPU via openGL ES to do all the hard stuff. 1) Render the bitmap font into a texture 2) Load texture into GPU. 3) Load a vertex shader that will transform the area of the texture containing a letter into a position along the curve for the tuning dial. 3)For each letter to be displ...
by blackshard83
Fri Oct 31, 2014 11:37 am
Forum: Graphics programming
Topic: How to wait for vsync? (vc_dispmanx_update_submit_sync?)
Replies: 2
Views: 3031

How to wait for vsync? (vc_dispmanx_update_submit_sync?)

Hello again, During the experimentation with concurrent eglSwapBuffers() from different threads, I discovered the eglSwapInterval() method that allows the eglSwapBuffers() calls to return immediately and not wait for vsync (which is the default behavior) I would like to know what is the best and mos...
by blackshard83
Thu Oct 30, 2014 2:50 pm
Forum: Graphics programming
Topic: Concurrent eglSwapBuffers, doing it synchronously
Replies: 1
Views: 1831

Re: Concurrent eglSwapBuffers, doing it synchronously

Back here with some updates. I found that, in the very latest bits of code (raspbian from september 2014 + rpi-update), dispmanx offers a vc_dispmanx_vsync_callback function that registers a callback which is called on each vsync. So now my graphics threads do this in loop: 1) draw the things using ...

Go to advanced search