Questions tagged [framebuffer]

In general a framebuffer is a graphic hardware-independent abstraction layer used to display output to a monitor or display.

Resources:

1142 questions
5
votes
2 answers

how to convert 16-bit RGB Frame Buffer to a viewable format?

I'm working with someone else's code on a device which can put an image to /dev/fb/0 and show up on video out or send it over the network to a client application. I don't have access to the old source for the client app, but I know the following…
coolaj86
  • 74,004
  • 20
  • 105
  • 125
5
votes
1 answer

Linux framebuffer pixel bitfield generic implementation

I'm writing a tiny library to interface with Linux's framebuffer abstraction. All of my graphics cards use the same pixel format (one octet per channel, four channels, BGRA ordering), so thus far the library just assumes this format. However, the…
nebuch
  • 6,475
  • 4
  • 20
  • 39
5
votes
0 answers

Stream Framebuffer with Gstreamer

How do I read framebuffer (/dev/fb0) with Gstreamer? I'm trying to read the framebuffer on my Raspberry PI and stream it to my notebook, using the hardware h264 encoder on the RP. First I tried this…
DieChopper
  • 61
  • 1
  • 4
5
votes
3 answers

glFramebufferTexture2D performance

I'm doing heavy computation using the GPU, which involves a lot of render-to-texture operations. It's an iterative computation, so there's a lot of rendering to a texture, then rendering that texture to another texture, then rendering the second…
nornagon
  • 15,393
  • 18
  • 71
  • 85
5
votes
1 answer

Android source code not working, reading frame buffer through glReadPixels

I am new to Android development and have an assignment to read frame buffer data after a specified interval of time. I have come up with the following code: public class mainActivity extends Activity { Bitmap mSavedBM; private EGL10 egl; …
AliR
  • 2,065
  • 1
  • 27
  • 37
5
votes
2 answers

opengl invert framebuffer pixels

I was wondering was the best way to invert the color pixels in the frame buffer is. I know it's possible to do with glReadPixels() and glDrawPixels() but the performance hit of those calls is pretty big. Basically, what I'm trying to do is have an…
jay.lee
  • 19,388
  • 8
  • 39
  • 38
5
votes
1 answer

Is there a way to config xorg to use a framebuffer device as the primary monitor?

I have a Raspberry Pi with a GPIO display. I currently have it set up as a framebuffer device at /dev/fb1. Is there a way to make it my default or primary display for X windows? I'm ultimately trying to draw graphics to it, I was originally…
Julian
  • 1,665
  • 2
  • 15
  • 33
5
votes
1 answer

CGImageRef width doesn't agree with bytes-per-row

I'm trying to read pixels out of the screen buffer, I'm creating a CGImageRef with CGDisplayCreateImage, but the values for CGImageGetWidth and CGImageGetBytesPerRow Don't make sense together, dividing the bytes per row by the bytes per pixel gives…
porglezomp
  • 1,333
  • 12
  • 24
5
votes
1 answer

Are they same thing: Linux's framebuffer and GPU's memory

From my understanding they are different. Linux framebuffer is a software object and GPU's memory is a physical memory mapped to GPU device. My questions are the following: 1) Is my understanding correct? 2) If so, somehow merging two things into…
jaeyong
  • 8,951
  • 14
  • 50
  • 63
5
votes
1 answer

Nexus 10 - render to external rendertarget works only in landscape

We're developing live wallpaper with OpenGL ES 2.0 on Nexus 10. Live wallpaper uses 2 small (128x128) external framebuffers to make ping-pong rendering between them to blur image. While this works perfectly fine on any device (even on aged Motorola…
keaukraine
  • 5,315
  • 29
  • 54
5
votes
1 answer

Why can't access the G-Buffer from my lighting shader?

I implemented a new rendering pipeline in my engine and rendering is broken now. When I directly draw a texture of the G-Buffer to screen, it shows up correctly. So the G-Buffer is fine. But somehow the lighting pass makes trouble. Even if I don't…
danijar
  • 32,406
  • 45
  • 166
  • 297
5
votes
1 answer

How to discover framebuffer width on android?

i'm capturing framebuffer on my android device, but the decode is not working for the correctly resolution. I found i can get the bbp and screen resoution using: ioctl -rl 28 /dev/graphics/fb0 17920 This command return: return buf: f0 00 00 00 40…
Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
5
votes
2 answers

invalid argument error when setting yres_virtual in fb_var_screeninfo

I'm trying to make an application for linux that writes directly to the framebuffer /dev/fb0. In order to make it double buffered I try to make the virtual screen be double the size of the screen. This is the program I wrote: struct…
STS
  • 51
  • 1
  • 2
5
votes
1 answer

Read pixels in WebGLTexture (Rendering WebGL to texture)

I'm generating a texture on the GPU and rendering it to my own framebuffer object. It works fine and the texture is rendered to a WebGLTexture that I can pass to other shaders. However I want to access the WebGLTexture pixels in javascript. Is there…
Jón Trausti Arason
  • 4,548
  • 1
  • 39
  • 46
5
votes
1 answer

glClear() gives GL_OUT_OF_MEMORY on Intel HD 4000 (GL 4.0) but not GeForce (GL 4.2)... why?

Now, this is an extremely odd behavior. TL;DR -- in a render-to-texture setup, upon resizing the window (framebuffer 0) only the very next call to glClear(GL_COLOR_BUFFER_BIT) for bound framebuffer 0 (the window's client area) gives…
metaleap
  • 2,132
  • 2
  • 22
  • 40