Searched defs:targetEncoding (Results 1 - 8 of 8) sorted by relevance
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SunCodec.java | 84 public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat); argument 89 public abstract AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream); argument
|
H A D | AlawCodec.java | 121 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 122 if( (targetEncoding.equals( AudioFormat.Encoding.PCM_SIGNED ) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.ALAW)) || 123 (targetEncoding.equals( AudioFormat.Encoding.ALAW) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_SIGNED)) ) { 132 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream){ argument 136 if( sourceEncoding.equals( targetEncoding ) ) { 140 if( !isConversionSupported(targetEncoding,sourceStream.getFormat()) ) { 141 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString()); 144 targetEncoding.equals( AudioFormat.Encoding.PCM_SIGNED ) ) { 146 targetFormat = new AudioFormat( targetEncoding, 155 targetEncoding [all...] |
H A D | UlawCodec.java | 108 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 109 if( (AudioFormat.Encoding.PCM_SIGNED.equals(targetEncoding) 112 (AudioFormat.Encoding.ULAW.equals(targetEncoding) 122 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream){ argument 126 if (sourceEncoding.equals(targetEncoding)) { 130 if (!isConversionSupported(targetEncoding,sourceStream.getFormat())) { 131 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString()); 134 AudioFormat.Encoding.PCM_SIGNED.equals(targetEncoding) ) { 135 targetFormat = new AudioFormat( targetEncoding, 143 AudioFormat.Encoding.ULAW.equals(targetEncoding)) { [all...] |
H A D | AudioFloatFormatConverter.java | 475 public AudioInputStream getAudioInputStream(Encoding targetEncoding, argument 477 if (sourceStream.getFormat().getEncoding().equals(targetEncoding)) 481 Encoding encoding = targetEncoding; 485 if (targetEncoding.equals(Encoding.PCM_FLOAT)) 539 public AudioFormat[] getTargetFormats(Encoding targetEncoding, argument 547 if (targetEncoding.equals(Encoding.PCM_SIGNED)) 551 if (targetEncoding.equals(Encoding.PCM_UNSIGNED)) 557 if (targetEncoding.equals(Encoding.PCM_SIGNED)) { 565 if (targetEncoding.equals(Encoding.PCM_UNSIGNED)) { 575 if (targetEncoding 606 isConversionSupported(Encoding targetEncoding, AudioFormat sourceFormat) argument [all...] |
H A D | PCMtoPCMCodec.java | 89 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 91 // filter out targetEncoding from the old getOutputFormats( sourceFormat ) method 96 if( formats[i].getEncoding().equals( targetEncoding ) ) { 113 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream) { argument 115 if( isConversionSupported(targetEncoding, sourceStream.getFormat()) ) { 118 AudioFormat targetFormat = new AudioFormat( targetEncoding, 129 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString() );
|
/openjdk7/jdk/src/share/classes/javax/sound/sampled/spi/ |
H A D | FormatConversionProvider.java | 98 * @param targetEncoding the target format encoding for which support is queried 101 public boolean isTargetEncodingSupported(AudioFormat.Encoding targetEncoding){ argument 106 if( targetEncoding.equals( targetEncodings[i]) ) { 127 * @param targetEncoding desired encoding of the outgoing data 131 public boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 136 if( targetEncoding.equals( targetEncodings[i]) ) { 151 public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat); argument 177 * @param targetEncoding desired encoding of the stream after processing 183 public abstract AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream); argument
|
/openjdk7/jdk/src/share/classes/javax/sound/sampled/ |
H A D | AudioSystem.java | 832 * @param targetEncoding the desired encoding after conversion 837 public static boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) { argument 844 if(codec.isConversionSupported(targetEncoding,sourceFormat) ) { 855 * @param targetEncoding the desired encoding after conversion 864 public static AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, argument 871 if( codec.isConversionSupported( targetEncoding, sourceStream.getFormat() ) ) { 872 return codec.getAudioInputStream( targetEncoding, sourceStream ); 876 throw new IllegalArgumentException("Unsupported conversion: " + targetEncoding + " from " + sourceStream.getFormat()); 884 * @param targetEncoding the desired encoding after conversion 889 public static AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioForma argument [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/datatransfer/ |
H A D | DataTransferer.java | 1885 String targetEncoding, 1914 if (targetEncoding == null) { 1923 encoder = Charset.forName(targetEncoding).newEncoder(); 1884 ReencodingInputStream(InputStream bytestream, long format, String targetEncoding, Transferable localeTransferable) argument
|
Completed in 47 milliseconds