Lines Matching refs:cinfo

75 static void libjpeg_init_source(j_decompress_ptr cinfo) {  in libjpeg_init_source()  argument
76 libjpeg_source_mgr* src = (libjpeg_source_mgr*)cinfo->src; in libjpeg_init_source()
82 static boolean libjpeg_seek_input_data(j_decompress_ptr cinfo, long byte_offset) { in libjpeg_seek_input_data() argument
83 libjpeg_source_mgr* src = (libjpeg_source_mgr*)cinfo->src; in libjpeg_seek_input_data()
90 static boolean libjpeg_fill_input_buffer(j_decompress_ptr cinfo) { in libjpeg_fill_input_buffer() argument
91 libjpeg_source_mgr* src = (libjpeg_source_mgr*)cinfo->src; in libjpeg_fill_input_buffer()
98 static void libjpeg_skip_input_data(j_decompress_ptr cinfo, long num_bytes) { in libjpeg_skip_input_data() argument
99 libjpeg_source_mgr* src = (libjpeg_source_mgr*)cinfo->src; in libjpeg_skip_input_data()
109 static boolean libjpeg_resync_to_restart(j_decompress_ptr cinfo, int desired) { in libjpeg_resync_to_restart() argument
110 libjpeg_source_mgr* src = (libjpeg_source_mgr*)cinfo->src; in libjpeg_resync_to_restart()
187 struct jpeg_decompress_struct cinfo; in decode() local
194 cinfo.err = jpeg_std_error(&jerr); in decode()
195 jpeg_create_decompress(&cinfo); in decode()
197 cinfo.src = &s_mgr; in decode()
198 int status = jpeg_read_header(&cinfo, true); in decode()
204 cinfo.out_color_space = JCS_YCbCr; in decode()
205 cinfo.raw_data_out = true; in decode()
206 status = jpeg_start_decompress(&cinfo); in decode()
213 mWidth = cinfo.output_width; in decode()
214 mHeight = cinfo.output_height; in decode()
215 CAMHAL_LOGEA("w x h = %d x %d. stride=%d", cinfo.output_width, cinfo.output_height, stride); in decode()
217 else if ((cinfo.output_width > mWidth) || (cinfo.output_height > mHeight)) { in decode()
219 mWidth, mHeight, cinfo.output_width, cinfo.output_height); in decode()
223 unsigned int decoded_uv_buffer_size = cinfo.output_width * cinfo.output_height / 2; in decode()
224 …if (Y_Plane == NULL)Y_Plane = (unsigned char **)malloc(cinfo.output_height * sizeof(unsigned char … in decode()
225 …if (U_Plane == NULL)U_Plane = (unsigned char **)malloc(cinfo.output_height * sizeof(unsigned char … in decode()
226 …if (V_Plane == NULL)V_Plane = (unsigned char **)malloc(cinfo.output_height * sizeof(unsigned char … in decode()
237 for (unsigned int j = 0; j < cinfo.output_height; j++, row += stride) in decode()
243 for (unsigned int j = 0; j < cinfo.output_height; j+=2, row += cinfo.output_width / 2){ in decode()
249 for (unsigned int j = 0; j < cinfo.output_height; j+=2, row += cinfo.output_width / 2){ in decode()
255 for (unsigned int i = 0; i < cinfo.output_height; i += 8) { in decode()
256 jpeg_read_raw_data(&cinfo, YUV_Planes, 8); in decode()
262 unsigned char *uv_ptr = nv12_buffer + (stride * cinfo.output_height); in decode()
265 for(unsigned int i = 0; i < cinfo.output_height / 2; i++){ in decode()
266 for(unsigned int j = 0; j < cinfo.output_width; j+=2){ in decode()
273 jpeg_finish_decompress(&cinfo); in decode()
274 jpeg_destroy_decompress(&cinfo); in decode()