Lines Matching defs:jpeg_obj
399 mm_jpeg_intf_test_t jpeg_obj;
402 memset(&jpeg_obj, 0x0, sizeof(jpeg_obj));
403 rc = encode_init(p_input, &jpeg_obj);
414 jpeg_obj.handle = jpeg_open(&jpeg_obj.ops, pic_size);
415 if (jpeg_obj.handle == 0) {
420 rc = jpeg_obj.ops.create_session(jpeg_obj.handle, &jpeg_obj.params,
421 &jpeg_obj.job.encode_job.session_id);
422 if (jpeg_obj.job.encode_job.session_id == 0) {
427 for (i = 0; i < jpeg_obj.num_bufs; i++) {
428 jpeg_obj.job.job_type = JPEG_JOB_TYPE_ENCODE;
429 jpeg_obj.job.encode_job.src_index = i;
430 jpeg_obj.job.encode_job.dst_index = i;
431 jpeg_obj.job.encode_job.thumb_index = i;
433 if (jpeg_obj.params.burst_mode && jpeg_obj.min_out_bufs) {
434 jpeg_obj.job.encode_job.dst_index = -1;
437 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]);
444 jpeg_obj.job_id[i] = 0;
448 jpeg_obj.ops.abort_job(jpeg_obj.job_id[0]);
450 pthread_mutex_lock(&jpeg_obj.lock);
451 pthread_cond_wait(&jpeg_obj.cond, &jpeg_obj.lock);
452 pthread_mutex_unlock(&jpeg_obj.lock);
455 jpeg_obj.ops.destroy_session(jpeg_obj.job.encode_job.session_id);
456 jpeg_obj.ops.close(jpeg_obj.handle);
459 for (i = 0; i < jpeg_obj.num_bufs; i++) {
460 if (!jpeg_obj.min_out_bufs) {
463 __func__, __LINE__,jpeg_obj.out_filename[i],
464 jpeg_obj.output[i].addr, jpeg_obj.buf_filled_len[i]);
466 DUMP_TO_FILE(jpeg_obj.out_filename[i], jpeg_obj.output[i].addr,
467 jpeg_obj.buf_filled_len[i]);
469 mm_jpeg_test_free(&jpeg_obj.input[i]);
470 mm_jpeg_test_free(&jpeg_obj.output[i]);