Lines Matching full:jpeg
102 * @jpeg_cb : callback to handle jpeg event from mm-camera-interface
103 * @user_data : user data ptr for jpeg callback
142 ALOGE("%s: Jpeg closed, rc = %d, mJpegClientHandle = %x",
213 // dataProc Thread need to process "stop" as sync call because abort jpeg job should be a sync call
257 // get jpeg quality
325 // allocate output buf for jpeg encoding
347 ALOGE("%s : initHeapMem for jpeg, ret = NO_MEMORY", __func__);
444 ALOGE("%s: Error enqueuing jpeg data into notify queue", __func__);
465 * be sent to either input queue of postprocess or jpeg encoding
476 ALOGD("%s: no need offline reprocess, sending to jpeg encoding", __func__);
480 ALOGE("%s: No memory for jpeg job", __func__);
487 // enqueu to jpeg input queue
518 * DESCRIPTION: process jpeg event from mm-jpeg-interface.
521 * @evt : payload of jpeg event, including information about jpeg encoding
522 * status, jpeg size and so on.
529 * processing (i.e., send a new jpeg encoding job to mm-jpeg-interface
530 * if there is any pending job in jpeg input queue)
541 ALOGE("%s: Cannot find jpeg job by jobId(%d)", __func__, evt->jobId);
546 ALOGD("[KPI Perf] %s : jpeg job %d", __func__, evt->jobId);
557 ALOGE("%s: Error event handled from jpeg, status = %d",
569 // alloc jpeg memory to pass to upper layer
573 ALOGE("%s : getMemory for jpeg, ret = NO_MEMORY", __func__);
578 ALOGE("%s : Calling upperlayer callback to store JPEG image", __func__);
601 // release internal data for jpeg job
608 // if previous request is blocked due to ongoing jpeg job
626 * NOTE : The frame after reprocess need to send to jpeg encoding.
647 ALOGE("%s: No memory for jpeg job", __func__);
658 // enqueu reprocessed frame to jpeg input queue
670 * DESCRIPTION: find a jpeg job from ongoing Jpeg queue by its job ID
675 * RETURN : ptr to a jpeg job struct. NULL if not found.
677 * NOTE : Currently only one job is sending to mm-jpeg-interface for jpeg
678 * encoding. Therefore simply dequeue from the ongoing Jpeg Queue
679 * will serve the purpose to find the jpeg job.
685 ALOGE("%s: not a valid jpeg jobId", __func__);
689 // currely only one jpeg job ongoing, so simply dequeue the head
716 * DESCRIPTION: callback function to release jpeg job node
719 * @data : ptr to ongoing jpeg job data
767 * NOTE : deallocate jpeg heap memory if it's not NULL
824 * DESCRIPTION: function to release internal resources in jpeg job struct
827 * @job : ptr to jpeg job struct
832 * future use. Output buf of jpeg job need to be released since
857 * DESCRIPTION: function to return jpeg color format based on its image format
862 * RETURN : jpeg color format that can be understandable by omx lib
887 * DESCRIPTION: function to return jpeg encode image type based on its image format
892 * RETURN : return jpeg source image format (YUV or Bitstream)
913 * mm-jpeg-interface to do the encoding job
917 * @needNewSess : flag to indicate if a new jpeg encoding session need
1023 // create jpeg encoding session
1027 ALOGD("[KPI Perf] %s : call jpeg create_session", __func__);
1030 ALOGE("%s: error creating a new jpeg encoding session", __func__);
1059 // need jpeg thumbnail, but no postview/preview stream exists
1086 ALOGV("%s: jpeg rotation is set to %d", __func__, jpg_job.encode_job.rotation);
1111 ALOGD("[KPI Perf] %s : call jpeg start_job", __func__);
1208 * Jpeg Queue to do jpeg encoding, or from input PP Queue to do
1249 // cancel all ongoing jpeg jobs
1261 // destroy jpeg encoding session
1267 // free jpeg out buf and exif obj
1289 // flush input jpeg Queue
1306 // check if there is any ongoing jpeg jobs
1308 // no ongoing jpeg job, we are fine to send jpeg encoding job
1316 // add into ongoing jpeg job Q
1423 * @padding_info : jpeg specific padding requirement
1431 // TODO: hardcode for now, needs to query from mm-jpeg-interface