Merge pull request #1141 from szukw000/changes-in-pnmtoimage
[openjpeg.git] / src / lib / openjp2 / invert.h
index 669a68e313d45bf09fce1f9dcd51aa241d249933..70402135593e38f18d5da0dd6cdbaeb809bffae4 100644 (file)
@@ -1,4 +1,9 @@
 /*
+ * The copyright in this software is being made available under the 2-clauses
+ * BSD License, included below. This software may be subject to other third
+ * party and contributor rights, including patent rights, and no such rights
+ * are granted under this license.
+ *
  * Copyright (c) 2008, Jerome Fimes, Communications & Systemes <jerome.fimes@c-s.fr>
  * All rights reserved.
  *
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __INVERT_H
-#define __INVERT_H
-/**\r
-@file invert.h\r
-@brief Implementation of the matrix inversion\r
-\r
-The function in INVERT.H compute a matrix inversion with a LUP method\r
+#ifndef OPJ_INVERT_H
+#define OPJ_INVERT_H
+/**
+@file invert.h
+@brief Implementation of the matrix inversion
+
+The function in INVERT.H compute a matrix inversion with a LUP method
 */
 
-/** @defgroup INVERT INVERT - Implementation of a matrix inversion */\r
+/** @defgroup INVERT INVERT - Implementation of a matrix inversion */
 /*@{*/
-/** @name Exported functions */\r
+/** @name Exported functions */
 /*@{*/
 /* ----------------------------------------------------------------------- */
 
@@ -43,16 +48,17 @@ The function in INVERT.H compute a matrix inversion with a LUP method
  * Calculates a n x n double matrix inversion with a LUP method. Data is aligned, rows after rows (or columns after columns).
  * The function does not take ownership of any memory block, data must be fred by the user.
  *
- * @param pSrcMatrix   the matrix to invert.
- * @param pDestMatrix  data to store the inverted matrix. 
+ * @param pSrcMatrix    the matrix to invert.
+ * @param pDestMatrix   data to store the inverted matrix.
+ * @param nb_compo      size of the matrix
  * @return OPJ_TRUE if the inversion is successful, OPJ_FALSE if the matrix is singular.
  */
-opj_bool opj_matrix_inversion_f(OPJ_FLOAT32 * pSrcMatrix,
-                                OPJ_FLOAT32 * pDestMatrix, 
-                                OPJ_UINT32 n);
-/* ----------------------------------------------------------------------- */\r
-/*@}*/\r
-\r
+OPJ_BOOL opj_matrix_inversion_f(OPJ_FLOAT32 * pSrcMatrix,
+                                OPJ_FLOAT32 * pDestMatrix,
+                                OPJ_UINT32 nb_compo);
+/* ----------------------------------------------------------------------- */
+/*@}*/
+
 /*@}*/
 
-#endif /* __INVERT_H */ 
\ No newline at end of file
+#endif /* OPJ_INVERT_H */