Ienc1
Provides a simple interface to IMGENC1 (XDM 1.0) based algorithms.
More...
Detailed Description
Provides a simple interface to IMGENC1 (XDM 1.0) based algorithms.
Typedef Documentation
Handle through which to reference an Image Encode algorithm.
Function Documentation
Ienc1_Handle Ienc1_create |
( |
Engine_Handle |
hEngine, |
|
|
Char * |
codecName, |
|
|
IMGENC1_Params * |
params, |
|
|
IMGENC1_DynamicParams * |
dynParams | |
|
) |
| | |
Creates an Image Encode (XDM 1.0) algorithm instance.
- Parameters:
-
[in] | hEngine | An opened engine containing the algorithm to create. |
[in] | codecName | The name of the algorithm to open. Corresponds to the string name given in the .cfg file. |
[in] | params | XDM parameters to use while creating the codec. |
[in] | dynParams | XDM dynamic parameters to use while creating the codec. |
- Return values:
-
| Handle | for use in subsequent operations (see Ienc1_Handle). |
| NULL | for failure. |
Encodes an image buffer.
- Parameters:
-
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Deletes an Image Encode algorithm instance.
- Parameters:
-
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Get the IMGENC1 handle from the Ienc1 module instance.
- Parameters:
-
[in] | hIe | The Ienc1_Handle for which to get the IMGENC1 handle. |
- Return values:
-
| Handle | to the image encode algorithm, see the XDM documentation for IMGENC1. |
Get the input buffer size required by the codec.
- Parameters:
-
- Return values:
-
| Size | in bytes of the input buffer required. |
Get the output buffer size required by the codec.
- Parameters:
-
- Return values:
-
| Size | in bytes of the output buffer required. |
Variable Documentation
Default XDM parameters for an Image Encode algorithm.
size = sizeof (IMGENC1_Params),
maxHeight = 0,
maxWidth = 0,
maxScans = XDM_DEFAULT,
dataEndianness = XDM_BYTE,
forceChromaFormat = XDM_YUV_422P
Default XDM dynamic parameters for an Image Encode algorithm.
size = sizeof(IMGENC1_DynamicParams),
numAU = XDM_DEFAULT,
inputChromaFormat = XDM_YUV_422ILE,
inputHeight = 0,
inputWidth = 0,
captureWidth = 0,
generateHeader = XDM_ENCODE_AU,
qValue = 75