Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 150865
Collapse All | Expand All

(-)src/ref_gl/gl_image.c-orig (-2 / +2 lines)
Lines 912-918 Link Here
912
}
912
}
913
913
914
void
914
void
915
jpeg_mem_src(j_decompress_ptr cinfo, byte * mem, int len)
915
qudos_jpeg_mem_src(j_decompress_ptr cinfo, byte * mem, int len)
916
{
916
{
917
	cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
917
	cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
918
	cinfo->src->init_source = jpg_null;
918
	cinfo->src->init_source = jpg_null;
Lines 956-962 Link Here
956
	jpeg_create_decompress(&cinfo);
956
	jpeg_create_decompress(&cinfo);
957
957
958
	/* Feed JPEG memory into the libJpeg Object */
958
	/* Feed JPEG memory into the libJpeg Object */
959
	jpeg_mem_src(&cinfo, rawdata, rawsize);
959
	qudos_jpeg_mem_src(&cinfo, rawdata, rawsize);
960
960
961
	/* Process JPEG header */
961
	/* Process JPEG header */
962
	jpeg_read_header(&cinfo, true);
962
	jpeg_read_header(&cinfo, true);

Return to bug 150865