Lines Matching refs:frame

937 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()
1109 if ((NULL != frame) && in processData()
1110 (0 < frame->num_bufs) in processData()
1114 uint32_t num_bufs = frame->num_bufs; in processData()
1122 bufs[i] = *frame->bufs[i]; in processData()
1123 frame->bufs[i] = &bufs[i]; in processData()
1134 getOfflinePPInputBuffer(frame); in processData()
1142 releaseSuperBuf(frame); in processData()
1143 free(frame); in processData()
1145 frame = NULL; in processData()
1157 setYUVFrameInfo(frame); in processData()
1159 processRawData(frame); in processData()
1175 jpeg_job->src_frame = frame; in processData()
1208 int32_t QCameraPostProcessor::processRawData(mm_camera_super_buf_t *frame) in processRawData() argument
1216 if (m_inputRawQ.enqueue((void *)frame)) { in processRawData()
1220 releaseSuperBuf(frame); in processRawData()
1221 free(frame); in processRawData()
1222 frame = NULL; in processRawData()
1415 int32_t QCameraPostProcessor::processPPData(mm_camera_super_buf_t *frame) in processPPData() argument
1447 setYUVFrameInfo(frame); in processPPData()
1448 return processRawData(frame); in processPPData()
1455 QCameraChannel *pChannel = m_parent->getChannelByHandle(frame->ch_id); in processPPData()
1459 (validate_handle(mPPChannels[i]->getMyHandle(), frame->ch_id))) { in processPPData()
1467 frame->ch_id); in processPPData()
1471 for (uint32_t i = 0; i < frame->num_bufs; i++) { in processPPData()
1472 pSnapshotStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in processPPData()
1475 pReprocFrame = frame->bufs[i]; in processPPData()
1513 pp_request_job->src_frame = frame; in processPPData()
1537 hal_pp_job->frame = frame; in processPPData()
1554 jpeg_job->src_frame = frame; in processPPData()
1584 for (uint32_t i = 0; i < frame->num_bufs; i++) { in processPPData()
1585 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processPPData()
1586 meta_frame = frame->bufs[i]; in processPPData()
1601 QCameraChannel *pChannel = m_parent->getChannelByHandle(frame->ch_id); in processPPData()
1605 (mPPChannels[i]->getMyHandle() == frame->ch_id)) { in processPPData()
1613 frame->ch_id); in processPPData()
1617 for (uint32_t i = 0; i < frame->num_bufs; i++) { in processPPData()
1618 pOfflineMetadataStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in processPPData()
1621 pOfflineMetaFrame = frame->bufs[i]; in processPPData()
1827 if (app_cb && NULL != app_cb->release_data.frame) { in releaseNotifyData()
1828 postProc->releaseSuperBuf(app_cb->release_data.frame); in releaseNotifyData()
1829 free(app_cb->release_data.frame); in releaseNotifyData()
1830 app_cb->release_data.frame = NULL; in releaseNotifyData()
2144 mm_camera_super_buf_t *frame, in queryStreams() argument
2147 if (NULL == frame) { in queryStreams()
2151 QCameraChannel *pChannel = m_parent->getChannelByHandle(frame->ch_id); in queryStreams()
2156 validate_handle(mPPChannels[i]->getMyHandle(), frame->ch_id)) { in queryStreams()
2164 frame->ch_id); in queryStreams()
2178 for (uint32_t i = 0; i < frame->num_bufs; i++) { in queryStreams()
2180 pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in queryStreams()
2188 *main_image = frame->bufs[i]; in queryStreams()
2195 *thumb_image = frame->bufs[i]; in queryStreams()
2240 int32_t QCameraPostProcessor::syncStreamParams(mm_camera_super_buf_t *frame, in syncStreamParams() argument
2255 frame, in syncStreamParams()
2877 mm_camera_buf_def_t *frame = NULL; in processRawImageImpl() local
2904 frame = recvd_frame->bufs[i]; in processRawImageImpl()
2910 if ( NULL == frame ) { in processRawImageImpl()
2915 QCameraMemory *rawMemObj = (QCameraMemory *)frame->mem_info; in processRawImageImpl()
2922 raw_mem = rawMemObj->getMemory(frame->buf_idx, false); in processRawImageImpl()
2925 frame->frame_len, in processRawImageImpl()
2932 memcpy(raw_mem->data, frame->buffer, frame->frame_len); in processRawImageImpl()
2938 if (frame->stream_type == CAM_STREAM_TYPE_SNAPSHOT || in processRawImageImpl()
2941 m_parent->dumpFrameToFile(pStream, frame, QCAMERA_DUMP_FRM_INPUT_JPEG); in processRawImageImpl()
2944 m_parent->dumpFrameToFile(pStream, frame, QCAMERA_DUMP_FRM_RAW); in processRawImageImpl()
2967 frame->cache_flags |= CPU_HAS_READ; in processRawImageImpl()
2978 frame->cache_flags |= CPU_HAS_READ; in processRawImageImpl()
2987 release_data.frame = recvd_frame; in processRawImageImpl()
4053 mm_camera_super_buf_t *frame = pData->frame; in processHalPPData() local
4054 if (frame == NULL) { in processHalPPData()
4067 jpeg_job->src_frame = frame; in processHalPPData()
4098 for (uint32_t i = 0; i < frame->num_bufs; i++) { in processHalPPData()
4099 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processHalPPData()
4100 meta_frame = frame->bufs[i]; in processHalPPData()
4165 output_data->frame = output_frame; in getHalPPOutputBuffer()