xp_comm_proj/build3d_2/build3d_2.c
/*----------------------------------------------------------------------
 * returns the ASCII equiv of an integer format
 */
returns the ASCII equiv of an integer format
returns the ASCII equiv of an integer format
static int FUNCget_image_format_name(int format, char *name)
{
  int result = 1;
  switch (format)
  {
    case DV_IMAGE_FORMAT_AVSX:
      sprintf(name, "%s", "AVSX");
      break;
    case DV_IMAGE_FORMAT_GIF:
      sprintf(name, "%s", "GIF");
      break;
    case DV_IMAGE_FORMAT_JPEG:
      sprintf(name, "%s", "JPEG");
      break;
    case DV_IMAGE_FORMAT_PBM:
      sprintf(name, "%s", "PBM");
      break;
    case DV_IMAGE_FORMAT_SUNRAS:
      sprintf(name, "%s", "Sun Raster");
      break;
    case DV_IMAGE_FORMAT_SGIRGB:
      sprintf(name, "%s", "SGI Image");
      break;
    case DV_IMAGE_FORMAT_TIFF:
      sprintf(name, "%s", "TIFF");
      break;
    case DV_IMAGE_FORMAT_PS:
      sprintf(name, "%s", "PostScript");
      break;
    case DV_IMAGE_FORMAT_BMP:
      sprintf(name, "%s", "BMP");
      break;
    case DV_IMAGE_FORMAT_UTAH:
      sprintf(name, "%s", "Utah RLE");
      break;
    case DV_IMAGE_FORMAT_Z:
      sprintf(name, "%s", "compressed");
      break;
    case DV_IMAGE_FORMAT_GZIP:
      sprintf(name, "%s", "gzip compressed");
      break;
    default:
      sprintf(name, "%s", "<unknown>");
      result = 0;
      break;
  }
  return(result);
}
static int FUNCget_image_format_name ( int format , char * name ) { int result = 1 ; switch ( format ) { case DV_IMAGE_FORMAT_AVSX : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_GIF : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_JPEG : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_PBM : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_SUNRAS : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_SGIRGB : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_TIFF : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_PS : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_BMP : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_UTAH : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_Z : sprintf ( name , " " , " " ) ; break ; case DV_IMAGE_FORMAT_GZIP : sprintf ( name , " " , " " ) ; break ; default : sprintf ( name , " " , " " ) ; result = 0 ; break ; } return ( result ) ; }
returns the ASCII equiv of an integer format
returns the ASCII equiv of an integer format