Lines Matching refs:format
96 " The format of the output file is determined by the file extension of the\n"
108 { int old_format = sfinfo->format ;
109 int endian = sfinfo->format & SF_FORMAT_ENDMASK ;
112 sfinfo->format = old_format & (SF_FORMAT_TYPEMASK | SF_FORMAT_SUBMASK) ;
115 { printf ("Error : output file format does not support %s endian-ness.\n", sfe_endian_name (endian)) ;
121 { printf ("Error : output file format does not support %d channels.\n", channels) ;
126 "Error : output file format is invalid.\n"
129 sfe_container_name (sfinfo->format), sfe_codec_name (sfinfo->format), program_name (argv0)) ;
300 infileminor = sfinfo.format & SF_FORMAT_SUBMASK ;
302 if ((sfinfo.format = sfe_file_type_of_ext (outfilename, sfinfo.format)) == 0)
307 outfilemajor = sfinfo.format & (SF_FORMAT_TYPEMASK | SF_FORMAT_ENDMASK) ;
310 outfileminor = sfinfo.format & SF_FORMAT_SUBMASK ;
313 sfinfo.format = outfilemajor | outfileminor ;
315 sfinfo.format = outfilemajor | (sfinfo.format & SF_FORMAT_SUBMASK) ;
317 sfinfo.format |= endian ;
319 if ((sfinfo.format & SF_FORMAT_TYPEMASK) == SF_FORMAT_XI)
320 switch (sfinfo.format & SF_FORMAT_SUBMASK)
322 sfinfo.format = outfilemajor | SF_FORMAT_DPCM_16 ;
327 sfinfo.format = outfilemajor | SF_FORMAT_DPCM_8 ;
336 if ((sfinfo.format & SF_FORMAT_SUBMASK) == SF_FORMAT_GSM610 && sfinfo.samplerate != 8000)
338 "WARNING: GSM 6.10 data format only supports 8kHz sample rate. The converted\n"
339 "ouput file will contain the input data converted to the GSM 6.10 data format\n"