Frame buffer manipulation. More...


Go to the source code of this file.
Data Structures | |
| struct | frame_buffer_t |
| Object constisting of a frame buffer and a number of associated (bit)flags. More... | |
Enumerations | |
| enum | frame_flag_t { FRAME_FREE_AFTER_DRAW = 1<<1, FRAME_DRAW_IN_PROGRESS = 1<<2 } |
| Constants that can be used as metadata bit flags on a frame buffer. More... | |
Functions | |
Frame buffer handling | |
| void | init_frame_buffers () |
| Initialise data storage for display frames. | |
| size_t | get_frame_buffer_size () |
| Size in bytes of array pointed to by frame_buffer_t::buffer. | |
| struct frame_buffer_t * | create_frame () |
| Allocate a new frame buffer if possible. Returns NULL on failure. | |
| void | destroy_frame (struct frame_buffer_t *frame) |
| Deallocate a frame irrespective of whether the flag FRAME_FREE_AFTER_DRAW is set. | |
| void | clear_frame (struct frame_buffer_t *frame) |
| Clear the frame contents, i.e. set frame_buffer_t::buffer to all zeros. | |
| struct frame_buffer_t * | create_empty_frame () |
| Convenience method to create a new frame of which frame_buffer_t::buffer is set to all zeros. More... | |
Frame buffer manipulation.