dmParamsGetIntArray(3dm) dmParamsGetIntArray(3dm)
dmParamsGetIntArray, dmParamsGetEnumArray, dmParamsGetStringArray,
dmParamsGetFloatArray, dmParamsGetFractArray - get arrays of values from
digital media parameter/value lists
#include <dmedia/dm_params.h>
const DMintarray* dmParamsGetIntArray
( const DMparams* params,
const char* paramName )
const DMenumarray* dmParamsGetEnumArray
( const DMparams* params,
const char* paramName )
const DMstringarray* dmParamsGetStringArray
( const DMparams* params,
const char* paramName )
const DMfloatarray* dmParamsGetFloatArray
( const DMparams* params,
const char* paramName )
const DMfractionarray* dmParamsGetFractArray
( const DMparams* params,
const char* paramName )
These functions all retrieve values stored in a parameter/value list.
They assume that the named parameter is present and is of the specified
type; the debugging version of the library asserts that this is the case.
The value, or a pointer to it is returned.
The returned array points to the internal data structure of the parameter
list, and is owned by the parameter list. It should never be freed, and
is only guaranteed to remain valid until the next time the list is
changed. In general, if you need to keep the array around after getting
it from a parameter/value list, it should be copied.
dmParams(3dm), dmParamsSetInt(3dm), dmParamsGetNumElems(3dm),
dmSetImageDefaults(3dm), dmSetAudioDefaults(3dm).
PPPPaaaaggggeeee 1111 [ Back ]
|