Returns the expected width of a frame in pixels.


int mira_GetInputWidth(mrkernelpmr);


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:

  1. printf("Expected geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d\n",
  2.       mira_GetInputWidth(pmr),
  3.       mira_GetInputBands(pmr),
  4.       mira_GetInputHeight(pmr),
  5.       mira_GetInputDataType(pmr),
  6.       mira_GetInputDataLayout(pmr));


Output:

Expected geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2