Home
last modified time | relevance | path

Searched refs:jpeg_obj (Results 1 – 7 of 7) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c478 mm_jpeg_intf_test_t *jpeg_obj = (mm_jpeg_intf_test_t *)data; in encode_test() local
482 jpeg_obj->handle = jpeg_open(&jpeg_obj->ops, NULL, jpeg_obj->pic_size, NULL); in encode_test()
483 if (jpeg_obj->handle == 0) { in encode_test()
485 jpeg_obj->ret = -1; in encode_test()
489 rc = jpeg_obj->ops.create_session(jpeg_obj->handle, &jpeg_obj->params, in encode_test()
490 &jpeg_obj->job.encode_job.session_id); in encode_test()
491 if (jpeg_obj->job.encode_job.session_id == 0) { in encode_test()
493 jpeg_obj->ret = -1; in encode_test()
497 for (i = 0; i < jpeg_obj->num_bufs; i++) { in encode_test()
498 jpeg_obj->job.job_type = JPEG_JOB_TYPE_ENCODE; in encode_test()
[all …]
Dmm_jpegdec_test.c389 mm_jpegdec_intf_test_t jpeg_obj; in decode_test() local
392 memset(&jpeg_obj, 0x0, sizeof(jpeg_obj)); in decode_test()
393 rc = decode_init(p_input, &jpeg_obj); in decode_test()
399 jpeg_obj.handle = jpegdec_open(&jpeg_obj.ops); in decode_test()
400 if (jpeg_obj.handle == 0) { in decode_test()
405 rc = jpeg_obj.ops.create_session(jpeg_obj.handle, &jpeg_obj.params, in decode_test()
406 &jpeg_obj.job.decode_job.session_id); in decode_test()
407 if (jpeg_obj.job.decode_job.session_id == 0) { in decode_test()
413 jpeg_obj.job.job_type = JPEG_JOB_TYPE_DECODE; in decode_test()
421 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in decode_test()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_interface.c331 mm_jpeg_obj* jpeg_obj = NULL; in jpeg_open() local
340 jpeg_obj = (mm_jpeg_obj *)malloc(sizeof(mm_jpeg_obj)); in jpeg_open()
341 if(NULL == jpeg_obj) { in jpeg_open()
348 memset(jpeg_obj, 0, sizeof(mm_jpeg_obj)); in jpeg_open()
352 jpeg_obj->reuse_reproc_buffer = 1; in jpeg_open()
354 jpeg_obj->reuse_reproc_buffer = 0; in jpeg_open()
357 jpeg_obj->reuse_reproc_buffer); in jpeg_open()
360 jpeg_obj->max_pic_w = picture_size.w; in jpeg_open()
361 jpeg_obj->max_pic_h = picture_size.h; in jpeg_open()
365 jpeg_obj->jpeg_metadata = jpeg_metadata; in jpeg_open()
[all …]
Dmm_jpegdec_interface.c246 mm_jpeg_obj* jpeg_obj = NULL; in jpegdec_open() local
251 jpeg_obj = (mm_jpeg_obj *)malloc(sizeof(mm_jpeg_obj)); in jpegdec_open()
252 if(NULL == jpeg_obj) { in jpegdec_open()
259 memset(jpeg_obj, 0, sizeof(mm_jpeg_obj)); in jpegdec_open()
260 rc = mm_jpegdec_init(jpeg_obj); in jpegdec_open()
263 free(jpeg_obj); in jpegdec_open()
269 g_jpegdec_obj = jpeg_obj; in jpegdec_open()
Dmm_jpegdec.c86 mm_jpeg_obj *my_obj = (mm_jpeg_obj *)p_session->jpeg_obj; in mm_jpegdec_job_done()
854 p_session->jpeg_obj = (void*)my_obj; /* save a ptr to jpeg_obj */ in mm_jpegdec_create_session()
Dmm_jpeg.c368 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_create()
425 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_destroy()
810 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_metadata()
1875 mm_jpeg_obj *my_obj = (mm_jpeg_obj *) p_session->jpeg_obj; in mm_jpeg_session_encode()
3081 p_session->jpeg_obj = (void*)my_obj; /* save a ptr to jpeg_obj */ in mm_jpeg_create_session()
3270 mm_jpeg_obj *my_obj = (mm_jpeg_obj *)p_session->jpeg_obj; in mm_jpegenc_job_done()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h284 void *jpeg_obj; /* ptr to mm_jpeg_obj */ member