Home
last modified time | relevance | path

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

12345678

/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 …]
Dmm_qcamera_snapshot.c533 mm_camera_stream_t *stream = NULL; in mm_app_add_snapshot_channel() local
545 stream = mm_app_add_snapshot_stream(test_obj, in mm_app_add_snapshot_channel()
551 if (NULL == stream) { in mm_app_add_snapshot_channel()
568 mm_camera_stream_t *stream = NULL; in mm_app_add_postview_stream() local
571 stream = mm_app_add_stream(test_obj, channel); in mm_app_add_postview_stream()
572 if (NULL == stream) { in mm_app_add_postview_stream()
577 stream->s_config.mem_vtbl.get_bufs = mm_app_stream_initbuf; in mm_app_add_postview_stream()
578 stream->s_config.mem_vtbl.put_bufs = mm_app_stream_deinitbuf; in mm_app_add_postview_stream()
579 stream->s_config.mem_vtbl.clean_invalidate_buf = in mm_app_add_postview_stream()
581 stream->s_config.mem_vtbl.invalidate_buf = mm_app_stream_invalidate_buf; in mm_app_add_postview_stream()
[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.h120 uint32_t (*get_sample_rate)(const struct audio_stream *stream);
125 int (*set_sample_rate)(struct audio_stream *stream, uint32_t rate);
131 size_t (*get_buffer_size)(const struct audio_stream *stream);
137 audio_channel_mask_t (*get_channels)(const struct audio_stream *stream);
142 audio_format_t (*get_format)(const struct audio_stream *stream);
147 int (*set_format)(struct audio_stream *stream, audio_format_t format);
154 int (*standby)(struct audio_stream *stream);
157 int (*dump)(const struct audio_stream *stream, int fd);
160 audio_devices_t (*get_device)(const struct audio_stream *stream);
168 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/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_hal.c80 struct audio_stream_out stream; member
116 struct audio_stream_in stream; member
299 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
301 uint32_t rate = proxy_get_sample_rate(&((struct stream_out*)stream)->proxy); in out_get_sample_rate()
306 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
311 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
313 const struct stream_out* out = (const struct stream_out*)stream; in out_get_buffer_size()
315 proxy_get_period_size(&out->proxy) * audio_stream_out_frame_size(&(out->stream)); in out_get_buffer_size()
319 static uint32_t out_get_channels(const struct audio_stream *stream) in out_get_channels() argument
321 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
279 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
281 struct stream_out *out = (struct stream_out *)stream; in out_get_sample_rate()
285 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
287 UNUSED_PARAMETER(stream); in out_set_sample_rate()
293 static size_t out_get_buffer_size(const struct audio_stream *stream) in out_get_buffer_size() argument
295 struct stream_out *out = (struct stream_out *)stream; in out_get_buffer_size()
300 audio_stream_out_frame_size((struct audio_stream_out *)stream); in out_get_buffer_size()
305 audio_stream_out_frame_size((struct audio_stream_out *)stream); in out_get_buffer_size()
317 audio_stream_out_frame_size((struct audio_stream_out *)stream)); in out_get_buffer_size()
[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/4.0/vts/functional/
DAudioPrimaryHidlHalTest.cpp581 ASSERT_OK(openStream(ioHandle, config, returnIn(res, stream, suggestedConfig))); in testOpen()
586 ASSERT_TRUE(stream != nullptr); in testOpen()
590 ASSERT_TRUE(stream == nullptr); in testOpen()
595 returnIn(res, stream, suggestedConfigRetry))); in testOpen()
598 ASSERT_TRUE(stream != nullptr); in testOpen()
609 return stream->close(); in closeStream()
615 ASSERT_OK(stream->close()); in TearDown()
622 sp<Stream> stream; member in OpenStreamTest
735 ASSERT_EQ(audioConfig.frameCount, extract(stream->getFrameCount())))
738 ASSERT_EQ(audioConfig.sampleRateHz, extract(stream->getSampleRate())))
[all …]
/hardware/libhardware/modules/camera/3_4/
Dstatic_properties.cpp277 const camera3_stream_t* stream = stream_config->streams[i]; in SanityCheckStreamConfiguration() local
278 if (stream == nullptr) { in SanityCheckStreamConfiguration()
281 } else if (!IsInputType(stream->stream_type) && in SanityCheckStreamConfiguration()
282 !IsOutputType(stream->stream_type)) { in SanityCheckStreamConfiguration()
286 stream->stream_type); in SanityCheckStreamConfiguration()
300 const camera3_stream_t* stream = stream_config->streams[i]; in InputStreamsSupported() local
301 if (IsInputType(stream->stream_type)) { in InputStreamsSupported()
303 const auto capabilities_iterator = stream_capabilities_.find(stream); in InputStreamsSupported()
308 stream->width, in InputStreamsSupported()
309 stream->height, in InputStreamsSupported()
[all …]
Dv4l2_camera.cpp337 camera3_stream_t* stream = stream_config->streams[0]; in setupStreams() local
338 int format = stream->format; in setupStreams()
339 uint32_t width = stream->width; in setupStreams()
340 uint32_t height = stream->height; in setupStreams()
349 stream = stream_config->streams[i]; in setupStreams()
350 if (stream->format != format || stream->width != width || in setupStreams()
351 stream->height != height) { in setupStreams()
360 stream->format, in setupStreams()
361 stream->width, in setupStreams()
362 stream->height); in setupStreams()
[all …]
Drequest_tracker.cpp48 result.insert(request.input_buffer->stream); in RequestStreams()
51 result.insert(output_buffer.stream); in RequestStreams()
62 for (const auto stream : RequestStreams(*request)) { in Add() local
63 ++buffers_in_flight_[stream]; in Add()
95 for (const auto stream : RequestStreams(*request)) { in Remove() local
96 --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/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/
Daudio_hw.c332 static int set_compr_volume(struct audio_stream_out *stream, float left, float right);
850 audio_devices_t a1 = uc->stream.out->devices; in derive_playback_snd_device()
851 audio_devices_t a2 = new_uc->stream.out->devices; in derive_playback_snd_device()
1242 if (usecase->stream.out == NULL) { in force_device_switch()
1250 if ((usecase->stream.out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in force_device_switch()
1282 usecase->stream.out->devices); in select_devices()
1283 in_snd_device = platform_get_input_snd_device(adev->platform, usecase->stream.out->devices); in select_devices()
1284 usecase->devices = usecase->stream.out->devices; in select_devices()
1311 usecase->devices = usecase->stream.out->devices; in select_devices()
1317 usecase->stream.out->devices); in select_devices()
[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 …]
/hardware/interfaces/audio/2.0/
DIStream.hal41 * Return the size of input/output buffer in bytes for this stream.
56 * Return supported sampling rates of the stream. Calling this method is
65 * Sets the sampling rate of the stream. Calling this method is equivalent
74 * Return the channel mask of the stream.
81 * Return supported channel masks of the stream. Calling this method is
90 * Sets the channel mask of the stream. Calling this method is equivalent to
99 * Return the audio format of the stream.
106 * Return supported audio formats of the stream. Calling this method is
115 * Sets the audio format of the stream. Calling this method is equivalent to
124 * Convenience method for retrieving several stream parameters in
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCamera2HWICallbacks.cpp694 mm_camera_super_buf_t *super_frame, QCameraStream * stream, in synchronous_stream_cb_routine() argument
718 if (stream->getMyType() != CAM_STREAM_TYPE_PREVIEW) { in synchronous_stream_cb_routine()
758 stream->mStreamTimestamp = frameTime; in synchronous_stream_cb_routine()
799 QCameraStream * stream, in preview_stream_cb_routine() argument
836 if (!stream->isSyncCBEnabled()) { in preview_stream_cb_routine()
840 if (!stream->isSyncCBEnabled() && in preview_stream_cb_routine()
844 } else if (stream->isSyncCBEnabled() && in preview_stream_cb_routine()
853 stream->bufDone(frame->buf_idx); in preview_stream_cb_routine()
859 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
873 if (!stream->isSyncCBEnabled() && !discardFrame) { in preview_stream_cb_routine()
[all …]

12345678