ZBar Bar Code Reader Library  version 0.10
test_images.c File Reference

Classes

struct  format_def_s
 
union  packed_u
 

Typedefs

typedef struct format_def_s format_def_t
 
typedef enum format_type_e format_type_t
 
typedef union packed_u packed_t
 

Enumerations

enum  format_type_e {
  GRAY,
  YUVP,
  YVUP,
  YUYV,
  YVYU,
  UYVY,
  RGB888,
  BGR888,
  RGB565B,
  RGB565L,
  RGB555B,
  RGB555L
}
 

Functions

static uint8_t * fill_bars_nv (uint8_t *p, unsigned w, unsigned h, format_type_t order)
 
static uint8_t * fill_bars_rgb (uint8_t *p, unsigned w, unsigned h, format_type_t order, int bpp)
 
static uint8_t * fill_bars_uv (uint8_t *p, unsigned w, unsigned h, const uint8_t *C)
 
static uint8_t * fill_bars_y (uint8_t *p, unsigned w, unsigned h)
 
static uint8_t * fill_bars_yuv (uint8_t *p, unsigned w, unsigned h, format_type_t order)
 
static void test_cleanup_handler (zbar_image_t *img)
 
int test_image_bars (zbar_image_t *img)
 
int test_image_check_cleanup ()
 

Variables

static int allocated_images
 
static const uint8_t Cb []
 
static const uint8_t Cr []
 
static const format_def_t formats []
 

Typedef Documentation

typedef struct format_def_s format_def_t
typedef union packed_u packed_t

Enumeration Type Documentation

Enumerator
GRAY 
YUVP 
YVUP 
YUYV 
YVYU 
UYVY 
RGB888 
BGR888 
RGB565B 
RGB565L 
RGB555B 
RGB555L 

Function Documentation

static uint8_t* fill_bars_nv ( uint8_t *  p,
unsigned  w,
unsigned  h,
format_type_t  order 
)
inlinestatic

References Cb, Cr, x, y, and YUVP.

Referenced by test_image_bars().

Here is the caller graph for this function:

static uint8_t* fill_bars_rgb ( uint8_t *  p,
unsigned  w,
unsigned  h,
format_type_t  order,
int  bpp 
)
inlinestatic

References g, rgb, RGB888, packed_u::u16, packed_u::u32, packed_u::u8, x, and y.

Referenced by test_image_bars().

Here is the caller graph for this function:

static uint8_t* fill_bars_uv ( uint8_t *  p,
unsigned  w,
unsigned  h,
const uint8_t *  C 
)
inlinestatic

References x, and y.

Referenced by test_image_bars().

Here is the caller graph for this function:

static uint8_t* fill_bars_y ( uint8_t *  p,
unsigned  w,
unsigned  h 
)
inlinestatic

References x, and y.

Referenced by test_image_bars().

Here is the caller graph for this function:

static uint8_t* fill_bars_yuv ( uint8_t *  p,
unsigned  w,
unsigned  h,
format_type_t  order 
)
inlinestatic

References Cb, Cr, packed_u::u32, packed_u::u8, UYVY, x, y, YUYV, and YVYU.

Referenced by test_image_bars().

Here is the caller graph for this function:

static void test_cleanup_handler ( zbar_image_t *  img)
static

References allocated_images, test_zbar::data, fprintf(), and zbar_image_get_data().

Referenced by test_image_bars().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_image_check_cleanup ( void  )

References allocated_images, and fprintf().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int allocated_images
static
const uint8_t Cb[]
static
const uint8_t Cr[]
static
const format_def_t formats[]
static