Lines Matching refs:pme
42 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
54 if (pme->channels[i].ch_id == bufs->ch_id) {
55 channel = &pme->channels[i];
78 if (pme->metadata == NULL) {
80 pme->metadata = malloc(sizeof(metadata_buffer_t));
81 if (NULL == pme->metadata) {
86 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t));
102 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
118 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
130 if (pme->channels[i].ch_id == bufs->ch_id) {
131 channel = &pme->channels[i];
155 if ( 0 < pme->fb_fd ) {
156 mm_app_overlay_display(pme, frame->fd);
161 snprintf(file_name, sizeof(file_name), "P_C%d", pme->cam->camera_handle);
165 if (pme->user_preview_cb) {
167 pme->user_preview_cb(frame);
169 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
185 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data;
203 if (pme->channels[i].ch_id == bufs->ch_id) {
204 channel = &pme->channels[i];
264 if (!pme->metadata) {
266 pme->metadata = malloc(sizeof(metadata_buffer_t));
268 memcpy(pme->metadata , md_frame->buffer, sizeof(metadata_buffer_t));
285 pme->fb_fd,
289 if ( 0 < pme->fb_fd ) {
290 mm_app_overlay_display(pme, p_frame->fd);
296 if ( pme->enable_reproc && ( NULL != pme->reproc_stream ) ) {
297 rc = mm_app_do_reprocess(pme,
309 if ( pme->encodeJpeg ) {
310 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len);
311 if ( NULL == pme->jpeg_buf.buf.buffer ) {
316 pme->jpeg_buf.buf.frame_len = m_frame->frame_len;
318 rc = createEncodingSession(pme, m_stream, m_frame);
321 free(pme->jpeg_buf.buf.buffer);
326 rc = encodeData(pme, bufs, m_stream);
327 pme->encodeJpeg = 0;
329 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
340 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,
349 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle,