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
16
votes
5 answers

Framebuffer Documentation

Is there any documentation on how to write software that uses the framebuffer device in Linux? I've seen a couple simple examples that basically say: "open it, mmap it, write pixels to mapped area." But no comprehensive documentation on how to use…
NoMoreZealots
  • 5,274
  • 7
  • 39
  • 56
15
votes
3 answers

OpenGL: Trouble with Render to Texture & Framebuffer Object

I'd like to render a scene to an initially empty texture. To do so, I use a Framebuffer Object to which I attach an empty 2d texture and a depth buffer. After the set up, as for testing, I draw a simple quad into the scene. Every vertex has a…
Walter
  • 396
  • 1
  • 5
  • 16
14
votes
6 answers

Dirty Rectangles

Where may one find references on implementing an algorithm for calculating a "dirty rectangle" for minimizing frame buffer updates? A display model that permits arbitrary edits and computes the minimal set of "bit blit" operations required to…
Foo bar
14
votes
1 answer

Is it possible to share an opengl framebuffer object between contexts/threads?

I want to render my scene in one thread and then blit the result in window owned by another thread. To avoid reading the framebuffer back to cpu memory, I would like to use a framebuffer object. So far I have not been able to get this to work (white…
Plow
  • 4,001
  • 3
  • 20
  • 21
13
votes
3 answers

OpenGL, how to use depthbuffer from framebuffer as usual depth buffer

I have frame buffer, with depth component and 4 color attachments with 4 textures I draw some stuff into it and unbind the buffer after, using 4 textures for fragment shader (deferred lighting). Later i want to draw some more stuff on the screen,…
ShPavel
  • 962
  • 1
  • 10
  • 17
13
votes
6 answers

How to develop a DirectFB app without leaving X.11 environment

I'm trying to develop a GUI application for an embedded platform, without any windowing whatsoever and I'm doing that with DirectFB, and it suits my needs very fine. Since the embedded I develop for is not that powerful, I would really like to try…
Edu Felipe
  • 10,197
  • 13
  • 44
  • 41
13
votes
3 answers

Injecting a Frame Buffer

I've been "hacking" one of my favorite games from when I was younger, and I've managed to be able to intercept OpenGL calls and inject C++ code using an opengl32.dll wrapper. I've been able to come up with a number of cool uses for this, but my…
Zain Syed
  • 443
  • 4
  • 12
13
votes
1 answer

logical buffer load - slow framebuffer load - ios

We are trying to figure out why we have a relatively slow FPS on iphone 4 and ipad 1. We are seeing this Category of warning in our open GL Analysis: Logical Buffer Load. The summary is "Slow framebuffer load". The recommendation says that the…
user1687195
  • 9,058
  • 2
  • 15
  • 15
12
votes
1 answer

How do I create a CVPixelBuffer with 32RGBA format for iPhone?

When trying to create a 32 bits RGBA CVPixelBuffer, I constantly get errors. Most notably error -6680 which means: "The buffer does not support the specified pixel format." This is the code fragment: (Width and height are specified as…
Toad
  • 15,593
  • 16
  • 82
  • 128
12
votes
2 answers

Reading the pixels values from the Frame Buffer Object (FBO) using Pixel Buffer Object (PBO)

Can I use Pixel Buffer Object (PBO) to directly read the pixels values (i.e. using glReadPixels) from the FBO (i.e. while FBO is still attached)? If yes, What are the advantages and disadvantages of using PBO with FBO? What is the problem with…
Rudi
  • 700
  • 1
  • 8
  • 19
12
votes
2 answers

Alternative for glBlitFrameBuffer() in OpenGL ES 2.0

My Android program must use glBlitFrameBuffer() function to copy FrameBuffer object. But glBlitFrameBuffer() function is only supported on OpenGL ES 3.0+ devices. I want to support OpenGL ES 2.0+ devices. Is there any solution/alternative for this…
nguoitotkhomaisao
  • 1,247
  • 1
  • 13
  • 24
12
votes
3 answers

How to draw the graph in framebuffer using c language..?

i am new to this linux framebuffer so do anybody guide me to draw the line-graph in framebuffer. And i have the code to draw graph in turbo c but now in linux. So please help me out. Thank You, Rahul
Rahul
  • 121
  • 1
  • 1
  • 3
12
votes
1 answer

Efficiently read the average color of the screen content rendered by XBMC

I want to get the average color of the screen content when running XBMC to change the color of a TV ambient light. XBMC is running on a small HTPC with OpenGL ES 2.0 hardware (Raspberry Pi) running a Debian-derived distribution. I guess I have to…
leemes
  • 44,967
  • 21
  • 135
  • 183
11
votes
3 answers

How do I lower the amount of memory IOKit reserves at process start up?

I am a developer working on a very large, memory intensive 32bit application. Running out of virtual address space (memory) is a problem for us. During my investigation of some recent issues I noticed a large chunk of memory that is reserved by…
pj4533
  • 1,701
  • 4
  • 17
  • 38
11
votes
2 answers

Android: How can you get framebuffer (screenshot) on rooted device?

I tried : process = Runtime.getRuntime().exec("su -c cat /dev/graphics/fb0 > /sdcard/frame.raw"); process.waitFor(); but it doesn't work. My device is rooted. I see many answers that it requires rooted access, but no actual code to get the…
jclova
  • 5,466
  • 16
  • 52
  • 78
1
2
3
76 77