mmsfbsurface.h File Reference

#include "mmstools/mmslogger.h"
#include "mmstools/mmsthreadserver.h"
#include "mmsgui/fb/mmsfbbase.h"
#include "mmsgui/fb/mmsfbfont.h"
#include "mmsgui/fb/mmsfbconv.h"
#include "mmsgui/fb/mmsfbgl.h"

Include dependency graph for mmsfbsurface.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

struct  MMSFBSurfaceBuffer
struct  MMSFBSurfaceConfig
class  MMSFBSurface
 This class describes a surface. More...
struct  MMSFBSurface::CLEAR_REQUEST

Defines

#define MMSFBSurfaceMaxBuffers   3
 this is the maximum number of buffers for a surface (backbuffers + 1)
#define MMSFBSURFACE_WRITE_BUFFER(surface)   surface->config.surface_buffer->buffers[surface->config.surface_buffer->currbuffer_write]
 get access to the current write buffer
#define MMSFBSURFACE_READ_BUFFER(surface)   surface->config.surface_buffer->buffers[surface->config.surface_buffer->currbuffer_read]
 get access to the current read buffer

Enumerations

enum  MMSFBSurfaceAllocMethod { MMSFBSurfaceAllocMethod_dfb = 0, MMSFBSurfaceAllocMethod_malloc, MMSFBSurfaceAllocMethod_ogl }
enum  MMSFBSurfaceAllocatedBy {
  MMSFBSurfaceAllocatedBy_dfb = 0, MMSFBSurfaceAllocatedBy_malloc, MMSFBSurfaceAllocatedBy_xvimage, MMSFBSurfaceAllocatedBy_ximage,
  MMSFBSurfaceAllocatedBy_ogl
}
enum  MMSFBSurfaceDumpMode { MMSFBSURFACE_DUMPMODE_BYTE = 0, MMSFBSURFACE_DUMPMODE_PIXEL }
 dump mode More...

Functions

bool mmsfb_create_cached_surface (MMSFBSurface **cs, int width, int height, MMSFBSurfacePixelFormat pixelformat)

Define Documentation

#define MMSFBSURFACE_READ_BUFFER ( surface   )     surface->config.surface_buffer->buffers[surface->config.surface_buffer->currbuffer_read]

get access to the current read buffer

Definition at line 83 of file mmsfbsurface.h.

#define MMSFBSURFACE_WRITE_BUFFER ( surface   )     surface->config.surface_buffer->buffers[surface->config.surface_buffer->currbuffer_write]

get access to the current write buffer

Definition at line 80 of file mmsfbsurface.h.

#define MMSFBSurfaceMaxBuffers   3

this is the maximum number of buffers for a surface (backbuffers + 1)

Definition at line 77 of file mmsfbsurface.h.


Enumeration Type Documentation

Enumerator:
MMSFBSurfaceAllocatedBy_dfb  allocated by directfb
MMSFBSurfaceAllocatedBy_malloc  allocated with malloc
MMSFBSurfaceAllocatedBy_xvimage  allocated by xv
MMSFBSurfaceAllocatedBy_ximage  allocated by x
MMSFBSurfaceAllocatedBy_ogl  allocated by opengl

Definition at line 55 of file mmsfbsurface.h.

Enumerator:
MMSFBSurfaceAllocMethod_dfb  using directfb surfaces
MMSFBSurfaceAllocMethod_malloc  using malloc
MMSFBSurfaceAllocMethod_ogl  using opengl surfaces

Definition at line 46 of file mmsfbsurface.h.

dump mode

Enumerator:
MMSFBSURFACE_DUMPMODE_BYTE  dump byte-by-byte hex values
MMSFBSURFACE_DUMPMODE_PIXEL  dump pixels as 1, 2, 3 or 4 byte hex values

Definition at line 69 of file mmsfbsurface.h.


Function Documentation

bool mmsfb_create_cached_surface ( MMSFBSurface **  cs,
int  width,
int  height,
MMSFBSurfacePixelFormat  pixelformat 
)

Definition at line 7421 of file mmsfbsurface.cpp.