Commit 2458ff86 authored by Christophe Favergeon's avatar Christophe Favergeon
Browse files

Correction of issue #93

Const qualifier in interpolation functions
parent 61478be8
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ extern "C"
          uint32_t nValues;           /**< nValues */
          float32_t x1;               /**< x1 */
          float32_t xSpacing;         /**< xSpacing */
          float32_t *pYData;          /**< pointer to the table of Y values */
          const float32_t *pYData;          /**< pointer to the table of Y values */
  } arm_linear_interp_instance_f32;

  /**
@@ -65,7 +65,7 @@ extern "C"
  {
          uint16_t numRows;   /**< number of rows in the data table. */
          uint16_t numCols;   /**< number of columns in the data table. */
          float32_t *pData;   /**< points to the data table. */
          const float32_t *pData;   /**< points to the data table. */
  } arm_bilinear_interp_instance_f32;

   /**
@@ -75,7 +75,7 @@ extern "C"
  {
          uint16_t numRows;   /**< number of rows in the data table. */
          uint16_t numCols;   /**< number of columns in the data table. */
          q31_t *pData;       /**< points to the data table. */
          const q31_t *pData;       /**< points to the data table. */
  } arm_bilinear_interp_instance_q31;

   /**
@@ -85,7 +85,7 @@ extern "C"
  {
          uint16_t numRows;   /**< number of rows in the data table. */
          uint16_t numCols;   /**< number of columns in the data table. */
          q15_t *pData;       /**< points to the data table. */
          const q15_t *pData;       /**< points to the data table. */
  } arm_bilinear_interp_instance_q15;

   /**
@@ -95,7 +95,7 @@ extern "C"
  {
          uint16_t numRows;   /**< number of rows in the data table. */
          uint16_t numCols;   /**< number of columns in the data table. */
          q7_t *pData;        /**< points to the data table. */
          const q7_t *pData;        /**< points to the data table. */
  } arm_bilinear_interp_instance_q7;


+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ typedef struct
    uint32_t  nValues;        /**< nValues */
    float16_t x1;             /**< x1 */
    float16_t xSpacing;       /**< xSpacing */
    float16_t *pYData;        /**< pointer to the table of Y values */
    const float16_t *pYData;        /**< pointer to the table of Y values */
} arm_linear_interp_instance_f16;

/**
@@ -55,7 +55,7 @@ typedef struct
{
    uint16_t  numRows;/**< number of rows in the data table. */
    uint16_t  numCols;/**< number of columns in the data table. */
    float16_t *pData; /**< points to the data table. */
    const float16_t *pData; /**< points to the data table. */
} arm_bilinear_interp_instance_f16;

  /**
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
  {
    float16_t out;
    float16_t f00, f01, f10, f11;
    float16_t *pData = S->pData;
    const float16_t *pData = S->pData;
    int32_t xIndex, yIndex, index;
    float16_t xdiff, ydiff;
    float16_t b1, b2, b3, b4;
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@
   *   {
   *     uint16_t numRows;
   *     uint16_t numCols;
   *     float32_t *pData;
   *     const float32_t *pData;
   * } arm_bilinear_interp_instance_f32;
   * </pre>
   *
@@ -105,7 +105,7 @@
  {
    float32_t out;
    float32_t f00, f01, f10, f11;
    float32_t *pData = S->pData;
    const float32_t *pData = S->pData;
    int32_t xIndex, yIndex, index;
    float32_t xdiff, ydiff;
    float32_t b1, b2, b3, b4;
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@
    q15_t x1, x2, y1, y2;                        /* Nearest output values */
    q31_t xfract, yfract;                        /* X, Y fractional parts */
    int32_t rI, cI;                              /* Row and column indices */
    q15_t *pYData = S->pData;                    /* pointer to output table values */
    const q15_t *pYData = S->pData;                    /* pointer to output table values */
    uint32_t nCols = S->numCols;                 /* num of rows */

    /* Input is in 12.20 format */
Loading