Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lqr_vmap_new(3) [debian man page]

LQR_VMAP_NEW(3) 					     LqR library API reference						   LQR_VMAP_NEW(3)

NAME
lqr_vmap_new - the LqrVMap object constructor SYNOPSIS
#include <lqr.h> LqrVMap* lqr_vmap_new(gint* buffer, gint width, gint height, gint depth, gint orientation); DESCRIPTION
The function lqr_vmap_new is the constructor for LqrVMap objects. It can be used to convert saved data in a format which can be loaded in an LqrCarver object. The parameter buffer must point to an an array of width * height ints holding the visibility information. The parameter depth represents the maximum possible amount of rescaling with the given map. The parameter orientation must be 0 if the map is to be used for horizontal rescaling, 1 if it is to be used for vertical rescaling. VISIBILITY MAPS FORMAT
The buffer must be an array of integers of size width * height. For an horizontally oriented visibility map, the format is as such: each row must contain all values between 1 and depth (included) exactly once, with low values indicating the pixels which will be operated on first during rescaling. All other pixels must be 0, which means that they won't be affected by rescaling. Such a map allows for horizontal rescaling in the range from width - depth to width + depth. The same applies to vertically oriented visibility maps, with columns in place of rows and height in place of width. RETURN VALUE
The function returns the newly created LqrVMap if successful, or NULL in case of insufficient memory. SEE ALSO
lqr_vmap_destroy(3), lqr_vmap_load(3) COPYRIGHT
Copyright (C) 2007-2009 Carlo Baldassi LqR library 0.4.1 API (3:1:3) 10 Maj 2009 LQR_VMAP_NEW(3)

Check Out this Related Man Page

LQR_VMAP_LOAD(3)					     LqR library API reference						  LQR_VMAP_LOAD(3)

NAME
lqr_vmap_load - load an LqrVMap object into an LqrCarver object SYNOPSIS
#include <lqr.h> LqrRetVal lqr_vmap_load(LqrCarver* carver, LqrVMap* vmap); DESCRIPTION
The function lqr_vmap_load loads the visibility map contained in the LqrVMap object pointed to by vmap in the LqrCarver object pointed to by carver. It can only be called over uninitialised carver objects, therefore care must be taken not to exceed the loaded map depth when resizing (see the LqrVMap objects format description in the page for lqr_vmap_new(3)). The return value follows the Liquid Rescale library signalling system. SEE ALSO
LqrRetVal(3), lqr_vmap_new(3), lqr_vmap_dump(3), lqr_vmap_internal_dump(3), lqr_carver_set_dump_vmaps(3) COPYRIGHT
Copyright (C) 2007-2009 Carlo Baldassi LqR library 0.4.1 API (3:1:3) 10 Maj 2009 LQR_VMAP_LOAD(3)
Man Page