Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/external/jmonkeyengine/engine/src/networking/com/jme3/network/base/
DDefaultServer.java74 private List<KernelAdapter> channels = new ArrayList<KernelAdapter>(); field in DefaultServer
98 channels.add( reliableAdapter ); in DefaultServer()
101 channels.add( fastAdapter ); in DefaultServer()
129 if( channels.size() - CH_FIRST != alternatePorts.size() ) in addChannel()
137 channels.add( new KernelAdapter(this, kernel, dispatcher, true) ); in addChannel()
157 for( KernelAdapter ka : channels ) { in start()
162 for( KernelAdapter ka : channels ) { in start()
181 for( KernelAdapter ka : channels ) { in close()
225 channels.get(channel+CH_FIRST).broadcast( adapter, buffer, true, false ); in broadcast()
304 return channels.indexOf(ka); in getChannel()
[all …]
DDefaultClient.java80 private List<ConnectorAdapter> channels = new ArrayList<ConnectorAdapter>(); field in DefaultClient
103 if( !channels.isEmpty() ) in setPrimaryConnectors()
107 channels.add(new ConnectorAdapter(reliable, dispatcher, dispatcher, true)); in setPrimaryConnectors()
109 channels.add(new ConnectorAdapter(fast, dispatcher, dispatcher, false)); in setPrimaryConnectors()
112 channels.add(null); in setPrimaryConnectors()
129 for( ConnectorAdapter ca : channels ) { in start()
166 for( int ch = CH_UNRELIABLE; ch < channels.size(); ch++ ) { in start()
167 if( channels.get(ch) == null ) in start()
207 if( message.isReliable() || channels.get(CH_UNRELIABLE) == null ) { in send()
216 if( channel < 0 || channel + CH_FIRST >= channels.size() ) in send()
[all …]
/external/libvorbis/lib/
Dmapping0.c81 oggpack_write(opb,info->coupling_mag[i],ilog(vi->channels)); in mapping0_pack()
82 oggpack_write(opb,info->coupling_ang[i],ilog(vi->channels)); in mapping0_pack()
91 for(i=0;i<vi->channels;i++) in mapping0_pack()
122 int testM=info->coupling_mag[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
123 int testA=info->coupling_ang[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
128 testM>=vi->channels || in mapping0_unpack()
129 testA>=vi->channels) goto err_out; in mapping0_unpack()
137 for(i=0;i<vi->channels;i++){ in mapping0_unpack()
247 int *nonzero = alloca(sizeof(*nonzero)*vi->channels); in mapping0_forward()
248 float **gmdct = _vorbis_block_alloc(vb,vi->channels*sizeof(*gmdct)); in mapping0_forward()
[all …]
/external/quake/quake/src/WinQuake/
Dsnd_dma.cpp39 channel_t channels[MAX_CHANNELS]; variable
120 Con_Printf("%5d stereo\n", shm->channels - 1); in S_SoundInfo_f()
221 shm->channels = 2; in S_Init()
373 && channels[ch_idx].entnum == entnum in SND_PickChannel()
374 && (channels[ch_idx].entchannel == entchannel || entchannel == -1) ) in SND_PickChannel()
381 if (channels[ch_idx].entnum == cl.viewentity && entnum != cl.viewentity && channels[ch_idx].sfx) in SND_PickChannel()
384 if (channels[ch_idx].end - paintedtime < life_left) in SND_PickChannel()
386 life_left = channels[ch_idx].end - paintedtime; in SND_PickChannel()
394 if (channels[first_to_die].sfx) in SND_PickChannel()
395 channels[first_to_die].sfx = NULL; in SND_PickChannel()
[all …]
/external/quake/quake/src/QW/client/
Dsnd_dma.c42 channel_t channels[MAX_CHANNELS]; variable
123 Con_Printf("%5d stereo\n", shm->channels - 1); in S_SoundInfo_f()
224 shm->channels = 2; in S_Init()
369 && channels[ch_idx].entnum == entnum in SND_PickChannel()
370 && (channels[ch_idx].entchannel == entchannel || entchannel == -1) ) in SND_PickChannel()
377 if (channels[ch_idx].entnum == cl.viewentity && entnum != cl.viewentity && channels[ch_idx].sfx) in SND_PickChannel()
380 if (channels[ch_idx].end - paintedtime < life_left) in SND_PickChannel()
382 life_left = channels[ch_idx].end - paintedtime; in SND_PickChannel()
390 if (channels[first_to_die].sfx) in SND_PickChannel()
391 channels[first_to_die].sfx = NULL; in SND_PickChannel()
[all …]
Dsnd_linux.c101 if (s) shm->channels = atoi(s); in SNDDMA_Init()
103 shm->channels = 1; in SNDDMA_Init()
105 shm->channels = 2; in SNDDMA_Init()
106 else shm->channels = 2; in SNDDMA_Init()
124 if (shm->channels == 2) in SNDDMA_Init()
130 Con_Printf("Could not set /dev/dsp to stereo=%d", shm->channels); in SNDDMA_Init()
135 shm->channels = 2; in SNDDMA_Init()
137 shm->channels = 1; in SNDDMA_Init()
/external/wpa_supplicant_8/src/p2p/
Dp2p_utils.c182 for (i = 0; i < a->channels; i++) { in p2p_reg_class_intersect()
183 for (j = 0; j < b->channels; j++) { in p2p_reg_class_intersect()
186 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect()
187 res->channels++; in p2p_reg_class_intersect()
188 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS) in p2p_reg_class_intersect()
223 if (res->reg_class[res->reg_classes].channels) { in p2p_channels_intersect()
240 int p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class, in p2p_channels_includes() argument
244 for (i = 0; i < channels->reg_classes; i++) { in p2p_channels_includes()
245 const struct p2p_reg_class *reg = &channels->reg_class[i]; in p2p_channels_includes()
248 for (j = 0; j < reg->channels; j++) { in p2p_channels_includes()
[all …]
/external/webkit/Source/WebKit/chromium/src/
DWebWorkerClientImpl.cpp167 PassOwnPtr<MessagePortChannelArray> channels) in postMessageToWorkerContext() argument
177 channels)); in postMessageToWorkerContext()
180 WebMessagePortChannelArray webChannels(channels.get() ? channels->size() : 0); in postMessageToWorkerContext()
183 (*channels)[i]->channel()->webChannelRelease(); in postMessageToWorkerContext()
209 const WebMessagePortChannelArray& channels) in postMessageToWorkerObject() argument
212 if (channels.size()) { in postMessageToWorkerObject()
213 channels2 = new MessagePortChannelArray(channels.size()); in postMessageToWorkerObject()
214 for (size_t i = 0; i < channels.size(); ++i) { in postMessageToWorkerObject()
216 PlatformMessagePortChannel::create(channels[i]); in postMessageToWorkerObject()
217 channels[i]->setClient(platform_channel.get()); in postMessageToWorkerObject()
[all …]
DPlatformMessagePortChannel.cpp183 OwnPtr<WebCore::MessagePortChannelArray> channels = message->channels(); in postMessageToRemote() local
185 if (channels.get() && channels->size()) { in postMessageToRemote()
186 webChannels = new WebMessagePortChannelArray(channels->size()); in postMessageToRemote()
187 for (size_t i = 0; i < channels->size(); ++i) { in postMessageToRemote()
188 WebCore::PlatformMessagePortChannel* platformChannel = (*channels)[i]->channel(); in postMessageToRemote()
205 OwnPtr<MessagePortChannelArray> channels; in tryGetMessageFromRemote() local
207 channels = new MessagePortChannelArray(webChannels.size()); in tryGetMessageFromRemote()
211 (*channels)[i] = MessagePortChannel::create(platformChannel); in tryGetMessageFromRemote()
215 … result = MessagePortChannel::EventData::create(serializedMessage.release(), channels.release()); in tryGetMessageFromRemote()
DWebWorkerImpl.cpp82 PassOwnPtr<MessagePortChannelArray> channels) in postMessageToWorkerContextTask() argument
89 MessagePort::entanglePorts(*context, channels); in postMessageToWorkerContextTask()
119 OwnPtr<MessagePortChannelArray> channels; in postMessageToWorkerContext() local
121 channels = new MessagePortChannelArray(webChannels.size()); in postMessageToWorkerContext()
126 (*channels)[i] = MessagePortChannel::create(platform_channel); in postMessageToWorkerContext()
132 this, String(message), channels.release())); in postMessageToWorkerContext()
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/
DMockAbstractSelector.java17 package org.apache.harmony.nio.tests.java.nio.channels.spi;
20 import java.nio.channels.SelectionKey;
21 import java.nio.channels.Selector;
22 import java.nio.channels.spi.AbstractSelectableChannel;
23 import java.nio.channels.spi.AbstractSelectionKey;
24 import java.nio.channels.spi.AbstractSelector;
25 import java.nio.channels.spi.SelectorProvider;
DAbstractSelectionKeyTest.java17 package org.apache.harmony.nio.tests.java.nio.channels.spi;
19 import java.nio.channels.SelectableChannel;
20 import java.nio.channels.SelectionKey;
21 import java.nio.channels.Selector;
22 import java.nio.channels.spi.AbstractSelectionKey;
/external/tinyalsa/
Dtinycap.c61 unsigned int channels, unsigned int rate,
76 unsigned int channels = 2; in main() local
105 channels = atoi(*argv); in main()
137 header.num_channels = channels; in main()
140 header.byte_rate = (header.bits_per_sample / 8) * channels * rate; in main()
141 header.block_align = channels * (header.bits_per_sample / 8); in main()
165 unsigned int channels, unsigned int rate, in capture_sample() argument
175 config.channels = channels; in capture_sample()
203 printf("Capturing sample: %u ch, %u hz, %u bit\n", channels, rate, bits); in capture_sample()
215 return bytes_read / ((bits / 8) * channels); in capture_sample()
/external/tremolo/Tremolo/
Dmapping0.c87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
88 int testA=info->coupling[i].ang=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
93 testM>=vi->channels || in mapping_info_unpack()
94 testA>=vi->channels) goto err_out; in mapping_info_unpack()
102 info->chmuxlist=_ogg_malloc(sizeof(*info->chmuxlist)*vi->channels); in mapping_info_unpack()
103 for(i=0;i<vi->channels;i++){ in mapping_info_unpack()
133 alloca(sizeof(*pcmbundle)*vi->channels); in mapping_inverse()
135 alloca(sizeof(*zerobundle)*vi->channels); in mapping_inverse()
137 alloca(sizeof(*nonzero)*vi->channels); in mapping_inverse()
139 alloca(sizeof(*floormemo)*vi->channels); in mapping_inverse()
[all …]
/external/qemu/distrib/libpng-1.2.19/
Dpngwtran.c94 row_info->channels == 1) in png_do_pack()
197 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
224 int channels = 0; in png_do_shift() local
228 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
229 shift_dec[channels] = bit_depth->red; in png_do_shift()
230 channels++; in png_do_shift()
231 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
232 shift_dec[channels] = bit_depth->green; in png_do_shift()
233 channels++; in png_do_shift()
234 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/libpng/
Dpngwtran.c100 row_info->channels == 1) in png_do_pack()
203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
231 int channels = 0; in png_do_shift() local
235 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
236 shift_dec[channels] = bit_depth->red; in png_do_shift()
237 channels++; in png_do_shift()
238 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
239 shift_dec[channels] = bit_depth->green; in png_do_shift()
240 channels++; in png_do_shift()
241 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
DSelectableChannelTest.java17 package org.apache.harmony.nio.tests.java.nio.channels;
20 import java.nio.channels.ClosedChannelException;
21 import java.nio.channels.SelectableChannel;
22 import java.nio.channels.SelectionKey;
23 import java.nio.channels.Selector;
24 import java.nio.channels.spi.SelectorProvider;
/external/jmonkeyengine/engine/src/core/com/jme3/audio/
DAudioData.java48 protected int channels; field in AudioData
85 return channels; in getChannels()
101 public void setupFormat(int channels, int bitsPerSample, int sampleRate){ in setupFormat() argument
105 this.channels = channels; in setupFormat()
/external/webkit/Source/WebCore/dom/
DMessagePort.cpp80 OwnPtr<MessagePortChannelArray> channels; in postMessage() local
90 channels = MessagePort::disentanglePorts(ports, ec); in postMessage()
94 …m_entangledChannel->postMessageToRemote(MessagePortChannel::EventData::create(message, channels.re… in postMessage()
182 …agePortArray> ports = MessagePort::entanglePorts(*m_scriptExecutionContext, eventData->channels()); in dispatchMessages()
231 …ePort::entanglePorts(ScriptExecutionContext& context, PassOwnPtr<MessagePortChannelArray> channels) in entanglePorts() argument
233 if (!channels || !channels->size()) in entanglePorts()
236 MessagePortArray* portArray = new MessagePortArray(channels->size()); in entanglePorts()
237 for (unsigned int i = 0; i < channels->size(); ++i) { in entanglePorts()
239 port->entangle((*channels)[i].release()); in entanglePorts()
/external/libpng/contrib/gregbook/
Dreadppm.c68 int bit_depth, color_type, channels; variable
97 channels = 3; in readpng_init()
100 channels = 4; in readpng_init()
103 channels = 1; in readpng_init()
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
155 *pChannels = channels; in readpng_get_image()
/external/qemu/distrib/sdl-1.2.15/src/audio/
DSDL_wave.c54 MS_ADPCM_state.wavefmt.channels = SDL_SwapLE16(format->channels); in InitMS_ADPCM()
130 MS_ADPCM_state.wavefmt.channels*sizeof(Sint16); in MS_ADPCM_decode()
139 stereo = (MS_ADPCM_state.wavefmt.channels == 2); in MS_ADPCM_decode()
189 MS_ADPCM_state.wavefmt.channels; in MS_ADPCM_decode()
231 IMA_ADPCM_state.wavefmt.channels = SDL_SwapLE16(format->channels); in InitIMA_ADPCM()
328 unsigned int c, channels; in IMA_ADPCM_decode() local
331 channels = IMA_ADPCM_state.wavefmt.channels; in IMA_ADPCM_decode()
332 if ( channels > SDL_arraysize(IMA_ADPCM_state.state) ) { in IMA_ADPCM_decode()
345 IMA_ADPCM_state.wavefmt.channels*sizeof(Sint16); in IMA_ADPCM_decode()
356 for ( c=0; c<channels; ++c ) { in IMA_ADPCM_decode()
[all …]
/external/webkit/Source/WebCore/workers/
DWorkerMessagingProxy.cpp50 …sk> create(PassRefPtr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) in create() argument
52 return new MessageWorkerContextTask(message, channels); in create()
56 …ontextTask(PassRefPtr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) in MessageWorkerContextTask() argument
58 , m_channels(channels) in MessageWorkerContextTask()
78 …Ptr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels, WorkerMessagingP… in create() argument
80 return new MessageWorkerTask(message, channels, messagingProxy); in create()
84 …Ptr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels, WorkerMessagingP… in MessageWorkerTask() argument
86 , m_channels(channels) in MessageWorkerTask()
244 …rkerObject(PassRefPtr<SerializedScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) in postMessageToWorkerObject() argument
246 m_scriptExecutionContext->postTask(MessageWorkerTask::create(message, channels, this)); in postMessageToWorkerObject()
[all …]
/external/speex/libspeex/
Dscal.c59 int channels; member
81 EXPORT SpeexDecorrState *speex_decorrelate_new(int rate, int channels, int frame_size) in speex_decorrelate_new() argument
86 st->channels = channels; in speex_decorrelate_new()
96 st->buff = speex_alloc(channels*2*frame_size*sizeof(float)); in speex_decorrelate_new()
97 st->ringID = speex_alloc(channels*sizeof(int)); in speex_decorrelate_new()
98 st->order = speex_alloc(channels*sizeof(int)); in speex_decorrelate_new()
99 st->alpha = speex_alloc(channels*sizeof(float)); in speex_decorrelate_new()
100 st->ring = speex_alloc(channels*ALLPASS_ORDER*sizeof(float)); in speex_decorrelate_new()
108 for (ch=0;ch<channels;ch++) in speex_decorrelate_new()
148 for (ch=0;ch<st->channels;ch++) in speex_decorrelate()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAppleLosslessSpecificBox.java28 private int channels; // 8bit field in AppleLosslessSpecificBox
83 return channels; in getChannels()
86 public void setChannels(int channels) { in setChannels() argument
87 this.channels = channels; in setChannels()
132 channels = IsoTypeReader.readUInt8(content); in _parseDetails()
148 IsoTypeWriter.writeUInt8(byteBuffer, channels); in getContent()
/external/opencv/otherlibs/highgui/
Dgrfmt_tiff.cpp360 int channels = 1; in ReadHeader() local
460 channels = value; in ReadHeader()
461 if( channels != 1 && channels != 3 && channels != 4 ) in ReadHeader()
507 if( photometric == 0 || photometric == 1 && channels == 1 ) in ReadHeader()
518 m_compression != TIFF_HUFFMAN && channels == 1 ) in ReadHeader()
532 (channels == 3 || channels == 4) && in ReadHeader()
535 m_bpp = 8*channels; in ReadHeader()
682 int width, int height, int /*depth*/, int channels ) in WriteImage() argument
685 int fileStep = width*channels; in WriteImage()
729 if( channels == 3 ) in WriteImage()
[all …]

12345678910>>...16