Home
last modified time | relevance | path

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

12345678910

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c100 mm_camera_stream_t *stream = NULL; in mm_app_add_rdi_stream() local
143 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_rdi_stream()
144 if (NULL == stream) { in mm_app_add_rdi_stream()
149 stream->s_config.mem_vtbl.get_bufs = mm_app_stream_initbuf; in mm_app_add_rdi_stream()
150 stream->s_config.mem_vtbl.put_bufs = mm_app_stream_deinitbuf; in mm_app_add_rdi_stream()
151 stream->s_config.mem_vtbl.clean_invalidate_buf = in mm_app_add_rdi_stream()
153 stream->s_config.mem_vtbl.invalidate_buf = mm_app_stream_invalidate_buf; in mm_app_add_rdi_stream()
154 stream->s_config.mem_vtbl.clean_buf = mm_app_stream_clean_buf; in mm_app_add_rdi_stream()
155 stream->s_config.mem_vtbl.user_data = (void *)stream; in mm_app_add_rdi_stream()
156 stream->s_config.stream_cb = stream_cb; in mm_app_add_rdi_stream()
[all …]
Dmm_qcamera_preview.c628 mm_camera_stream_t *stream = NULL; in mm_app_add_metadata_stream() local
630 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_metadata_stream()
631 if (NULL == stream) { in mm_app_add_metadata_stream()
636 stream->s_config.mem_vtbl.get_bufs = mm_app_stream_initbuf; in mm_app_add_metadata_stream()
637 stream->s_config.mem_vtbl.put_bufs = mm_app_stream_deinitbuf; in mm_app_add_metadata_stream()
638 stream->s_config.mem_vtbl.clean_invalidate_buf = in mm_app_add_metadata_stream()
640 stream->s_config.mem_vtbl.invalidate_buf = mm_app_stream_invalidate_buf; in mm_app_add_metadata_stream()
641 stream->s_config.mem_vtbl.clean_buf = mm_app_stream_clean_buf; in mm_app_add_metadata_stream()
642 stream->s_config.mem_vtbl.user_data = (void *)stream; in mm_app_add_metadata_stream()
643 stream->s_config.stream_cb = stream_cb; in mm_app_add_metadata_stream()
[all …]
Dmm_qcamera_video.c342 mm_camera_stream_t *stream = NULL; in mm_app_add_video_preview_stream() local
356 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_video_preview_stream()
357 if (NULL == stream) { in mm_app_add_video_preview_stream()
361 stream->s_config.mem_vtbl.get_bufs = mm_app_stream_initbuf; in mm_app_add_video_preview_stream()
362 stream->s_config.mem_vtbl.put_bufs = mm_app_stream_deinitbuf; in mm_app_add_video_preview_stream()
363 stream->s_config.mem_vtbl.clean_invalidate_buf = in mm_app_add_video_preview_stream()
365 stream->s_config.mem_vtbl.invalidate_buf = mm_app_stream_invalidate_buf; in mm_app_add_video_preview_stream()
366 stream->s_config.mem_vtbl.clean_buf = mm_app_stream_clean_buf; in mm_app_add_video_preview_stream()
367 stream->s_config.mem_vtbl.user_data = (void *)stream; in mm_app_add_video_preview_stream()
368 stream->s_config.stream_cb = stream_cb; in mm_app_add_video_preview_stream()
[all …]
Dmm_qcamera_reprocess.c116 mm_camera_stream_t *stream = NULL; in mm_app_add_reprocess_stream_from_source() local
129 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_reprocess_stream_from_source()
130 if (NULL == stream) { in mm_app_add_reprocess_stream_from_source()
135 stream->s_config.mem_vtbl.get_bufs = mm_app_stream_initbuf; in mm_app_add_reprocess_stream_from_source()
136 stream->s_config.mem_vtbl.put_bufs = mm_app_stream_deinitbuf; in mm_app_add_reprocess_stream_from_source()
137 stream->s_config.mem_vtbl.clean_invalidate_buf = in mm_app_add_reprocess_stream_from_source()
139 stream->s_config.mem_vtbl.invalidate_buf = mm_app_stream_invalidate_buf; in mm_app_add_reprocess_stream_from_source()
140 stream->s_config.mem_vtbl.clean_buf = mm_app_stream_clean_buf; in mm_app_add_reprocess_stream_from_source()
141 stream->s_config.mem_vtbl.user_data = (void *)stream; in mm_app_add_reprocess_stream_from_source()
142 stream->s_config.stream_cb = stream_cb; in mm_app_add_reprocess_stream_from_source()
[all …]
/hardware/libhardware/modules/audio/
Daudio_hw.c49 struct audio_stream_out stream; member
58 struct audio_stream_in stream; member
66 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
68 const struct stub_stream_out *out = (const struct stub_stream_out *)stream; in out_get_sample_rate()
74 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
76 struct stub_stream_out *out = (struct stub_stream_out *)stream; in out_set_sample_rate()
83 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
85 const struct stub_stream_out *out = (const struct stub_stream_out *)stream; in out_get_buffer_size()
87 audio_stream_out_frame_size(&out->stream); in out_get_buffer_size()
93 static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
[all …]
/hardware/libhardware_legacy/audio/
Daudio_hw_hal.cpp46 struct audio_stream_out stream; member
52 struct audio_stream_in stream; member
121 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
124 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_sample_rate()
128 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
131 reinterpret_cast<struct legacy_stream_out *>(stream); in out_set_sample_rate()
138 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
141 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_buffer_size()
145 static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
148 reinterpret_cast<const struct legacy_stream_out *>(stream); in out_get_channels()
[all …]
/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 …]
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()
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 …]
/hardware/libhardware/include/hardware/
Daudio.h121 uint32_t (*get_sample_rate)(const struct audio_stream *stream);
126 int (*set_sample_rate)(struct audio_stream *stream, uint32_t rate);
132 size_t (*get_buffer_size)(const struct audio_stream *stream);
138 audio_channel_mask_t (*get_channels)(const struct audio_stream *stream);
143 audio_format_t (*get_format)(const struct audio_stream *stream);
148 int (*set_format)(struct audio_stream *stream, audio_format_t format);
155 int (*standby)(struct audio_stream *stream);
158 int (*dump)(const struct audio_stream *stream, int fd);
161 audio_devices_t (*get_device)(const struct audio_stream *stream);
169 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/usbaudio/
Daudio_hal.c79 struct audio_stream_out stream; member
112 struct audio_stream_in stream; member
292 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
294 uint32_t rate = proxy_get_sample_rate(&((struct stream_out*)stream)->proxy); in out_get_sample_rate()
299 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
304 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
306 const struct stream_out* out = (const struct stream_out*)stream; in out_get_buffer_size()
308 proxy_get_period_size(&out->proxy) * audio_stream_out_frame_size(&(out->stream)); in out_get_buffer_size()
312 static uint32_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
314 const struct stream_out *out = (const struct stream_out*)stream; in out_get_channels()
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp178 struct audio_stream_out stream; member
190 struct audio_stream_in stream; member
277 struct audio_stream_out * const stream) in audio_stream_out_get_submix_stream_out() argument
279 ALOG_ASSERT(stream); in audio_stream_out_get_submix_stream_out()
280 return reinterpret_cast<struct submix_stream_out *>(reinterpret_cast<uint8_t *>(stream) - in audio_stream_out_get_submix_stream_out()
281 offsetof(struct submix_stream_out, stream)); in audio_stream_out_get_submix_stream_out()
286 struct audio_stream * const stream) in audio_stream_get_submix_stream_out() argument
288 ALOG_ASSERT(stream); in audio_stream_get_submix_stream_out()
290 reinterpret_cast<struct audio_stream_out *>(stream)); in audio_stream_get_submix_stream_out()
296 struct audio_stream_in * const stream) in audio_stream_in_get_submix_stream_in() argument
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/5.0/
DAudioPrimaryHidlHalTest.cpp26 ASSERT_RESULT(okOrNotSupported, stream->setMicrophoneDirection(dir)); in TEST_P()
32 stream->setMicrophoneDirection(MicrophoneDirection(dir))); in TEST_P()
42 ASSERT_RESULT(okOrNotSupported, stream->setMicrophoneFieldDimension(val)); in TEST_P()
47 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(val)); in TEST_P()
48 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(-val)); in TEST_P()
51 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(NAN)); in TEST_P()
52 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(-NAN)); in TEST_P()
53 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(INFINITY)); in TEST_P()
54 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(-INFINITY)); in TEST_P()
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalTest.cpp19 static void testGetDevice(IStream* stream, AudioDevice expectedDevice) { in testGetDevice() argument
23 auto ret = stream->getDevice(); in testGetDevice()
33 : testGetDevice(stream.get(), address.device))
35 static void testSetDevice(IStream* stream, const DeviceAddress& address) { in testSetDevice() argument
39 EXPECT_OK(stream->setDevice(otherAddress)); in testSetDevice()
41 ASSERT_OK(stream->setDevice(address)); // Go back to the original value in testSetDevice()
46 : testSetDevice(stream.get(), address))
48 static void testConnectedState(IStream* stream) { in testConnectedState() argument
54 ASSERT_OK(stream->setConnectedState(address, true)); in testConnectedState()
55 ASSERT_OK(stream->setConnectedState(address, false)); in testConnectedState()
[all …]
/hardware/libhardware/modules/camera/3_4/
Dv4l2_camera.cpp326 camera3_stream_t* stream = stream_config->streams[0]; in setupStreams() local
327 int format = stream->format; in setupStreams()
328 uint32_t width = stream->width; in setupStreams()
329 uint32_t height = stream->height; in setupStreams()
338 stream = stream_config->streams[i]; in setupStreams()
339 if (stream->format != format || stream->width != width || in setupStreams()
340 stream->height != height) { in setupStreams()
349 stream->format, in setupStreams()
350 stream->width, in setupStreams()
351 stream->height); in setupStreams()
[all …]
Dstatic_properties.cpp278 const camera3_stream_t* stream = stream_config->streams[i]; in SanityCheckStreamConfiguration() local
279 if (stream == nullptr) { in SanityCheckStreamConfiguration()
282 } else if (!IsInputType(stream->stream_type) && in SanityCheckStreamConfiguration()
283 !IsOutputType(stream->stream_type)) { in SanityCheckStreamConfiguration()
287 stream->stream_type); in SanityCheckStreamConfiguration()
301 const camera3_stream_t* stream = stream_config->streams[i]; in InputStreamsSupported() local
302 if (IsInputType(stream->stream_type)) { in InputStreamsSupported()
304 const auto capabilities_iterator = stream_capabilities_.find(stream); in InputStreamsSupported()
309 stream->width, in InputStreamsSupported()
310 stream->height, in InputStreamsSupported()
[all …]
Drequest_tracker.cpp49 result.insert(request.input_buffer->stream); in RequestStreams()
52 result.insert(output_buffer.stream); in RequestStreams()
63 for (const auto stream : RequestStreams(*request)) { in Add() local
64 ++buffers_in_flight_[stream]; in Add()
96 for (const auto stream : RequestStreams(*request)) { in Remove() local
97 --buffers_in_flight_[stream]; in Remove()
131 for (const auto stream : RequestStreams(request)) { in CanAddRequest() local
132 if (StreamFull(stream)) { in CanAddRequest()
133 ALOGE("%s: Stream %p is full.", __func__, stream); in CanAddRequest()
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalUtils.h60 static auto getFormat(IStream* stream) { in getFormat()
61 auto ret = stream->getFormat(); in getFormat()
65 static Result sampleRates(IStream* stream, hidl_vec<uint32_t>& rates) { in sampleRates()
67 EXPECT_OK(stream->getSupportedSampleRates(getFormat(stream), returnIn(res, rates))); in sampleRates()
71 static Result channelMasks(IStream* stream, in channelMasks()
74 EXPECT_OK(stream->getSupportedChannelMasks(getFormat(stream), returnIn(res, channels))); in channelMasks()
79 static Result formats(IStream* stream, hidl_vec<AudioFormat>& capabilities) { in formats()
80 EXPECT_OK(stream->getSupportedFormats(returnIn(capabilities))); in formats()
84 static Result formats(IStream* stream, hidl_vec<AudioFormat>& capabilities) { in formats()
86 EXPECT_OK(stream->getSupportedFormats(returnIn(res, capabilities))); in formats()
DAudioPrimaryHidlHalTest.cpp66 sp<IStreamIn> stream; in TEST_P() local
67 StreamHelper<IStreamIn> helper(stream); in TEST_P()
81 size_t frameSize = stream->getFrameSize(); in TEST_P()
82 size_t frameCount = stream->getBufferSize() / frameSize; in TEST_P()
83 ASSERT_OK(stream->prepareForReading( in TEST_P()
104 ASSERT_OK(stream->getActiveMicrophones(returnIn(res, activeMicrophones))); in TEST_P()
142 static void testGetDevices(IStream* stream, AudioDevice expectedDevice) { in testGetDevices() argument
145 ASSERT_OK(stream->getDevices(returnIn(res, devices))); in testGetDevices()
159 : testGetDevices(stream.get(), address.device))
161 static void testSetDevices(IStream* stream, const DeviceAddress& address) { in testSetDevices() argument
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/
DAudioPrimaryHidlHalTest.h826 explicit StreamHelper(sp<Stream>& stream) : mStream(stream) {} in StreamHelper() argument
885 OpenStreamTest() : AudioHidlTestWithDeviceConfigParameter(), helper(stream) {} in OpenStreamTest()
910 sp<Stream> stream; variable
1053 ASSERT_TRUE(stream->getFrameCount().isOk()))
1056 ASSERT_EQ(audioConfig.sampleRateHz, extract(stream->getSampleRate())))
1059 ASSERT_EQ(audioConfig.channelMask, extract(stream->getChannelMask())))
1062 ASSERT_EQ(audioConfig.format, extract(stream->getFormat())))
1066 ASSERT_GT(extract(stream->getFrameSize()), 0U))
1069 ASSERT_GE(extract(stream->getBufferSize()), extract(stream->getFrameSize())));
1072 static void testCapabilityGetter(const string& name, IStream* stream,
[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 …]
/hardware/qcom/audio/hal/audio_extn/
Daudiozoom.h22 #define audio_extn_audiozoom_set_microphone_direction(stream, dir) (-ENOSYS) argument
23 #define audio_extn_audiozoom_set_microphone_field_dimension(stream, zoom) (-ENOSYS) argument
26 int audio_extn_audiozoom_set_microphone_direction(struct stream_in *stream,
28 int audio_extn_audiozoom_set_microphone_field_dimension(struct stream_in *stream, float zoom);
/hardware/qcom/audio/hal/
Daudio_hw.c362 static int set_compr_volume(struct audio_stream_out *stream, float left, float right);
364 static int in_set_microphone_direction(const struct audio_stream_in *stream,
366 static int in_set_microphone_field_dimension(const struct audio_stream_in *stream, float zoom);
662 struct stream_in *in = usecase->stream.in; in enable_audio_route()
673 out_device = voip_usecase->stream.out->devices; in enable_audio_route()
681 out_device = uinfo->stream.out->devices; in enable_audio_route()
733 struct stream_in *in = usecase->stream.in; in disable_audio_route()
920 in = usecase->stream.in; in update_effect_param_ecns()
997 if (usecase->type == PCM_CAPTURE && usecase->stream.in != NULL) { in check_and_enable_effect()
998 in = usecase->stream.in; in check_and_enable_effect()
[all …]
/hardware/ril/libril/
Dsap_service.cpp214 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in connectReq() local
217 if (!pb_encode(&stream, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
225 return addPayloadAndDispatchRequest(msg, stream.bytes_written, buffer); in connectReq()
255 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in disconnectReq() local
258 if (!pb_encode(&stream, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
266 return addPayloadAndDispatchRequest(msg, stream.bytes_written, buffer); in disconnectReq()
308 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in apduReq() local
311 if (!pb_encode(&stream, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
319 return addPayloadAndDispatchRequest(msg, stream.bytes_written, buffer); in apduReq()
350 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in transferAtrReq() local
[all …]

12345678910