Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 54) sorted by relevance

123

/hardware/libhardware/modules/audio/
Daudio_hw.c36 struct audio_stream_out stream; member
40 struct audio_stream_in stream; member
43 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
48 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
53 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
58 static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
63 static audio_format_t out_get_format(const struct audio_stream *stream) in out_get_format() argument
68 static int out_set_format(struct audio_stream *stream, audio_format_t format) in out_set_format() argument
73 static int out_standby(struct audio_stream *stream) in out_standby() argument
78 static int out_dump(const struct audio_stream *stream, int fd) in out_dump() argument
[all …]
Daudio_policy.c98 audio_stream_type_t stream, in ap_get_output() argument
109 audio_stream_type_t stream, int session) in ap_start_output() argument
115 audio_stream_type_t stream, int session) in ap_stop_output() argument
149 audio_stream_type_t stream, int index_min, in ap_init_stream_volume() argument
155 audio_stream_type_t stream, in ap_set_stream_volume_index() argument
162 audio_stream_type_t stream, in ap_get_stream_volume_index() argument
169 audio_stream_type_t stream, in ap_set_stream_volume_index_for_device() argument
177 audio_stream_type_t stream, in ap_get_stream_volume_index_for_device() argument
185 audio_stream_type_t stream) in ap_get_strategy_for_stream() argument
191 audio_stream_type_t stream) in ap_get_devices_for_stream() argument
[all …]
/hardware/libhardware_legacy/audio/
Daudio_hw_hal.cpp44 struct audio_stream_out stream; member
50 struct audio_stream_in stream; member
119 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
122 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_sample_rate()
126 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
129 reinterpret_cast<struct legacy_stream_out *>(stream); in out_set_sample_rate()
136 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
139 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_buffer_size()
143 static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
146 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_channels()
[all …]
Daudio_policy_hal.cpp137 audio_stream_type_t stream, in ap_get_output() argument
147 return lap->apm->getOutput((AudioSystem::stream_type)stream, in ap_get_output()
154 audio_stream_type_t stream, int session) in ap_start_output() argument
157 return lap->apm->startOutput(output, (AudioSystem::stream_type)stream, in ap_start_output()
162 audio_stream_type_t stream, int session) in ap_stop_output() argument
165 return lap->apm->stopOutput(output, (AudioSystem::stream_type)stream, in ap_stop_output()
206 audio_stream_type_t stream, int index_min, in ap_init_stream_volume() argument
210 lap->apm->initStreamVolume((AudioSystem::stream_type)stream, index_min, in ap_init_stream_volume()
215 audio_stream_type_t stream, in ap_set_stream_volume_index() argument
219 return lap->apm->setStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_set_stream_volume_index()
[all …]
DAudioPolicyManagerBase.cpp306 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { in setPhoneState() local
307 handleIncallSonification(stream, false, true); in setPhoneState()
389 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { in setPhoneState() local
390 handleIncallSonification(stream, true, true); in setPhoneState()
537 audio_io_handle_t AudioPolicyManagerBase::getOutput(AudioSystem::stream_type stream, in getOutput() argument
546 routing_strategy strategy = getStrategy((AudioSystem::stream_type)stream); in getOutput()
549 device, stream, samplingRate, format, channelMask, flags); in getOutput()
565 outputDesc->mRefCount[stream] = 0; in getOutput()
636 outputDesc->mRefCount[stream] = 0; in getOutput()
637 outputDesc->mStopTime[stream] = 0; in getOutput()
[all …]
DAudioPolicyCompatClient.cpp88 status_t AudioPolicyCompatClient::invalidateStream(AudioSystem::stream_type stream) in invalidateStream() argument
90 return mServiceOps->invalidate_stream(mService, (audio_stream_type_t)stream); in invalidateStream()
120 AudioSystem::stream_type stream, in setStreamVolume() argument
125 return mServiceOps->set_stream_volume(mService, (audio_stream_type_t)stream, in setStreamVolume()
130 AudioSystem::stream_type stream) in startTone() argument
134 (audio_stream_type_t)stream); in startTone()
DAudioPolicyCompatClient.h59 virtual status_t invalidateStream(AudioSystem::stream_type stream);
68 virtual status_t setStreamVolume(AudioSystem::stream_type stream,
72 virtual status_t startTone(ToneGenerator::tone_type tone, AudioSystem::stream_type stream);
/hardware/qcom/audio/legacy/alsa_sound/
Daudio_hw_hal.cpp45 struct audio_stream_out stream; member
51 struct audio_stream_in stream; member
142 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
145 reinterpret_cast<const struct qcom_stream_out *>(stream); in out_get_sample_rate()
149 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
152 reinterpret_cast<struct qcom_stream_out *>(stream); in out_set_sample_rate()
159 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
162 reinterpret_cast<const struct qcom_stream_out *>(stream); in out_get_buffer_size()
166 static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
169 reinterpret_cast<const struct qcom_stream_out *>(stream); in out_get_channels()
[all …]
Daudio_policy_hal.cpp137 audio_stream_type_t stream, in ap_get_output() argument
146 return qap->apm->getOutput((AudioSystem::stream_type)stream, in ap_get_output()
152 audio_stream_type_t stream, int session) in ap_start_output() argument
155 return qap->apm->startOutput(output, (AudioSystem::stream_type)stream, in ap_start_output()
160 audio_stream_type_t stream, int session) in ap_stop_output() argument
163 return qap->apm->stopOutput(output, (AudioSystem::stream_type)stream, in ap_stop_output()
204 audio_stream_type_t stream, int index_min, in ap_init_stream_volume() argument
208 qap->apm->initStreamVolume((AudioSystem::stream_type)stream, index_min, in ap_init_stream_volume()
213 audio_stream_type_t stream, in ap_set_stream_volume_index() argument
217 return qap->apm->setStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_set_stream_volume_index()
[all …]
DAudioPolicyManagerALSA.cpp66 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { in setPhoneState() local
67 handleIncallSonification(stream, false, true); in setPhoneState()
155 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { in setPhoneState() local
156 handleIncallSonification(stream, true, true); in setPhoneState()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dvpxenc.c50 FILE *stream) { in wrap_fread() argument
51 return fread(ptr, size, nmemb, stream); in wrap_fread()
56 FILE *stream) { in wrap_fwrite() argument
57 return fwrite(ptr, size, nmemb, stream); in wrap_fwrite()
810 struct stream_state *stream; in new_stream() local
812 stream = calloc(1, sizeof(*stream)); in new_stream()
813 if (!stream) in new_stream()
816 memcpy(stream, prev, sizeof(*stream)); in new_stream()
817 stream->index++; in new_stream()
818 prev->next = stream; in new_stream()
[all …]
Dwebmenc.c21 (void) fwrite(buffer_in, 1, len, glob->stream); in Ebml_Write()
79 *ebmlLoc = ftello(glob->stream); in Ebml_StartSubElement()
88 pos = ftello(glob->stream); in Ebml_EndSubElement()
95 fseeko(glob->stream, *ebmlLoc, SEEK_SET); in Ebml_EndSubElement()
99 fseeko(glob->stream, pos, SEEK_SET); in Ebml_EndSubElement()
121 pos = ftello(ebml->stream); in write_webm_seek_info()
124 fseeko(ebml->stream, ebml->seek_info_pos, SEEK_SET); in write_webm_seek_info()
146 ebml->segment_info_pos = ftello(ebml->stream); in write_webm_seek_info()
182 glob->position_reference = ftello(glob->stream); in write_webm_file_header()
187 glob->track_pos = ftello(glob->stream); in write_webm_file_header()
[all …]
/hardware/intel/common/libva/test/decode/
Dtinyjpeg.c174 static void print_SOF(const unsigned char *stream) in print_SOF() argument
187 precision = stream[2]; in print_SOF()
188 height = be16_to_cpu(stream+3); in print_SOF()
189 width = be16_to_cpu(stream+5); in print_SOF()
190 nr_components = stream[7]; in print_SOF()
199 static int parse_DQT(struct jdec_private *priv, const unsigned char *stream) in parse_DQT() argument
205 dqt_block_end = stream + be16_to_cpu(stream); in parse_DQT()
206 stream += 2; /* Skip length */ in parse_DQT()
208 while (stream < dqt_block_end) in parse_DQT()
210 qi = *stream++; in parse_DQT()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hw.c75 struct audio_stream_out stream; member
97 struct audio_stream_in stream; member
243 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
245 uint32_t rate = proxy_get_sample_rate(&((struct stream_out*)stream)->proxy); in out_get_sample_rate()
250 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
255 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
257 const struct stream_out* out = (const struct stream_out*)stream; in out_get_buffer_size()
259 proxy_get_period_size(&out->proxy) * audio_stream_out_frame_size(&(out->stream)); in out_get_buffer_size()
263 static uint32_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
265 const struct stream_out *out = (const struct stream_out*)stream; in out_get_channels()
[all …]
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c126 struct audio_stream_out stream; member
295 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
297 struct stream_out *out = (struct stream_out *)stream; in out_get_sample_rate()
301 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
303 UNUSED_PARAMETER(stream); in out_set_sample_rate()
309 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
311 struct stream_out *out = (struct stream_out *)stream; in out_get_buffer_size()
316 audio_stream_out_frame_size((struct audio_stream_out *)stream); in out_get_buffer_size()
321 audio_stream_out_frame_size((struct audio_stream_out *)stream); in out_get_buffer_size()
333 audio_stream_out_frame_size((struct audio_stream_out *)stream)); in out_get_buffer_size()
[all …]
/hardware/libhardware/include/hardware/
Daudio.h172 uint32_t (*get_sample_rate)(const struct audio_stream *stream);
177 int (*set_sample_rate)(struct audio_stream *stream, uint32_t rate);
183 size_t (*get_buffer_size)(const struct audio_stream *stream);
189 audio_channel_mask_t (*get_channels)(const struct audio_stream *stream);
194 audio_format_t (*get_format)(const struct audio_stream *stream);
199 int (*set_format)(struct audio_stream *stream, audio_format_t format);
206 int (*standby)(struct audio_stream *stream);
209 int (*dump)(const struct audio_stream *stream, int fd);
212 audio_devices_t (*get_device)(const struct audio_stream *stream);
220 int (*set_device)(struct audio_stream *stream, audio_devices_t device);
[all …]
Daudio_policy.h132 audio_stream_type_t stream,
143 audio_stream_type_t stream,
150 audio_stream_type_t stream,
180 audio_stream_type_t stream,
187 audio_stream_type_t stream,
192 audio_stream_type_t stream,
199 audio_stream_type_t stream,
205 audio_stream_type_t stream,
211 audio_stream_type_t stream);
215 audio_stream_type_t stream);
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp177 struct audio_stream_out stream; member
187 struct audio_stream_in stream; member
275 struct audio_stream_out * const stream) in audio_stream_out_get_submix_stream_out() argument
277 ALOG_ASSERT(stream); in audio_stream_out_get_submix_stream_out()
278 return reinterpret_cast<struct submix_stream_out *>(reinterpret_cast<uint8_t *>(stream) - in audio_stream_out_get_submix_stream_out()
279 offsetof(struct submix_stream_out, stream)); in audio_stream_out_get_submix_stream_out()
284 struct audio_stream * const stream) in audio_stream_get_submix_stream_out() argument
286 ALOG_ASSERT(stream); in audio_stream_get_submix_stream_out()
288 reinterpret_cast<struct audio_stream_out *>(stream)); in audio_stream_get_submix_stream_out()
294 struct audio_stream_in * const stream) in audio_stream_in_get_submix_stream_in() argument
[all …]
/hardware/qcom/audio/hal/
Daudio_hw.c518 usecase->stream.out->devices); in select_devices()
519 in_snd_device = platform_get_input_snd_device(adev->platform, usecase->stream.out->devices); in select_devices()
520 usecase->devices = usecase->stream.out->devices; in select_devices()
547 usecase->devices = usecase->stream.out->devices; in select_devices()
551 usecase->stream.out->devices); in select_devices()
552 if (usecase->stream.out == adev->primary_output && in select_devices()
560 usecase->devices = usecase->stream.in->device; in select_devices()
703 uc_info->stream.in = in; in start_input_stream()
1033 uc_info->stream.out = out; in start_output_stream()
1158 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
[all …]
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioPolicyInterface.h92 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream,
100 AudioSystem::stream_type stream,
104 AudioSystem::stream_type stream,
127 virtual void initStreamVolume(AudioSystem::stream_type stream,
134 virtual status_t setStreamVolumeIndex(AudioSystem::stream_type stream,
141 virtual status_t getStreamVolumeIndex(AudioSystem::stream_type stream,
146 virtual uint32_t getStrategyForStream(AudioSystem::stream_type stream) = 0;
149 virtual audio_devices_t getDevicesForStream(AudioSystem::stream_type stream) = 0;
161 virtual bool isStreamActive(int stream, uint32_t inPastMs = 0) const = 0;
162 virtual bool isStreamActiveRemotely(int stream, uint32_t inPastMs = 0) const = 0;
[all …]
DAudioPolicyManagerBase.h89 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream,
96 AudioSystem::stream_type stream,
99 AudioSystem::stream_type stream,
115 virtual void initStreamVolume(AudioSystem::stream_type stream,
118 virtual status_t setStreamVolumeIndex(AudioSystem::stream_type stream,
121 virtual status_t getStreamVolumeIndex(AudioSystem::stream_type stream,
126 virtual uint32_t getStrategyForStream(AudioSystem::stream_type stream);
129 virtual audio_devices_t getDevicesForStream(AudioSystem::stream_type stream);
140 virtual bool isStreamActive(int stream, uint32_t inPastMs = 0) const;
144 virtual bool isStreamActiveRemotely(int stream, uint32_t inPastMs = 0) const;
[all …]
/hardware/intel/common/libmix/videodecoder/securevideo/clovertrail/
DVideoDecoderAVCSecure.cpp352 int32_t VideoDecoderAVCSecure::findNalUnitOffset(uint8_t *stream, int32_t offset, int32_t length) { in findNalUnitOffset() argument
366 ptr = (uint8_t *) (stream + offset); in findNalUnitOffset()
413 return (int32_t)(ptr - stream); in findNalUnitOffset()
419 Decode_Status VideoDecoderAVCSecure::copyNaluHeader(uint8_t *stream, NaluByteStream *naluStream) { in copyNaluHeader() argument
423 naluType = *(uint8_t *)(stream + naluStream->naluOffset); in copyNaluHeader()
446 …memcpy(naluStream->byteStream + naluStream->streamPos, (uint8_t*)(stream + naluStream->naluOffset)… in copyNaluHeader()
454 Decode_Status VideoDecoderAVCSecure::parseAnnexBStream(uint8_t *stream, int32_t length, NaluByteStr… in parseAnnexBStream() argument
469 naluOffset = findNalUnitOffset(stream, offset, left); in parseAnnexBStream()
478 ret = copyNaluHeader(stream, naluStream); in parseAnnexBStream()
500 copyNaluHeader(stream, naluStream); in parseAnnexBStream()
DVideoDecoderAVCSecure.h62 int32_t findNalUnitOffset(uint8_t *stream, int32_t offset, int32_t length);
63 Decode_Status copyNaluHeader(uint8_t *stream, NaluByteStream *naluStream);
64 Decode_Status parseAnnexBStream(uint8_t *stream, int32_t length, NaluByteStream *naluStream);
/hardware/intel/common/libmix/videodecoder/securevideo/merrplus/
DVideoDecoderAVCSecure.cpp355 int32_t VideoDecoderAVCSecure::findNalUnitOffset(uint8_t *stream, int32_t offset, int32_t length) { in findNalUnitOffset() argument
369 ptr = (uint8_t *) (stream + offset); in findNalUnitOffset()
416 return (int32_t)(ptr - stream); in findNalUnitOffset()
422 Decode_Status VideoDecoderAVCSecure::copyNaluHeader(uint8_t *stream, NaluByteStream *naluStream) { in copyNaluHeader() argument
426 naluType = *(uint8_t *)(stream + naluStream->naluOffset); in copyNaluHeader()
449 …memcpy(naluStream->byteStream + naluStream->streamPos, (uint8_t*)(stream + naluStream->naluOffset)… in copyNaluHeader()
457 Decode_Status VideoDecoderAVCSecure::parseAnnexBStream(uint8_t *stream, int32_t length, NaluByteStr… in parseAnnexBStream() argument
472 naluOffset = findNalUnitOffset(stream, offset, left); in parseAnnexBStream()
481 ret = copyNaluHeader(stream, naluStream); in parseAnnexBStream()
503 copyNaluHeader(stream, naluStream); in parseAnnexBStream()
DVideoDecoderAVCSecure.h62 int32_t findNalUnitOffset(uint8_t *stream, int32_t offset, int32_t length);
63 Decode_Status copyNaluHeader(uint8_t *stream, NaluByteStream *naluStream);
64 Decode_Status parseAnnexBStream(uint8_t *stream, int32_t length, NaluByteStream *naluStream);

123