/*************************************************************************************************************************************/ /* */ /* 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 P R E C I S I O N ' Float ' A L A V R A I E S I M P L E P R E C I S I O N : */ /* */ /* */ /* Definition : */ /* */ /* Ce programme est l'inverse de 'v $xcg/float_Float$K' */ /* et est destine en fait a "compresser" des images */ /* 'Float' en divisant leur taille par 2 (en passant */ /* donc de 'Float' a 'vrai_float_de_base'. */ /* */ /* */ /* Author of '$xcg/Float_float$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 20020419095744). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 : */ /* */ /*************************************************************************************************************************************/ #include xcg/float_Float.02.I" /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 P R E C I S I O N ' Float ' A L A V R A I E S I M P L E P R E C I S I O N : */ /* */ /*************************************************************************************************************************************/ 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(imageF,imageA_Float); /* Image flottante dans le format 'Float'. */ BDEFV(image_vrai_float_de_base,imageR_vrai_float_de_base); /* Image flottante dans le format "vrai float de base"... */ Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(imageA_Float,nom_imageA)))) Bblock CALS(Fconversion_Float_float(imageR_vrai_float_de_base,imageA_Float)); /* Introduit sous cette forme le 20170406102651... */ CALS(Idelete_fichier(nom_imageR)); CALS(Istore_fichier(ConversionEventuelle_CHAR(imageR_vrai_float_de_base) ,nom_imageR ,size_i_vrai_float_de_base ,size_vrai_float_de_base ) ); /* Rangement de l'image "vrai float de base". La procedure 'ConversionEventuelle_CHAR(...)' */ /* a ete introduite entre le 20040619111001 et le 20040619183048... */ Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes EDEFV(image_vrai_float_de_base,imageR_vrai_float_de_base); /* Image flottante dans le format "vrai float de base"... */ EDEFV(imageF,imageA_Float); /* Image flottante dans le format 'Float'. */ Eblock end_nouveau_block RETU_Commande; Eblock ECommande