Go to advanced search

by unphased
Sun Aug 03, 2014 1:06 pm
Forum: Camera board
Topic: YUV input to fragment shader as textures
Replies: 1
Views: 943

Re: YUV input to fragment shader as textures

Dammit! I'm an idiot. I just remembered about the gl_scenes/yuv.c demo It's IN there already. Everything's there. D'oh! Still, I have a question. Since I do want to look at all the data, if I switch to grabbing the 3 YUV textures, isn't that making 3 times as many of a few of these API calls (eglCre...
by unphased
Sun Aug 03, 2014 12:17 pm
Forum: Camera board
Topic: YUV input to fragment shader as textures
Replies: 1
Views: 943

YUV input to fragment shader as textures

I am currently doing some computer vision using the GL preview window in raspistill. This gives me access via the (GL_OES_EGL_image_external extension) to a special texture that I use a samplerExternalOES type sampler to access the preview video from the camera in the fragment shader. This is all ve...
by unphased
Sun Aug 03, 2014 10:02 am
Forum: OpenGLES
Topic: GLSL Bug?
Replies: 1
Views: 2012

GLSL Bug?

Hey guys, I don't know if this is something that is a problem or not, but I got confused today by an issue whereby I assign a scalar value to a vec2 (hoping to set both components to the same scalar value). For example, this code causes the issue: vec2 x = 0.5 * (1 - 1/scalar2); While this code work...
by unphased
Mon Jul 21, 2014 6:37 am
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 20296

Re: Full FOV preview, 60 and 90fps modes released

Note that the display cannot go faster than 60fps, so not much point going faster than that. Is there some hard limit? Can I not render to an FBO without the vsync limit? I realize controlling vsync might not be easy to do (and I do not know the platform specifics to do so). However, I don't mind f...
by unphased
Fri Jul 18, 2014 2:18 am
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 20296

Re: Full FOV preview, 60 and 90fps modes released

Is it possible to set the framerate of the preview window? I am playing around with a GLSL shader which happily executes at 60FPS, and I am free of the need to encode JPEG or H.264. The preview window via Raspistill is the way to get GLSL access to the camera frames via a texture. I realize that the...
by unphased
Wed Jul 02, 2014 11:14 am
Forum: General programming discussion
Topic: GPU Userland makefile -- how to test without make install?
Replies: 4
Views: 2625

Re: GPU Userland makefile -- how to test without make instal

I found that my cmake that I initiated in userland-master/build2 puts its built binaries into userland-master/build/ (which was what I used first). This is some quirkiness specific to cmake. It probably got it from the cache or something. Makes no sense, but cmake makes no sense anyway. Well, glad t...
by unphased
Wed Jul 02, 2014 11:04 am
Forum: General programming discussion
Topic: GPU Userland makefile -- how to test without make install?
Replies: 4
Views: 2625

Re: GPU Userland makefile -- how to test without make instal

There is no bin/ dir made by sudo make.

The binaries get installed into ../../bin/ with sudo make install.

I guess there is no good reason for me to be doing the building in /opt/vc, but that should be irrelevant.
by unphased
Wed Jul 02, 2014 10:45 am
Forum: General programming discussion
Topic: GPU Userland makefile -- how to test without make install?
Replies: 4
Views: 2625

GPU Userland makefile -- how to test without make install?

Hi, I just have a really dumb question which is bugging me. I have the userland code compiling fine and I am doing some poking around, so what I'm basically doing here is editing my fork of the userland git repo and committing once I make my changes on my dev machine, then fetch the new changes with...
by unphased
Sun May 18, 2014 7:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using UART at 921600 baud with C
Replies: 1
Views: 3202

Re: Using UART at 921600 baud with C

I am in the same boat as you. I am able to use python to read 921600 baud, and screen to read 460800 baud (screen for some reason produces nothing when I set 921600), but I have not yet looked into doing this from C. One bit of advice that I can offer to you if you're interested in avoiding implemen...
by unphased
Mon May 12, 2014 4:52 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

Very exciting!! I love node.js, let me tell you, so this is something we desperately need. That being said, based on just my gut feelings, node is particularly optimized for x86 (and not ARM) and is generally quite sluggish as it runs on the Pi. Now mind you, I have not run tons of benchmarks yet, b...
by unphased
Sun May 04, 2014 11:24 pm
Forum: OpenGLES
Topic: Performant reading of data from GL
Replies: 6
Views: 3897

Re: Performant reading of data from GL

I'm not sure I follow. Are you saying it's possible to attach a render buffer as the frame buffer, read it with glReadPixels, then render something else (cover it...) prior to swapping (and showing to display)? I had not considered that. If this works (and does not require extra copying around of la...
by unphased
Sun May 04, 2014 10:42 am
Forum: OpenGLES
Topic: Performant reading of data from GL
Replies: 6
Views: 3897

Performant reading of data from GL

To summarize the capabilities that we already have: + We can give the camera's video output (preview) to GL as a texture, for running shaders on it (GPU fast path) + We can also encode the original video data and simultaneously access it from GL as a texture (GPU fast path) + Read the rendered GL da...
by unphased
Mon Apr 28, 2014 2:07 am
Forum: Troubleshooting
Topic: RPi occasionally not responding to connections (WiFi)
Replies: 26
Views: 18854

Re: RPi occasionally not responding to connections (WiFi)

I'm not sure what the real cause is, but I reckon the first order of business when investigating a problem like this is checking the voltages. I have an ath9k wifi chipset, one with a 4 inch antenna, so it's not one of the tiny USB dongles. When I was experiencing intermittent behavior where I could...
by unphased
Wed Apr 23, 2014 6:28 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

Indeed, it will clearly be an additional big job to put on the plate for the little 2835 so that all makes a lot of sense. Theoretically, prioritizing the video encode and careful scheduling (and potentially interrupting the JPEG encode as time runs out) can allow no frame drops, it's certainly goin...
by unphased
Tue Apr 22, 2014 6:25 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

I hate to be that guy, but... Did you try it? The reason I say this is that I am also genuinely curious (because that is a very powerful capability to be able to record video going through GL and simultaneously snap stills without dropping any frames in the video) and you appear to be in a very suit...
by unphased
Sun Apr 20, 2014 12:26 am
Forum: Camera board
Topic: Preview to fb1 ?
Replies: 42
Views: 33447

Re: Preview to fb1 ?

Hi Phil, I'm looking at this code and it looks pretty straightforward to me. You should be able to find out how to read the logs (and adjust them for debugging use) and/or just start printing to stdout/stderr with printf right there. These little screens are quite low res indeed, so we do need to sc...
by unphased
Wed Apr 16, 2014 10:01 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 14144

Re: is there a way to get from mmal to opengl texture

I just wanted to comment that due to the foresight of the hardware designers, we have a Composite out port on the Raspberry Pi which allows us bypass the realtime H.264 encoding requirement for autonomous robotic operations. FPV and other types of similar affordable analog video transmission technol...
by unphased
Sun Apr 13, 2014 7:50 am
Forum: General discussion
Topic: Resizing SD Card Partition Prob
Replies: 7
Views: 8128

Re: Resizing SD Card Partition Prob

chw131, that's what the first sentence of the OP states. I am in the same boat, BTW. I don't have more 8GB cards lying around so I backed it up to a 16GB card. Running it now, to see if it worked. It sure did, but it also doesn't seem like I can easily resize it to fill up the space. It's not a very...
by unphased
Thu Apr 10, 2014 6:30 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

That sounds very awesome gagle! There is a lot of pioneering work happening in this area. I'll definitely be keeping an eye on this! See wibble82's work here . He hasn't got his stuff up on github yet. But the youtube video demo of GPU processing via shaders is very very impressive (and I like it be...
by unphased
Wed Apr 09, 2014 10:58 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

I'm really sorry and I hope I don't derail the discussion. Maybe I should move my question into its own thread? I did find that this code from raspivid.c is probably the part where I need to intervene. // Now connect the camera to the encoder status = connect_ports(camera_video_port, encoder_input_p...
by unphased
Wed Apr 09, 2014 9:46 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16806

Re: omxcam - OpenMAX camera abstraction layer

Hey guys, I am also tasked with a computer vision application using the Raspberry Pi and basically the kind of image data pipeline that I need is to be able to run optimized C/C++ code over a stream of YUV or RGB rasters and then I want to encode the result of that image processing (e.g. Draw boxes ...
by unphased
Wed Apr 09, 2014 3:23 pm
Forum: Camera board
Topic: Near-realtime video streaming?
Replies: 13
Views: 21226

Re: Near-realtime video streaming?

Interesting... I was looking at http://picamera.readthedocs.org/en/latest/index.html and it says he could only get VGA res at 15fps using MJPEG, but 800x480 at 30fps is a pretty large improvement there. I really would prefer to perform processing onboard, however, in order to have the best results f...
by unphased
Tue Apr 08, 2014 2:51 pm
Forum: Camera board
Topic: Near-realtime video streaming?
Replies: 13
Views: 21226

Re: Near-realtime video streaming?

Hi Swap_File, it's really encouraging for me to find after hours upon hours of searching that there really might be an H.264 streaming solution that is optimal to both latency (couldn't ask for sub 100ms!!) and a potentially flaky wifi-link (UDP and RTP will be a must!) The reason that both of these...

Go to advanced search