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
6
votes
3 answers

How to get RGB pixel values from Linux framebuffer?

I want to get RGB values of screen pixels in the most efficient way, using Linux. So I decided to use the framebuffer library in C (fb.h) to access the framebuffer device (/dev/fb0) and read from it directly. This is the code: #include…
Sergio
  • 844
  • 2
  • 9
  • 26
6
votes
1 answer

Does OpenGL framebuffer blitting take into account gamma correction when enabled?

Here is my problem, when I load in textures I load them in as SRGB to convert them into linear space. When I was writing to the default frame buffer provided by the windowing system I enabled GL_FRAMEBUFFER_SRGB so that writing to the framebuffer…
Zebrafish
  • 11,682
  • 3
  • 43
  • 119
6
votes
0 answers

Reading Frame Buffer from camera using ctypes

I'm having problems to read out the frame buffer of a camera using python. The camera (Xenics) is connected via USB and there is a dll which ships with the camera. I access this dll using ctypes. The code I am using is mainly inspired by a python…
ImportanceOfBeingErnest
  • 321,279
  • 53
  • 665
  • 712
6
votes
0 answers

OpenGL directly to Linux framebuffer without X-Server

I have a small OpenGL application that has been developed using GLUT. What are my best options to render directly to a Linux framebuffer (fbdev) with OpenGL, without an X-Server? I understand that GLUT needs X, so I'm not looking for ways to use…
dingari
  • 309
  • 1
  • 4
  • 13
6
votes
1 answer

Need to invoke ioctl(tty0_fd, KDSETMODE, KD_TEXT) upon abnormal termination

I am using the Linux framebuffer in my application, and setting ioctl(tty0_fd, KDSETMODE, KD_GRAPHICS) to prevent any cursor or text from being displayed by the underlying terminal, and then cleaning up upon normal program termination. But remaining…
Josh Sanford
  • 622
  • 5
  • 18
6
votes
2 answers

How to deal with the layouts of presentable images?

A presentable image starts out in VK_IMAGE_LAYOUT_UNDEFINED but will be VK_IMAGE_LAYOUT_PRESENT_SRC_KHR after they have been presented once. A lot of examples do a transition of all vkImages to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR immediately after…
ratchet freak
  • 47,288
  • 5
  • 68
  • 106
6
votes
1 answer

OpenGL: Framebuffer, incomplete texture attachment

I've searched for couple hours for a solution to my problem. First of all. I have HD 7800 series amd GPU, newest drivers. I'm trying to create framebuffer class which has all the framebuffer functions I will need. It seems I got renderbuffers to…
Trinedy
  • 63
  • 1
  • 1
  • 3
6
votes
2 answers

How to display something on screen through linux framebuffer?

I found the following code which was designed to draw a square on screen. #include #include #include #include #include #include #include int main() { …
user3549833
  • 99
  • 1
  • 5
6
votes
1 answer

COLOR_ATTACHMENT's - How to render to multiple textures as color attachments inside a Framebuffer Object?

I am trying to render to multiple textures as COLOR_ATTACHMENTs without success. All I get from displaying them is a black screen (with a red clear fill) meaning my texture is read but is 'empty'. My pseudo code is : attach 3 textures to an FBO with…
PinkTurtle
  • 6,942
  • 3
  • 25
  • 44
6
votes
1 answer

How to get/set the width and height of the default framebuffer?

I want to know the dimension of my default frame buffer. I read setting view port to a particular value does not affect/set the dimensions of frame buffer. Are there any GL calls for this?
abhijit jagdale
  • 609
  • 2
  • 8
  • 21
6
votes
1 answer

Render to texture or offscreen framebuffer

I have a problem with rendering to texture and offscreen framebuffer with OpenGLES on iPhone. (source: imagehost.org) (source: imagehost.org) First image shows mahjong tiles rendered to CAEAGLLayer directly and this is correct. Second one shows…
sfider
  • 193
  • 3
  • 13
6
votes
1 answer

Alpha blending issue with multiple rendering iterations into the same texture (OpenGL)

The scenario I'm creating a frame buffer object and binding a texture to colour attachment 0. I'm not using a depth buffer. After creating it, I unbind it. At some point in time later, the frame buffer is bound, a triangle strip is rendered to it…
bitjeep
  • 151
  • 2
  • 8
6
votes
3 answers

Transparent FrameBuffer background in OpenGL

I want to use glClear and glClearColor to fill a frame buffer with a colour including alpha transparency. However the framebuffer always renders as opaque when binded to a texture which is rendered to the screen. I want everything which is rendered…
Matthew Mitchell
  • 5,293
  • 14
  • 70
  • 122
6
votes
1 answer

Multiple render targets in one FBO with different size textures?

Can I have textures of different sizes attached to a single FBO, and then use those for multiple render targets? Will I need to do anything special with glViewport to make this happen? Suppose I have a 1024x1024 texture for COLOR_ATTACHMENT0 and a…
Max Feldkamp
  • 527
  • 1
  • 5
  • 16
6
votes
1 answer

Android read fb0 always give me blackscreen

My device is Nexus 4 running Jelly Bean 4.2. I'm trying to record the screen and send it out. Most codes on internet do the cap by read /dev/graphics/fb0. It works fine in some devices and the older systems. But when I try it on my device, it fail.…
user1659072
  • 121
  • 4
  • 9