Main Page | Files | Data Structures | Functions | Global Variables |
gpiv-img_utils.h File Reference

utilities module for GpivImage structure More...

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

Go to the source code of this file.

Functions

GpivImagegpiv_alloc_img (const GpivImagePar *image_par)
 Allocates memory for GpivImage frames. More...
 
gchar * gpiv_check_alloc_img (const GpivImage *image)
 Checks if image frames have been allocated TODO BUGFIX: check on correct size. More...
 
void gpiv_free_img (GpivImage *gpiv_image)
 Frees memory of gpiv_image. More...
 
GpivImagegpiv_cp_img (const GpivImage *image)
 Duplicates image. More...
 
gchar * gpiv_cp_img_data (const GpivImage *image_src, GpivImage *image_dest)
 Copies contents of img_src to img_dest. More...
 

Detailed Description

utilities module for GpivImage structure

SOURCES: lib/img_utils.c

LAST MODIFICATION DATE:

Id
gpiv-img_utils.h,v 1.2 2008-09-25 13:19:53 gerber Exp

Definition in file gpiv-img_utils.h.

Function Documentation

◆ gpiv_alloc_img()

GpivImage* gpiv_alloc_img ( const GpivImagePar image_par)

Allocates memory for GpivImage frames.

Parameters
[in]image_parimage parameters
Returns
GpivImage

◆ gpiv_check_alloc_img()

gchar* gpiv_check_alloc_img ( const GpivImage image)

Checks if image frames have been allocated TODO BUGFIX: check on correct size.

Parameters
[in]imageimage to be checked if allocated
Returns
NULL on success or error message on failure

◆ gpiv_cp_img()

GpivImage* gpiv_cp_img ( const GpivImage image)

Duplicates image.

The returned image will have to be freed with gpiv_free_img when no longer needed.

Parameters
[in]imagesource image
Returns
GpivImage containing the copied header and image data from the source image or NULL on failure.

◆ gpiv_cp_img_data()

gchar* gpiv_cp_img_data ( const GpivImage image_src,
GpivImage image_dest 
)

Copies contents of img_src to img_dest.

Image_src and image_dest will have to be allocated with gpiv_alloc_img before and will have to be freed with gpiv_free_img when no longer needed.

Parameters
[in]image_srcsource image to be copied
[out]image_destdestination image, copy of source
Returns
NULL on success or error message on failure

◆ gpiv_free_img()

void gpiv_free_img ( GpivImage gpiv_image)

Frees memory of gpiv_image.

Parameters
[in]gpiv_imageimage structure containging data frames and parameters
Returns
void

Generated for libgpiv-0.6.1 by doxygen 1.8.13