Go to advanced search

by cmarty
Thu Sep 07, 2017 10:57 am
Forum: Graphics programming
Topic: How to free unused dispmanx layer (in case of SIGSEGV)
Replies: 7
Views: 2871

How to free unused dispmanx layer (in case of SIGSEGV)

Hello. I have opengl app (using openframeworks). I try to solve the situation when my program receive SIGSEGV (or for debug purpose I send him SIGSEGV signal) the program do not free dispmanx layer (resource) and last state of this dispmanx layer is still present on display. When I run program again...
by cmarty
Thu Dec 01, 2016 9:23 am
Forum: OpenMAX
Topic: omx_image stops working after latest rpi firmware update
Replies: 2
Views: 3304

omx_image stops working after latest rpi firmware update

Hello. I was happy using example omx_image https://github.com/brynthomas/omx_image for loading jpeg images directly to texture with help of OMX_UseEGLImage. But after rpi firmware update Commits on Oct4 2016 https://github.com/Hexxeh/rpi-firmware/commit/667cfabe63bc663383559ef88317e86f9bd41e45 it st...
by cmarty
Sun Mar 29, 2015 11:58 am
Forum: Advanced users
Topic: Slow down Rpi 2 to work at same speed as Rpi B+
Replies: 11
Views: 2229

Re: Slow down Rpi 2 to work at same speed as Rpi B+

That is true. After slowdown frequency, restricted process to only one core, use the same amount of memory, the new raspi 2 is still more powerfull than old Raspi.(especially in video/image decoding). It is really with help of 512kb L2 cache and use of NEON instructions. I compared it when switching...
by cmarty
Fri Mar 27, 2015 9:04 am
Forum: Advanced users
Topic: Slow down Rpi 2 to work at same speed as Rpi B+
Replies: 11
Views: 2229

Re: Slow down Rpi 2 to work at same speed as Rpi B+

I even tried to setup on Rpi 2 in /boot/config.txt arm_freq=600 sdram_freq=400 but Rpi2 is still faster than Rpi. I notice first difference in cache reading from SD card (same SDcards): On Rpi2 and Rpi is emmc clock same : vcgencmd measure_clock emmc frequency(47)=250000000 On Rpi2: hdparm -t /dev/m...
by cmarty
Fri Mar 27, 2015 7:22 am
Forum: Advanced users
Topic: Slow down Rpi 2 to work at same speed as Rpi B+
Replies: 11
Views: 2229

Re: Slow down Rpi 2 to work at same speed as Rpi B+

It is my mistake. Sorry for misreading. When I put it into the cmdline.txt it works now.
It is better now. But processor speed is still quicker than Rpi B and this is still visible.
Is there a way how to underclock the 900Mhz cpu to 700Mhz.
by cmarty
Fri Mar 27, 2015 6:55 am
Forum: Advanced users
Topic: Slow down Rpi 2 to work at same speed as Rpi B+
Replies: 11
Views: 2229

Re: Slow down Rpi 2 to work at same speed as Rpi B+

I have try isolcpus=1,2,3 in config.txt do the reboot and no change top says: top - 08:45:08 up 10 min, 1 user, load average: 0.71, 0.38, 0.19 Tasks: 83 total, 1 running, 82 sleeping, 0 stopped, 0 zombie %Cpu0 : 1.0 us, 4.5 sy, 0.0 ni, 81.7 id, 12.8 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : 1.0 us, 17.6 sy...
by cmarty
Thu Mar 26, 2015 1:08 pm
Forum: Advanced users
Topic: Slow down Rpi 2 to work at same speed as Rpi B+
Replies: 11
Views: 2229

Slow down Rpi 2 to work at same speed as Rpi B+

Hello. Sounds strange. But is there a way how to slow down the Rpi 2 (cpu frequency, disable quad cores, get rid of 512mb of ram) to work at speed similar to Rpi B+. I have project playing several video files and switching between them and Rpi 2 is visibly faster in that than old Rpi B+. In some cas...
by cmarty
Thu Oct 02, 2014 4:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 3.5" Capacitive touch panel for I2C or SPI
Replies: 2
Views: 895

Re: 3.5" Capacitive touch panel for I2C or SPI

Thanks for the link. But there are only the resistive touch panels. I'm asking the forum because I've tried before to find(ebay, farnell, ...) some capacitive touch panel on the web, but i wasn't succesful. What i found was on http://www.alibaba.com/product-detail/3-5-transparent-glass-touch-screen_...
by cmarty
Wed Oct 01, 2014 12:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 3.5" Capacitive touch panel for I2C or SPI
Replies: 2
Views: 895

3.5" Capacitive touch panel for I2C or SPI

Hello. For my project I'm trying to find 3.5" capacitive touch panel (digitizer) but without display. Just only the touch layer. It would be great if I can communicate with this touch layer by I2C or SPI interface and read out the thumb position. Does anybody have some tips where this kind of electr...
by cmarty
Thu May 22, 2014 9:54 am
Forum: OpenGLES
Topic: Wait for V-SYNC without swap buffers
Replies: 0
Views: 2105

Wait for V-SYNC without swap buffers

Hello. I found out when VideoCore is too hot it slows down. In my main rendering thread when I don't need to do render I just use usleep and wait defined time instead of render the frame and call eglSwapBuffers. So I don't do rendering when I don't need it and Videocore cools down. I use main render...
by cmarty
Tue Apr 15, 2014 7:24 am
Forum: Troubleshooting
Topic: STICKY: Setting up HDMI output when video output is wrong.
Replies: 556
Views: 963026

Re: Setting up HDMI output

Hello. I use HDMI display without sound in HDMI. I would like to use resolution is 1280x800 @ 50Hz . This is not the standard resolution so I added new custom mode "hdmi_cvt=1280 800 50 5 0 0 0" to /boot/config.txt and "hdmi_group=2", "hdmi_mode=87". The custom mode is working ok. But the problem th...
by cmarty
Fri Dec 20, 2013 12:49 pm
Forum: OpenMAX
Topic: Limits of videocore IV hw decoding
Replies: 3
Views: 3371

Limits of videocore IV hw decoding

Hello. I'm trying to find out some information about limits of allowed image resolution and specifications of file formats allowed for use with broadcom hw decoder (JPEG, MPEG4, H264). About JPEG images it is the maximal image resolution and description of allowed JPEG internal format. About the vid...
by cmarty
Mon Aug 26, 2013 7:41 am
Forum: OpenMAX
Topic: Correct cleanup after video playing in videocube example
Replies: 2
Views: 1709

Re: Correct cleanup after video playing in videocube example

Thanks for that. I solve the callback issue with similar code. But disable the component state transition to OMX_StateLoaded is not a solution. I can call exit func instead an this will result with the same effect. I want in my code to fast open new video file without destroying all omx elements and...
by cmarty
Mon Aug 12, 2013 7:01 am
Forum: OpenMAX
Topic: Correct cleanup after video playing in videocube example
Replies: 2
Views: 1709

Correct cleanup after video playing in videocube example

Hello. In examples hello_videocube and hello_teapot there is not correctly done the code which does finishing and cleaning up. The examples uses egl render component to render video to egl image. I've tried to fix it up but I'm not omx skilled to find the solution. The first strange thing above the ...
by cmarty
Wed Jun 26, 2013 4:50 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

Defiant wrote:hmm I still can not reproduce it.

Please make a bugreport.
The question is if it is problem with gstreamer (gst-plugins-bad, gts-omx) or raspi firmware. Whom to I need to report this ?
by cmarty
Mon Jun 24, 2013 4:05 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

Defiant wrote:strange..now it works with the latest version..what is going on here?
I've tried to go back with firmware to the same version as you did but output is still distorted.
No matter if I use old or new firmware.
by cmarty
Fri Jun 21, 2013 11:45 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

strange, don't have that. I've tried to recompile just only plugin gst-omx branch 1.0 from git with the same distorted output result. For more info this is the -v output. I would be glad if you can compare it with yours. [email protected] ~ $ gst-launch-1.0 -v filesrc location= /opt/tpictures/jpg/R...
by cmarty
Thu Jun 20, 2013 11:36 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

Just tested, yes works. Did you include the imagefreeze element? I tested with this jpeg: http://wiki.openelec.tv/images/b/be/Raspberry-Pi-logo.jpg Yes. I use the same command as you. Now I've tested it with the same jpeg as you on raspi with clean raspbian (install, update, upgrade, reboot). Now y...
by cmarty
Thu Jun 20, 2013 8:03 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

Just try the element in a pipeline: gst-launch-1.0 -v filesrc location=testimage.jpg ! decodebin ! imagefreeze ! autovideosink decodebin should automatically call the omx element. The option -v will print the element decodebin used. For help try the mailing list: http://lists.freedesktop.org/mailma...
by cmarty
Thu Jun 20, 2013 6:02 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

I want to ask about gst-omx if it is able to decode jpeg pictures (stills). I know that there is omxmjpegdec but I can not find out if it can do the image jpeg decoding. I want to build application for browsing the images and video files and it would be perfect if it all can be done with gstreamer h...
by cmarty
Tue Jun 18, 2013 10:50 am
Forum: Graphics, sound and multimedia
Topic: gstreamer openmax
Replies: 263
Views: 130830

Re: gstreamer openmax

m][sko wrote:
cmarty wrote:Does anybody know if there is a plan to add to gst-omx the element for decoding jpeg pictures with openmax library ?
something for mjpeg ?
Can I understand that omxmjpegdec can also decode jpeg pictures ? In that case I can not find out the proper gst-launch-1.0 pipeline to test it.
by cmarty
Tue Jun 18, 2013 10:38 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

Defiant wrote:egl.h didn't exist yet in the version I compiled.
I'm currently waiting for a 1.0.8 release for a recompile.
That is now clear to me. Thanks Defiant for the info.
by cmarty
Tue Jun 18, 2013 9:08 am
Forum: Raspbian
Topic: Gstreamer 1.0 for raspbian
Replies: 171
Views: 129922

Re: Gstreamer 1.0 for raspbian

In case of missing files during compilation the Debian package content search usually comes in handy: http://www.debian.org/distrib/packages Try aptitude install libegl1-mesa-dev libgles2-mesa-dev as it is done here: https://github.com/matthiasbock/gstreamer/issues/6 That's true that those packages...
by cmarty
Tue Jun 18, 2013 6:53 am
Forum: Graphics, sound and multimedia
Topic: gstreamer openmax
Replies: 263
Views: 130830

Re: gstreamer openmax

Does anybody know if there is a plan to add to gst-omx the element for decoding jpeg pictures with openmax library ?
by cmarty
Mon Jun 17, 2013 9:08 am
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 36854

Re: OpenMAX: How to decode a JPEG (example source code)

I have also problem to display any jpeg image with jpeg.c example. The program just shows ./hello_jpeg.bin 001.jpg Did not receive executing stat -1 Width: 1024 Height: 681 Output Color Format: 0x7f000001 Buffer Size: 2818048 or ./hello_jpeg.bin wooden-house.jpg Did not receive executing stat -1 Wid...

Go to advanced search