Lines Matching refs:pme
41 mm_camera_test_obj_t *pme = NULL;
44 pme = (mm_camera_test_obj_t *)userData;
45 if (pme->jpeg_hdl != client_hdl ||
46 jobId != pme->current_job_id ||
47 !pme->current_job_frames) {
49 __func__, jobId, pme->current_job_id);
60 pme->current_job_id = 0;
61 for (i = 0; i < pme->current_job_frames->num_bufs; i++) {
62 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->current_job_frames->camera_handle,
63 pme->current_job_frames->ch_id,
64 pme->current_job_frames->bufs[i])) {
67 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info,
71 free(pme->jpeg_buf.buf.buffer);
72 free(pme->current_job_frames);
73 pme->current_job_frames = NULL;
186 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
198 if (pme->channels[i].ch_id == bufs->ch_id) {
199 channel = &pme->channels[i];
222 if (!pme->metadata) {
224 pme->metadata = malloc(sizeof(metadata_buffer_t));
226 memcpy(pme->metadata , frame->buffer, sizeof(metadata_buffer_t));
242 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
257 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
266 if (pme->channels[i].ch_id == bufs->ch_id) {
267 channel = &pme->channels[i];
307 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
325 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
336 if (pme->channels[i].ch_id == bufs->ch_id) {
337 channel = &pme->channels[i];
398 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len);
399 if ( NULL == pme->jpeg_buf.buf.buffer ) {
404 pme->jpeg_buf.buf.frame_len = m_frame->frame_len;
406 rc = createEncodingSession(pme, m_stream, m_frame);
409 free(pme->jpeg_buf.buf.buffer);
414 rc = encodeData(pme, bufs, m_stream);
417 free(pme->jpeg_buf.buf.buffer);
425 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,