[trunk] Make sure the memory is initialized. valgrind was complaning in mqc_init_enc...
[openjpeg.git] / libopenjpeg / mct.h
index 7596187d9fd9e5e2ffa534585aa95e6e9216808c..68107136848d2653b9c63b5b180e403d17172a66 100644 (file)
@@ -83,13 +83,43 @@ Apply an irreversible multi-component inverse transform to an image
 @param c2 Samples for blue chrominance component
 @param n Number of samples for each component
 */
-void mct_decode_real(int *c0, int *c1, int *c2, int n);
+void mct_decode_real(float* c0, float* c1, float* c2, int n);
 /**
 Get norm of the basis function used for the irreversible multi-component transform
 @param compno Number of the component (0->Y, 1->U, 2->V)
 @return 
 */
 double mct_getnorm_real(int compno);
+
+
+opj_bool mct_encode_custom(
+                                          /* MCT data */
+                                          OPJ_BYTE * p_coding_data,
+                                          /* size of components */
+                                          OPJ_UINT32 n,
+                                          /* components */
+                                          OPJ_BYTE ** p_data,
+                                          /* nb of components (i.e. size of p_data) */
+                                          OPJ_UINT32 p_nb_comp,
+                                          /* tells if the data is signed */
+                                          OPJ_UINT32 is_signed);
+
+opj_bool mct_decode_custom(
+                                          /* MCT data */
+                                          OPJ_BYTE * pDecodingData,
+                                          /* size of components */
+                                          OPJ_UINT32 n,
+                                          /* components */
+                                          OPJ_BYTE ** pData,
+                                          /* nb of components (i.e. size of pData) */
+                                          OPJ_UINT32 pNbComp,
+                                          /* tells if the data is signed */
+                                          OPJ_UINT32 isSigned);
+
+void opj_calculate_norms(OPJ_FLOAT64 * pNorms,OPJ_UINT32 p_nb_comps,OPJ_FLOAT32 * pMatrix);
+
+const OPJ_FLOAT64 * get_mct_norms ();
+const OPJ_FLOAT64 * get_mct_norms_real ();
 /* ----------------------------------------------------------------------- */
 /*@}*/