*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> old-compression/clAddParam (3d)              


clAddParam(3dm)						       clAddParam(3dm)

NAME    [Toc]    [Back]

     clAddParam, clSetDefault, clSetMin, clSetMax, clSetMinMax,	clSetRange -
     Add a video or audio compression parameter	to the Compression Library

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/cl.h>

     int clAddParam(int	scheme,	char *name, int	paramType,
	 int min, int max, int initial,	int *paramIDPtr)

     int clSetDefault(int scheme, int paramID, int initial)
     int clSetMin(int scheme, int paramID, int min)
     int clSetMax(int scheme, int paramID, int max)
     int clSetMinMax(int scheme, int paramID, int min, int max)
     int clSetRange(int	scheme,	int paramID, int min, int max, int initial)

ARGUMENTS    [Toc]    [Back]

     scheme    The compression scheme that gets	the added parameter.

     name      A pointer to a string that contains the name of the parameter.

     paramType The type	of the parameter (CL_ENUM_VALUE, CL_RANGE_VALUE,

     min       The minimum value the parameter can have.

     max       The maximum value the parameter can have.

     initial   The default value of the	parameter.

	       A pointer to an int value that is to receive the	new parameter

     paramID   The parameter identifier.

     New codecs	introduced with	clAddAlgorithm may also	have custom parameters
     added with	clAddParam.  Once added, these parameters are accessible by
     applications using	standard API calls such	as clGetParams and

     clSetDefault, clSetMin, clSetMax, clSetMinMax, and	clSetRange may be used
     to	configure a new	parameter after	it is added.

RETURN VALUES    [Toc]    [Back]

     clAddParam, clSetMinMax, and clSetRange return SUCCESS, or	a negative
     error code	on failure.  clSetDefault, clSetMin, and clSetMax return the
     previous default, min, and	max values, respectively, or negative error
     codes on failure.

									Page 1

clAddParam(3dm)						       clAddParam(3dm)

EXAMPLE    [Toc]    [Back]

	  #include <dmedia/cl.h>

	  int newScheme;
	  int newParamID;
	  /* Add a new algorithm */
	  clAddAlgorithm("New Algorithm", CL_ALG_VIDEO,
	      OpenNewCompressor, CompressNew, CloseNewCompressor,
	      OpenNewDecompressor, DecompressNew, CloseNewDecompressor,
	      ReadNewHeader, QueryNewScheme, QueryNewLicense,
	      GetNewParams, SetNewParams,

	  /* Add a new parameter */
	  clAddParam(newScheme,	"New Parameter", CL_RANGE_VALUE, 0, 100, 75,
	  /* Compress a	series of frames */
	  clOpenCompressor(newScheme, &handle);

	  clSetParam(handle, newParamID, 55);

SEE ALSO    [Toc]    [Back]

     CLintro(3dm), clAddAlgorithm(3dm),	clSetUnique(3dm), clGetUnique(3dm),
     clFetchParam(3dm),	clStoreParam(3dm), clError(3dm), clGetDefault(3dm),

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
clAddAlgorithm IRIX Add a video or audio compression algorithm to the Compression Library
cl_aware IRIX Aware Audio Schemes in the Compression Library
dmMPEG1AudioEncode IRIX Compresses a single block of audio data using MPEG1 audio compression algorithm.
AFinitcompression IRIX configure the audio compression type and parameters in an AFfilesetup structure for an audio track
AUchecklicense IRIX checks for a given audio compression license
aware IRIX Aware(R), Inc. scalable audio compression software engines
AFgetcompression IRIX get the compression type and parameters for an audio track from an AFfilehandle structure
dmACConvert IRIX convert audio data format, sampling rate and compression
dm_dv IRIX DV and DVCPRO image and audio compression programming with dmIC, dmAC and dmBuffers
dmDVIAudioEncode IRIX compress audio data using the IMA (Interactive Multimedia Association) Recommended ADPCM compression, based on
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service