BRL-CAD
if_debug.c File Reference
#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "bu/color.h"
#include "bu/log.h"
#include "fb_private.h"
#include "fb.h"
Include dependency graph for if_debug.c:

Go to the source code of this file.

Functions

HIDDEN int deb_open (fb *ifp, const char *file, int width, int height)
 
HIDDEN struct fb_platform_specificdeb_get_fbps (uint32_t magic)
 
HIDDEN void deb_put_fbps (struct fb_platform_specific *fbps)
 
HIDDEN int deb_open_existing (fb *ifp, int width, int height, struct fb_platform_specific *fb_p)
 
HIDDEN int deb_close_existing (fb *ifp)
 
HIDDEN int deb_close (fb *ifp)
 
HIDDEN int deb_configure_window (fb *ifp, int width, int height)
 
HIDDEN int deb_refresh (fb *ifp, int x, int y, int w, int h)
 
HIDDEN int deb_clear (fb *ifp, unsigned char *pp)
 
HIDDEN ssize_t deb_read (fb *ifp, int x, int y, unsigned char *pixelp, size_t count)
 
HIDDEN ssize_t deb_write (fb *ifp, int x, int y, const unsigned char *pixelp, size_t count)
 
HIDDEN int deb_rmap (fb *ifp, ColorMap *cmp)
 
HIDDEN int deb_wmap (fb *ifp, const ColorMap *cmp)
 
HIDDEN int deb_view (fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
HIDDEN int deb_getview (fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
HIDDEN int deb_setcursor (fb *ifp, const unsigned char *bits, int xbits, int ybits, int xorig, int yorig)
 
HIDDEN int deb_cursor (fb *ifp, int mode, int x, int y)
 
HIDDEN int deb_getcursor (fb *ifp, int *mode, int *x, int *y)
 
HIDDEN int deb_readrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
HIDDEN int deb_writerect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
HIDDEN int deb_bwreadrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
HIDDEN int deb_bwwriterect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
HIDDEN int deb_poll (fb *ifp)
 
HIDDEN int deb_flush (fb *ifp)
 
HIDDEN int deb_free (fb *ifp)
 
HIDDEN int deb_help (fb *ifp)
 

Variables

fb debug_interface
 

Detailed Description

Reports all calls to fb_log().

Definition in file if_debug.c.

Function Documentation

HIDDEN int deb_open ( fb ifp,
const char *  file,
int  width,
int  height 
)

Definition at line 40 of file if_debug.c.

References FB_CK_FB, fb_log(), fb_internal::if_debug, fb_internal::if_height, fb_internal::if_width, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN struct fb_platform_specific* deb_get_fbps ( uint32_t  magic)

Definition at line 74 of file if_debug.c.

HIDDEN void deb_put_fbps ( struct fb_platform_specific fbps)

Definition at line 81 of file if_debug.c.

HIDDEN int deb_open_existing ( fb ifp,
int  width,
int  height,
struct fb_platform_specific fb_p 
)

Definition at line 87 of file if_debug.c.

HIDDEN int deb_close_existing ( fb ifp)

Definition at line 93 of file if_debug.c.

HIDDEN int deb_close ( fb ifp)

Definition at line 99 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_configure_window ( fb ifp,
int  width,
int  height 
)

Definition at line 107 of file if_debug.c.

HIDDEN int deb_refresh ( fb ifp,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 113 of file if_debug.c.

HIDDEN int deb_clear ( fb ifp,
unsigned char *  pp 
)

Definition at line 119 of file if_debug.c.

References BLU, FB_CK_FB, fb_log(), GRN, and RED.

Here is the call graph for this function:

HIDDEN ssize_t deb_read ( fb ifp,
int  x,
int  y,
unsigned char *  pixelp,
size_t  count 
)

Definition at line 134 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN ssize_t deb_write ( fb ifp,
int  x,
int  y,
const unsigned char *  pixelp,
size_t  count 
)

Definition at line 145 of file if_debug.c.

References BLU, FB_CK_FB, FB_DEBUG_RW, fb_log(), GRN, fb_internal::if_debug, and RED.

Here is the call graph for this function:

HIDDEN int deb_rmap ( fb ifp,
ColorMap cmp 
)

Definition at line 173 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_wmap ( fb ifp,
const ColorMap cmp 
)

Definition at line 183 of file if_debug.c.

References ColorMap::cm_blue, ColorMap::cm_green, ColorMap::cm_red, FB_CK_FB, FB_DEBUG_CMAP, fb_log(), and fb_internal::if_debug.

Here is the call graph for this function:

HIDDEN int deb_view ( fb ifp,
int  xcenter,
int  ycenter,
int  xzoom,
int  yzoom 
)

Definition at line 210 of file if_debug.c.

References FB_CK_FB, fb_log(), and fb_sim_view().

Here is the call graph for this function:

HIDDEN int deb_getview ( fb ifp,
int *  xcenter,
int *  ycenter,
int *  xzoom,
int *  yzoom 
)

Definition at line 221 of file if_debug.c.

References FB_CK_FB, fb_log(), and fb_sim_getview().

Here is the call graph for this function:

HIDDEN int deb_setcursor ( fb ifp,
const unsigned char *  bits,
int  xbits,
int  ybits,
int  xorig,
int  yorig 
)

Definition at line 234 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_cursor ( fb ifp,
int  mode,
int  x,
int  y 
)

Definition at line 244 of file if_debug.c.

References fb_log(), and fb_sim_cursor().

Here is the call graph for this function:

HIDDEN int deb_getcursor ( fb ifp,
int *  mode,
int *  x,
int *  y 
)

Definition at line 254 of file if_debug.c.

References FB_CK_FB, fb_log(), and fb_sim_getcursor().

Here is the call graph for this function:

HIDDEN int deb_readrect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

Definition at line 266 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_writerect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

Definition at line 277 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_bwreadrect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

Definition at line 288 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_bwwriterect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

Definition at line 299 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_poll ( fb ifp)

Definition at line 310 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_flush ( fb ifp)

Definition at line 319 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_free ( fb ifp)

Definition at line 328 of file if_debug.c.

References FB_CK_FB, and fb_log().

Here is the call graph for this function:

HIDDEN int deb_help ( fb ifp)

Definition at line 338 of file if_debug.c.

References debug_interface, FB_CK_FB, fb_log(), fb_internal::if_height, fb_internal::if_max_height, fb_internal::if_max_width, fb_internal::if_name, fb_internal::if_type, and fb_internal::if_width.

Here is the call graph for this function:

Variable Documentation

fb debug_interface

Definition at line 362 of file if_debug.c.

Referenced by deb_help().