Lines Matching refs:frame

505 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()
1250 mm_camera_buf_def_t *frame) in registerBufferAndGetBufDef() argument
1252 if (buffer == nullptr || frame == nullptr) { in registerBufferAndGetBufDef()
1280 rc = mMemory.getBufDef(offset, *frame, index, mMapStreamBuffers); in registerBufferAndGetBufDef()
1287 frame->stream_id = mStreams[0]->getMyHandle(); in registerBufferAndGetBufDef()
1291 void QCamera3ProcessingChannel::unregisterBuffer(mm_camera_buf_def_t *frame) in unregisterBuffer() argument
1293 if (frame == nullptr) { in unregisterBuffer()
1298 mMemory.unregisterBuffer(frame->buf_idx); in unregisterBuffer()
2404 void QCamera3RawChannel::dumpRawSnapshot(mm_camera_buf_def_t *frame) in dumpRawSnapshot() argument
2418 frame->frame_idx, offset.mp[0].stride, offset.mp[0].scanline); in dumpRawSnapshot()
2422 ssize_t written_len = write(file_fd, frame->buffer, frame->frame_len); in dumpRawSnapshot()
2424 frame->cache_flags |= CPU_HAS_READ; in dumpRawSnapshot()
2435 void QCamera3RawChannel::convertLegacyToRaw16(mm_camera_buf_def_t *frame) in convertLegacyToRaw16() argument
2454 uint16_t* raw16_buffer = (uint16_t *)frame->buffer; in convertLegacyToRaw16()
2465 uint64_t* row_start = (uint64_t *)frame->buffer + in convertLegacyToRaw16()
2479 void QCamera3RawChannel::convertMipiToRaw16(mm_camera_buf_def_t *frame) in convertMipiToRaw16() argument
2497 uint16_t* raw16_buffer = (uint16_t *)frame->buffer; in convertMipiToRaw16()
2510 uint8_t* row_start = (uint8_t *)frame->buffer + in convertMipiToRaw16()
2611 void QCamera3RawDumpChannel::dumpRawSnapshot(mm_camera_buf_def_t *frame) in dumpRawSnapshot() argument
2639 frame->frame_idx, dim.width, dim.height); in dumpRawSnapshot()
2644 write(file_fd, frame->buffer, offset.frame_len); in dumpRawSnapshot()
2646 frame->cache_flags |= CPU_HAS_READ; in dumpRawSnapshot()
2826 void QCamera3HdrPlusRawSrcChannel::sendRawToHdrPlusService(mm_camera_buf_def_t *frame) in sendRawToHdrPlusService() argument
2839 buffer.data = frame->buffer; in sendRawToHdrPlusService()
2843 int64_t mockEaselTimestampNs = (int64_t)frame->ts.tv_sec * 1000000000 + frame->ts.tv_nsec; in sendRawToHdrPlusService()
3191 mm_camera_super_buf_t *frame = in streamCbRoutine() local
3194 if (frame == NULL) { in streamCbRoutine()
3202 *frame = *super_frame; in streamCbRoutine()
3203 m_postprocessor.processData(frame, ppInfo->output, in streamCbRoutine()
4023 mm_camera_super_buf_t* frame = NULL; in streamCbRoutine() local
4055 frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in streamCbRoutine()
4056 if (frame == NULL) { in streamCbRoutine()
4065 *frame = *super_frame; in streamCbRoutine()
4068 dumpYUV(frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_INPUT_REPROCESS); in streamCbRoutine()
4075 m_postprocessor.processData(frame); in streamCbRoutine()
4249 int32_t QCamera3PicChannel::getYuvBufferForRequest(mm_camera_buf_def_t *frame, in getYuvBufferForRequest() argument
4279 rc = mYuvMemory->getBufDef(offset, *frame, bufIdx, mMapStreamBuffers); in getYuvBufferForRequest()
4286 frame->stream_id = mStreams[0]->getMyHandle(); in getYuvBufferForRequest()
4290 int32_t QCamera3PicChannel::returnYuvBuffer(mm_camera_buf_def_t *frame) in returnYuvBuffer() argument
4293 mFreeBufferList.push_back(frame->buf_idx); in returnYuvBuffer()
4297 int32_t QCamera3PicChannel::returnYuvBufferAndEncode(mm_camera_buf_def_t *frame, in returnYuvBufferAndEncode() argument
4364 src_frame->bufs[0] = frame; in returnYuvBufferAndEncode()
4553 mm_camera_super_buf_t* frame = NULL; in streamCbRoutine() local
4578 frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in streamCbRoutine()
4579 if (frame == NULL) { in streamCbRoutine()
4588 *frame = *super_frame; in streamCbRoutine()
4592 dumpYUV(frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_INPUT_JPEG); in streamCbRoutine()
4602 obj->m_postprocessor.processPPData(frame); in streamCbRoutine()
4966 mm_camera_super_buf_t *frame = pp_buffer->input; in overrideMetadata() local
4971 for (uint32_t i = 0; i < frame->num_bufs; i++) { in overrideMetadata()
4972 QCamera3Stream *pStream = getStreamBySrcHandle(frame->bufs[i]->stream_id); in overrideMetadata()
4973 QCamera3Stream *pSrcStream = getSrcStreamBySrcHandle(frame->bufs[i]->stream_id); in overrideMetadata()
5054 fwk_frame.input_buffer = *frame->bufs[i]; in overrideMetadata()
5080 qcamera_fwk_input_pp_data_t *frame) in overrideFwkMetadata() argument
5082 if (NULL == frame) { in overrideFwkMetadata()
5087 if (NULL == frame->metadata_buffer.buffer) { in overrideFwkMetadata()
5091 metadata_buffer_t *meta = (metadata_buffer_t *) frame->metadata_buffer.buffer; in overrideFwkMetadata()
5166 qcamera_fwk_input_pp_data_t *frame, bool isPriorityFrame) in doReprocessOffline() argument
5178 if (NULL == frame) { in doReprocessOffline()
5183 if (NULL == frame->metadata_buffer.buffer) { in doReprocessOffline()
5188 if (0 > frame->input_buffer.fd) { in doReprocessOffline()
5201 if (mReprocessType != REPROCESS_TYPE_JPEG && frame->output_buffer != NULL) { in doReprocessOffline()
5202 index = mGrallocMemory.getMatchBufIndex((void*)frame->output_buffer); in doReprocessOffline()
5204 rc = registerBuffer(frame->output_buffer, mIsType); in doReprocessOffline()
5211 index = mGrallocMemory.getMatchBufIndex((void*)frame->output_buffer); in doReprocessOffline()
5217 rc = mGrallocMemory.markFrameNumber(index, frame->frameNumber); in doReprocessOffline()
5219 LOGE("Failed to mark frame#:%d, index:%d",frame->frameNumber,index); in doReprocessOffline()
5252 mMemory->markFrameNumber(bufIdx, frame->frameNumber); in doReprocessOffline()
5275 frame->input_buffer.fd, frame->input_buffer.buffer, in doReprocessOffline()
5276 frame->input_buffer.frame_len); in doReprocessOffline()
5296 frame->metadata_buffer.fd, frame->metadata_buffer.buffer, in doReprocessOffline()
5297 frame->metadata_buffer.frame_len); in doReprocessOffline()
5317 mPriorityFrames.push(frame->frameNumber); in doReprocessOffline()
5339 param.reprocess.frame_idx = frame->input_buffer.frame_idx; in doReprocessOffline()
5349 resetToCamPerfNormal(frame->frameNumber); in doReprocessOffline()