Go to advanced search

by MattOwnby
Wed Feb 03, 2016 9:06 am
Forum: Raspbian
Topic: Upgraded installation from Wheezy to Jessie; unable to SSH i
Replies: 5
Views: 2081

Re: Upgraded installation from Wheezy to Jessie; unable to S

I have hit a wall with regard to this issue and I have no inkling whatsoever as to what might have happened. Any help regarding this matter will be greatly appreciated. I connect to my Raspberry Pi 2 over the network, SSH-ing into it. Today, I tried upgrading the from the wheezy version to Jessie b...
by MattOwnby
Tue Jun 16, 2015 5:28 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

If the two input JPEG images I am attempting to decode are encoded at different resolutions, will this result in an EventsPortsSettingsChanged? Most likely it would. I think you've found the problem. You are going to need to check for and handle the port settings changed events. Hopefully that won'...
by MattOwnby
Mon Jun 15, 2015 10:26 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

Make sure that SetInputBufSizeHint is the maximum size of any jpeg you want to decode. I see you have it hard-coded at 50,000 which could bite you later if you forget to change it. Uncomment "//#define VERBOSE" inside OMXComponent.h and it will spam a ton of debug info to the console. It looks like ...
by MattOwnby
Fri Apr 24, 2015 7:45 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

Just so everyone knows, there was a long-standing bug in this code that never showed up for me before. I just found, fixed it, and uploaded said fix.
by MattOwnby
Fri Apr 24, 2015 7:45 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

This is pretty exciting ! Matt, would you mind sharing stats / performances ? Any chance this could read jpg images sequences, 720p at 30fps ? I'm really intrigued, this would be a game changer for an open project I have in mind.. http://forum.openframeworks.cc/t/gpu-jpg-decoding-for-media-server-p...
by MattOwnby
Wed Apr 15, 2015 8:26 pm
Forum: Graphics programming
Topic: Long-standing defect with Raspberry Pi and NTSC output
Replies: 0
Views: 1087

Long-standing defect with Raspberry Pi and NTSC output

My apologies if someone has reported or noted this before. I have googled for this several times and never found _anyone_ discussing it. I've made a detailed blog post showing what the defect is and how to reproduce it here: http://my-cool-projects.blogspot.com/2015/04/subtle-defect-with-raspberry-p...
by MattOwnby
Thu Jun 12, 2014 6:58 pm
Forum: General discussion
Topic: What part is used for the 3.5mm jack on the raspberry pi?
Replies: 1
Views: 862

What part is used for the 3.5mm jack on the raspberry pi?

Can someone with knowledge link me to a datasheet for the 3.5mm audio part used on the pi? We've tried to find it by using available resources and it isn't matching up with anything we can find. We are mainly interested in using a similar part (or identical) on a new PCB because we like the snugness...
by MattOwnby
Wed Jan 29, 2014 2:35 pm
Forum: Gaming
Topic: Daphne Emulator Project: Update - Star Rider Info!
Replies: 20
Views: 8444

Re: Daphne Emulator Project - Cross-Compiler Required

Thanks for understanding, guys. Just for some perspective, I just paid $589 for a new license for IDA Starter Edition ( https://www.hex-rays.com/products/ida/ ) and paid another $500 a few years ago for a standard license of EAGLE ( http://www.cadsoftusa.com/eagle-pcb-design-software/?language=en ),...
by MattOwnby
Tue Jan 28, 2014 10:39 pm
Forum: Gaming
Topic: Daphne Emulator Project: Update - Star Rider Info!
Replies: 20
Views: 8444

Re: Daphne Emulator Project - Cross-Compiler Required

Hey guys :) I totally stumbled upon this thread by complete accident and I found it very interesting :) Here's some technical details about my DaphnePi port: - It indeed does use OpenMAX+GLES2 to achieve incredible speeds. I've posted full source code for how to do this here: http://www.raspberrypi....
by MattOwnby
Sun Oct 20, 2013 5:50 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

i am new to linux and pi, so don't feel you will insult me with obvious suggestions :-) Ok, here are a few obvious things I can think of: - have you tested with the pre-built binary that I included in my .tar.gz file? (to rule out build issues on your end) - have you tested with the .jpg file that ...
by MattOwnby
Sun Oct 20, 2013 4:02 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

I just tried it on the .jpg you attached and it seems to be working perfectly. Perhaps when you attached the jpg, the message board software modified it somehow? [email protected] /mnt/jpeg_gles2 $ ./jpeg_gles2 tenvis3.jpg ^CProperly shutting down... Total elapsed milliseconds: 173435 Total frames disp...
by MattOwnby
Sun Oct 20, 2013 5:48 am
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : Decode and render JPEG (with source code

Many thanks Matt, great work and very helpful. i have been struggling trying to decode mjpeg stream from my tenvis mini319W wifi camera. i have made code based on jpeg.c/h that parses single jpeg image data from mjpeg stream and displays them on screen. works ok with other (iphone ip_cam app) wifi ...
by MattOwnby
Sun Oct 20, 2013 5:29 am
Forum: C/C++
Topic: C/C++ Check if a program is being run locally or remotely
Replies: 11
Views: 4106

Re: C/C++ Check if a program is being run locally or remotel

Hello, 'C' / 'C++' I'm trying to find a way, for 'myProgram' to determine if its being run locally or from a remote computer during run time, so I can run a different section of the program. I tried :- 'netstat -a -n | grep ESTABLISHED' but it only tells you if there is a connection. I tried 'tty'....
by MattOwnby
Tue Oct 08, 2013 8:32 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

Re: OpenMAX+GLES2 : How to decode and render a JPEG

Something I forgot to mention is I believe the JPEG size is limited to 2048x2048 (max size of texture for pi hardware?). If you try to go higher, it will throw an exception.
by MattOwnby
Tue Oct 08, 2013 8:09 pm
Forum: C/C++
Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Replies: 24
Views: 14370

OpenMAX+GLES2 : Decode and render JPEG (with source code)

Greetings, It's been a while (a year+) since my last tutorial ( http://www.raspberrypi.org/phpBB3/viewtopic.php?t=15463 ). I've been wanting to release a follow-up to that for quite a while and I've finally had enough people inquiring about it to prompt me to do it. This sample code demonstrates wha...
by MattOwnby
Tue May 07, 2013 6:31 pm
Forum: C/C++
Topic: OpenMax rendering onto OpenGL texture
Replies: 71
Views: 15895

Re: OpenMax rendering onto OpenGL texture

Thank you, OtherCrashOverride and dom, for these samples!

I hope to build upon them. If successful, I will publish my results as well :)
by MattOwnby
Tue May 07, 2013 6:07 pm
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 37581

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

When filling the buffer for image_decode, don't send more than one jpeg to the buffer at the time (especially for small images). This is the reason why my earlier code had trouble with smaller JPEGs. For better performance on larger images, increase the buffer size to be greater than the size of yo...
by MattOwnby
Tue May 07, 2013 5:38 pm
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 37581

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

Sorry if this is a bit off-topic. I see that Matt Ownby and Anthong Sale's jpeg.c code made it into the userland repository. In the transition, I see that the file header's license changed from " * You are free to use this for educational/non-commercial use" to a more permissive boilerplate BSDish-...
by MattOwnby
Wed Mar 20, 2013 9:15 am
Forum: C/C++
Topic: gcc ARM bug [solved]
Replies: 4
Views: 1735

Re: gcc ARM bug

Ah ha!! Yes, I see now what you are saying. If I explicitly change it from "char" to "signed char" then it all works as expected. That is so weird, I would've thought that "char" would imply "signed char" in the C standard and that all platforms must conform. Anyway, thanks for the tip! You've saved...
by MattOwnby
Wed Mar 20, 2013 7:28 am
Forum: C/C++
Topic: gcc ARM bug [solved]
Replies: 4
Views: 1735

gcc ARM bug [solved]

I am sure I am not the first person to stumble across this [apparent] bug in gcc, but I googled around a bit to find previous discussion about it to no avail. Basically, if you have an unsigned int and you add a char to it, the result is corrupt. Perhaps I am missing something and this is not a bug,...
by MattOwnby
Thu Feb 28, 2013 8:57 pm
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 37581

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

Matt, Thanks a lot for your reply. Yes, I just read the document, and unfortunately, it seems it is the case. I am still looking into a way to bypass the ARM. By the way, well, since it is really helping me to learn, if it is okay with you, could you make part of the code available, or some hints, ...
by MattOwnby
Thu Feb 28, 2013 7:32 pm
Forum: OpenMAX
Topic: OpenMAX color format problem
Replies: 2
Views: 1572

Re: OpenMAX color format problem

I replied to the other thread, but just for completeness, I believe that the Pi's OpenMAX implementation does not support RGB, only RGBA. That is probably why it is giving the error.
by MattOwnby
Thu Feb 28, 2013 7:21 pm
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 37581

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

Now I notice that this is a 32 bit RGBA color space. When I changed the color format to 24bitRGB888, I get the following error: Got execption: OMX_SetParameter falied Any idea, what is going on? Has any one tried to change to color space to 24bit RGB, and got a similar error? Looks like the resizer...
by MattOwnby
Thu Feb 28, 2013 7:19 pm
Forum: C/C++
Topic: OpenMAX: How to decode a JPEG (example source code)
Replies: 67
Views: 37581

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

In case someone is still interested, I started from the excellent code of Matt and implemented an example code for decoding images directly to an OpenGL texture: http://thebugfreeblog.blogspot.it/2012/12/decoding-and-rendering-compressed.html. I was really satisfied with the result. Thanks Matt for...
by MattOwnby
Mon Jan 28, 2013 9:56 pm
Forum: General discussion
Topic: VBI data injection to composite video using AVR
Replies: 0
Views: 545

VBI data injection to composite video using AVR

Hi guys! I have been working on a http://www.laserdisc-replacement.com project for probably two years now and am really trying to use the Raspberry Pi as part of it (results thus far are very encouraging!). Laserdiscs contained information such as current frame number on some of the hidden lines sho...

Go to advanced search