IceCube display
LED display to show IceCube event data
frame_buffer.h File Reference

Frame buffer manipulation. More...

Include dependency graph for frame_buffer.h:
This graph shows which files directly or indirectly include this file:

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...


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...


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_tcreate_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_tcreate_empty_frame ()
 Convenience method to create a new frame of which frame_buffer_t::buffer is set to all zeros. More...

Detailed Description

Frame buffer manipulation.

Sander Vanheule (Universiteit Gent)