Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 195) sorted by relevance

12345678

/hardware/libhardware/modules/camera/3_4/
Drequest_tracker_test.cpp41 uint32_t frame, std::vector<camera3_stream_t*> streams) { in GenerateCaptureRequest() argument
46 request->frame_number = frame; in GenerateCaptureRequest()
56 void AddRequest(uint32_t frame, in AddRequest() argument
60 GenerateCaptureRequest(frame, streams); in AddRequest()
63 EXPECT_FALSE(dut_->InFlight(frame)); in AddRequest()
67 EXPECT_TRUE(dut_->InFlight(frame)); in AddRequest()
78 uint32_t frame = 34; in TEST_F() local
79 EXPECT_FALSE(dut_->InFlight(frame)); in TEST_F()
80 AddRequest(frame, {&stream1_}); in TEST_F()
87 uint32_t frame = 42; in TEST_F() local
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/src/
Dmm_lib2d.c210 p_frame->frame[0].plane_cnt = 1; in lib2d_fill_img_frame()
211 p_frame->frame[0].plane[0].plane_type = PLANE_ARGB; in lib2d_fill_img_frame()
212 p_frame->frame[0].plane[0].addr = rgb_buffer->buffer; in lib2d_fill_img_frame()
213 p_frame->frame[0].plane[0].stride = rgb_buffer->stride; in lib2d_fill_img_frame()
214 p_frame->frame[0].plane[0].length = (rgb_buffer->stride * in lib2d_fill_img_frame()
216 p_frame->frame[0].plane[0].fd = rgb_buffer->fd; in lib2d_fill_img_frame()
217 p_frame->frame[0].plane[0].height = rgb_buffer->height; in lib2d_fill_img_frame()
218 p_frame->frame[0].plane[0].width = rgb_buffer->width; in lib2d_fill_img_frame()
219 p_frame->frame[0].plane[0].offset = 0; in lib2d_fill_img_frame()
220 p_frame->frame[0].plane[0].scanline = rgb_buffer->height; in lib2d_fill_img_frame()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCamera2HWICallbacks.cpp146 mm_camera_super_buf_t* frame = in zsl_channel_cb() local
148 if (frame == NULL) { in zsl_channel_cb()
153 *frame = *recvd_frame; in zsl_channel_cb()
192 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
193 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
196 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
233 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
234 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
237 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
253 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
[all …]
DQCameraPostProc.cpp937 bool QCameraPostProcessor::validatePostProcess(mm_camera_super_buf_t *frame) in validatePostProcess() argument
943 if (frame == NULL) { in validatePostProcess()
947 pChannel = m_parent->getChannelByHandle(frame->ch_id); in validatePostProcess()
1059 int32_t QCameraPostProcessor::processData(mm_camera_super_buf_t *frame) in processData() argument
1066 if (frame == NULL) { in processData()
1072 for (uint32_t i = 0; i < frame->num_bufs; i++) { in processData()
1074 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processData()
1075 meta_frame = frame->bufs[i]; in processData()
1104 pp_request_job->src_frame = frame; in processData()
1105 pp_request_job->src_reproc_frame = frame; in processData()
[all …]
DQCameraPostProc.h93 mm_camera_super_buf_t *frame; // source frame member
118 mm_camera_super_buf_t * frame; // ptr to frame member
168 bool validatePostProcess(mm_camera_super_buf_t *frame);
169 int32_t processData(mm_camera_super_buf_t *frame);
170 int32_t processRawData(mm_camera_super_buf_t *frame);
171 int32_t processPPData(mm_camera_super_buf_t *frame);
215 int32_t syncStreamParams(mm_camera_super_buf_t *frame,
DQCameraChannel.cpp1480 int32_t QCameraReprocessChannel::doReprocessOffline(mm_camera_buf_def_t *frame, in doReprocessOffline() argument
1488 if ((frame == NULL) || (meta_buf == NULL)) { in doReprocessOffline()
1494 pStream = getStreamBySrouceHandle(frame->stream_id); in doReprocessOffline()
1533 frame->fd, in doReprocessOffline()
1534 frame->buffer, in doReprocessOffline()
1535 frame->frame_len); in doReprocessOffline()
1551 param.reprocess.frame_idx = frame->frame_idx; in doReprocessOffline()
1552 param.reprocess.is_uv_subsampled = frame->is_uv_subsampled; in doReprocessOffline()
1594 int32_t QCameraReprocessChannel::doReprocessOffline(mm_camera_super_buf_t *frame, in doReprocessOffline() argument
1609 if (frame == NULL) { in doReprocessOffline()
[all …]
DQCamera2HWI.h400 mm_camera_buf_def_t *frame, uint32_t dump_type, const char *misc = NULL);
402 mm_camera_buf_def_t *frame,char *type);
536 static void rdi_mode_stream_cb_routine(mm_camera_super_buf_t *frame,
539 static void nodisplay_preview_stream_cb_routine(mm_camera_super_buf_t *frame,
542 static void preview_stream_cb_routine(mm_camera_super_buf_t *frame,
545 static void synchronous_stream_cb_routine(mm_camera_super_buf_t *frame,
547 static void postview_stream_cb_routine(mm_camera_super_buf_t *frame,
550 static void video_stream_cb_routine(mm_camera_super_buf_t *frame,
553 static void snapshot_channel_cb_routine(mm_camera_super_buf_t *frame,
555 static void raw_channel_cb_routine(mm_camera_super_buf_t *frame,
[all …]
/hardware/interfaces/automotive/can/1.0/default/
DCanBus.cpp43 struct canfd_frame frame = {}; in send() local
44 frame.can_id = message.id; in send()
45 if (message.isExtendedId) frame.can_id |= CAN_EFF_FLAG; in send()
46 if (message.remoteTransmissionRequest) frame.can_id |= CAN_RTR_FLAG; in send()
47 frame.len = message.payload.size(); in send()
48 memcpy(frame.data, message.payload.data(), message.payload.size()); in send()
50 if (!mSocket->send(frame)) return Result::TRANSMISSION_FAILURE; in send()
276 static ErrorEvent parseErrorFrame(const struct canfd_frame& frame) { in parseErrorFrame() argument
278 if ((frame.can_id & (CAN_ERR_BUSERROR | CAN_ERR_BUSOFF)) != 0) { in parseErrorFrame()
281 if ((frame.data[1] & CAN_ERR_CRTL_TX_OVERFLOW) != 0) { in parseErrorFrame()
[all …]
DCanSocket.cpp67 bool CanSocket::send(const struct canfd_frame& frame) { in send() argument
68 const auto res = write(mSocket.get(), &frame, CAN_MTU); in send()
109 struct canfd_frame frame; in readerThread() local
110 const auto nbytes = read(mSocket.get(), &frame, CAN_MTU); in readerThread()
137 mReadCallback(frame, ts); in readerThread()
/hardware/interfaces/automotive/evs/1.0/
DIEvsCameraStream.hal21 * Implemented on client side to receive asynchronous video frame deliveries.
26 * Receives calls from the HAL each time a video frame is ready for inspection.
30 * some time as the pipeline drains. Each frame must still be returned.
31 * When the last frame in the stream has been delivered, a NULL bufferHandle
32 * must be delivered, signifying the end of the stream. No further frame
35 * @param buffer a buffer descriptor of a delivered image frame.
/hardware/google/camera/devices/EmulatedCamera/hwl/
DJpegCompressor.cpp222 size_t JpegCompressor::CompressYUV420Frame(YUV420Frame frame) { in CompressYUV420Frame() argument
251 dmgr.buffer = static_cast<JOCTET*>(frame.output_buffer); in CompressYUV420Frame()
252 dmgr.buffer_size = frame.output_buffer_size; in CompressYUV420Frame()
279 cinfo->image_width = frame.width; in CompressYUV420Frame()
280 cinfo->image_height = frame.height; in CompressYUV420Frame()
315 if ((frame.app1_buffer != nullptr) && (frame.app1_buffer_size > 0)) { in CompressYUV420Frame()
317 static_cast<const JOCTET*>(frame.app1_buffer), in CompressYUV420Frame()
318 frame.app1_buffer_size); in CompressYUV420Frame()
331 uint8_t* py = static_cast<uint8_t*>(frame.yuv_planes.img_y); in CompressYUV420Frame()
332 uint8_t* pcr = static_cast<uint8_t*>(frame.yuv_planes.img_cr); in CompressYUV420Frame()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_video.c41 mm_camera_buf_def_t *frame; in mm_app_metadata_notify_cb() local
48 frame = bufs->bufs[0]; in mm_app_metadata_notify_cb()
79 frame = bufs->bufs[i]; in mm_app_metadata_notify_cb()
92 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb()
94 pMetadata = (metadata_buffer_t *)frame->buffer; in mm_app_metadata_notify_cb()
108 pme->user_metadata_cb(frame); in mm_app_metadata_notify_cb()
113 frame)) { in mm_app_metadata_notify_cb()
116 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_metadata_notify_cb()
244 mm_camera_buf_def_t *frame = NULL; in mm_app_preview_notify_cb() local
252 frame = bufs->bufs[0]; in mm_app_preview_notify_cb()
[all …]
Dmm_qcamera_rdi.c40 static void mm_app_rdi_dump_frame(mm_camera_buf_def_t *frame, in mm_app_rdi_dump_frame() argument
49 if (frame != NULL) { in mm_app_rdi_dump_frame()
56 for (i = 0; i < frame->planes_buf.num_planes; i++) { in mm_app_rdi_dump_frame()
58 (uint8_t *)frame->buffer + frame->planes_buf.planes[i].data_offset, in mm_app_rdi_dump_frame()
72 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_rdi_notify_cb() local
76 frame->frame_len, frame->frame_idx, frame->stream_id); in mm_app_rdi_notify_cb()
78 mm_app_rdi_dump_frame(frame, file_name, "raw", frame->frame_idx); in mm_app_rdi_notify_cb()
82 frame)) { in mm_app_rdi_notify_cb()
85 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_rdi_notify_cb()
Dmm_qcamera_reprocess.c37 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_reprocess_notify_cb() local
47 frame->frame_len, frame->frame_idx); in mm_app_reprocess_notify_cb()
89 frame)) { in mm_app_reprocess_notify_cb()
92 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_reprocess_notify_cb()
279 mm_camera_buf_def_t *frame, in mm_app_do_reprocess() argument
289 ( NULL == frame ) || in mm_app_do_reprocess()
317 param.reprocess.buf_index = frame->buf_idx; in mm_app_do_reprocess()
318 param.reprocess.frame_idx = frame->frame_idx; in mm_app_do_reprocess()
/hardware/interfaces/input/classifier/1.0/vts/functional/
DVtsHalInputClassifierV1_0TargetTest.cpp127 VideoFrame frame; in TEST_P() local
128 frame.data = {1, 2, 3, 4}; in TEST_P()
129 frame.height = 2; in TEST_P()
130 frame.width = 2; in TEST_P()
131 frame.timestamp = event.eventTime; in TEST_P()
132 event.frames = {frame}; in TEST_P()
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraHALPP.cpp233 mm_camera_super_buf_t *frame = pData->frame; in releaseData() local
234 if (frame) { in releaseData()
238 m_pQCameraPostProc->releaseSuperBuf(frame); in releaseData()
240 free(frame); in releaseData()
241 frame = NULL; in releaseData()
/hardware/google/graphics/common/libacryl/
Dacrylic_g2d.cpp1253 AcrylicPerformanceRequestFrame *frame = request->getFrame(i); in requestPerformanceQoS() local
1264 for (int idx = 0; idx < frame->getLayerCount(); idx++) { in requestPerformanceQoS()
1265 AcrylicPerformanceRequestLayer *layer = &(frame->mLayers[idx]); in requestPerformanceQoS()
1272 data.frame[i].layer[idx].crop_width = src_hori; in requestPerformanceQoS()
1273 data.frame[i].layer[idx].crop_height = src_vert; in requestPerformanceQoS()
1274 data.frame[i].layer[idx].window_width = dst_hori; in requestPerformanceQoS()
1275 data.frame[i].layer[idx].window_height = dst_vert; in requestPerformanceQoS()
1290 data.frame[i].layer[idx].layer_attr |= G2D_PERF_LAYER_SBWC; in requestPerformanceQoS()
1293 data.frame[i].layer[idx].layer_attr |= G2D_PERF_LAYER_RGB_AFBC; in requestPerformanceQoS()
1295 data.frame[i].layer[idx].layer_attr |= G2D_PERF_LAYER_YUV_AFBC; in requestPerformanceQoS()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Channel.cpp505 void QCamera3Channel::dumpYUV(mm_camera_buf_def_t *frame, cam_dimension_t dim, in dumpYUV() argument
535 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
539 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
543 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
547 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
551 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
555 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV()
568 written_len = write(file_fd, frame->buffer, frame->frame_len); in dumpYUV()
577 data = (void *)((uint8_t *)frame->buffer + index); in dumpYUV()
586 frame->cache_flags |= CPU_HAS_READ; in dumpYUV()
[all …]
DQCamera3Stream.cpp605 int32_t QCamera3Stream::processDataNotify(mm_camera_super_buf_t *frame) in processDataNotify() argument
609 if (mDataQ.enqueue((void *)frame)) { in processDataNotify()
613 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
614 free(frame); in processDataNotify()
646 mm_camera_super_buf_t *frame = in dataNotifyCB() local
648 if (frame == NULL) { in dataNotifyCB()
653 *frame = *recvd_frame; in dataNotifyCB()
654 stream->processDataNotify(frame); in dataNotifyCB()
711 mm_camera_super_buf_t *frame = in dataProcRoutine() local
713 if (NULL != frame) { in dataProcRoutine()
[all …]
DQCamera3PostProc.h124 int32_t processData(qcamera_fwk_input_pp_data_t *frame);
129 int32_t processPPData(mm_camera_super_buf_t *frame);
146 qcamera_fwk_input_pp_data_t *frame,
165 bool needsReprocess(qcamera_fwk_input_pp_data_t *frame);
/hardware/interfaces/automotive/sv/1.0/
DISurroundView2dSession.hal31 * Mapping information maps the output frame of 2d surround view to actual dimensions
34 * onto the surround view 2d output frame.
69 * output frame.
72 * and (width - 1, height -1) of camera frame. If point is outside camera
73 frame INVALID_ARG error is returned.
77 * frame in the same order as cameraPoints. Point projected maybe outside
78 * surround view frame i.e. outside (0, 0) and
/hardware/interfaces/automotive/evs/1.1/
DIEvsCameraStream.hal33 * some time as the pipeline drains. Each frame must still be returned.
34 * When the last frame in the stream has been delivered, STREAM_STOPPED
35 * event must be delivered. No further frame deliveries may happen
40 * sends always a single frame and a logical camera device sends multiple
/hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/2/android/hardware/biometrics/face/
DISessionCallback.aidl39 void onAuthenticationFrame(in android.hardware.biometrics.face.AuthenticationFrame frame); in onAuthenticationFrame() argument
40 void onEnrollmentFrame(in android.hardware.biometrics.face.EnrollmentFrame frame); in onEnrollmentFrame() argument
/hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/
DISessionCallback.aidl39 void onAuthenticationFrame(in android.hardware.biometrics.face.AuthenticationFrame frame); in onAuthenticationFrame() argument
40 void onEnrollmentFrame(in android.hardware.biometrics.face.EnrollmentFrame frame); in onEnrollmentFrame() argument
/hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/1/android/hardware/biometrics/face/
DISessionCallback.aidl39 void onAuthenticationFrame(in android.hardware.biometrics.face.AuthenticationFrame frame); in onAuthenticationFrame() argument
40 void onEnrollmentFrame(in android.hardware.biometrics.face.EnrollmentFrame frame); in onEnrollmentFrame() argument

12345678