Searched refs:jdec (Results 1 – 1 of 1) sorted by relevance
199 struct jdec_private *jdec = NULL; in read_jpeg_file() local211 jdec = tinyjpeg_init(); in read_jpeg_file()212 if (!jdec) in read_jpeg_file()215 if (tinyjpeg_parse_header(jdec, jpeg_file, length_of_file) < 0) in read_jpeg_file()218 tinyjpeg_get_size(jdec, &width, &height); in read_jpeg_file()223 tinyjpeg_set_components(jdec, components, 1); in read_jpeg_file()225 tinyjpeg_set_bytes_per_row(jdec, bytes_per_row, 1); in read_jpeg_file()227 tinyjpeg_decode(jdec, TINYJPEG_FMT_BGRA32); in read_jpeg_file()235 if (jdec) in read_jpeg_file()236 free(jdec); in read_jpeg_file()