/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        C O N V E R S I O N   D ' U N   F I C H I E R   D E   T Y P E   I M A G E                                                  */
/*        D E   L A   ' Int '   A    L A   P R E C I S I O N   ' Float '  :                                                          */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xcg/Int_Float$K' :                                                                                             */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20020524181005).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        I N T E R F A C E   ' listG '  :                                                                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        :Debut_listG:                                                                                                              */
/*        :Fin_listG:                                                                                                                */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        D I R E C T I V E S   S P E C I F I Q U E S   D E   C O M P I L A T I O N  :                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        F I C H I E R S   D ' I N C L U D E S  :                                                                                   */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  INCLUDES_BASE

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P A R A M E T R E S  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        C O N V E R S I O N   D ' U N   F I C H I E R   D E   T Y P E   I M A G E                                                  */
/*        D E   L A   ' Int '   A    L A   P R E C I S I O N   ' Float '  :                                                          */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE));
     /*..............................................................................................................................*/
     GET_ARGUMENTSi(nombre_d_arguments
                   ,BLOC(GET_ARGUMENT_C("imageA=""A=",nom_imageA);
                         GET_ARGUMENT_C("imageR=""R=",nom_imageR);
                         )
                    );

     begin_nouveau_block
          Bblock
          BDEFV(imageI,imageA_Int);
                                        /* Image entiere dans le format 'Int'.                                                       */
          BDEFV(imageF,imageR_Float);
                                        /* Image flottante dans le format 'Float'.                                                   */

          Test(PAS_D_ERREUR(CODE_ERROR(IloadI_image(imageA_Int,nom_imageA))))
               Bblock
               CALS(Iconversion_Int_Float(imageR_Float,imageA_Int));
                                        /* Introduit sous cette forme le 201704061029520170406102953                                 */

               CALi(IupdateF_image(nom_imageR,imageR_Float));
                                        /* Rangement de l'image 'Float'...                                                           */
               Eblock
          ATes
               Bblock
               Test__CODE_ERREUR__ERREUR07;
               Eblock
          ETes

          EDEFV(imageF,imageR_Float);
                                        /* Image flottante dans le format 'Float'.                                                   */
          EDEFV(imageI,imageA_Int);
                                        /* Image entiere dans le format 'Int'.                                                       */
          Eblock
     end_nouveau_block

     RETU_Commande;
     Eblock
ECommande



Copyright © Jean-François COLONNA, 2019-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2024.