mira_GetInputWidth
Returns the expected width of a frame in pixels.
int mira_GetInputWidth(mrkernel* pmr);
Parameters:
- pmr: A pointer to the runtime kernel returned by mira_Init.
Return value:
The expected width of a frame in pixels if the value (> 0) or an error code (< 0).
Description:
mira_GetInputWidth will get the expected width of a frame in pixels, the input width can be modified using mira_SetInputWidth. It requires that a model has been loaded using mira_LoadModel.
Example:
- printf("Expected geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d\n",
- mira_GetInputWidth(pmr),
- mira_GetInputBands(pmr),
- mira_GetInputHeight(pmr),
- mira_GetInputDataType(pmr),
- mira_GetInputDataLayout(pmr));
Output:
Expected geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2