Lines Matching refs:splash
129 SplashDecodeJpeg(Splash * splash, struct jpeg_decompress_struct *cinfo)
142 SplashCleanup(splash);
144 splash->width = cinfo->output_width;
145 splash->height = cinfo->output_height;
147 if (!SAFE_TO_ALLOC(splash->imageFormat.depthBytes, splash->width)) {
150 stride = splash->width * splash->imageFormat.depthBytes;
152 if (!SAFE_TO_ALLOC(stride, splash->height)) {
159 splash->frameCount = 1;
160 splash->frames = (SplashImage *) malloc(sizeof(SplashImage) *
161 splash->frameCount);
162 if (splash->frames == NULL) {
165 memset(splash->frames, 0, sizeof(SplashImage) *
166 splash->frameCount);
168 splash->loopCount = 1;
169 splash->frames[0].delay = 0;
170 splash->frames[0].bitmapBits = malloc(stride * splash->height);
171 if (splash->frames[0].bitmapBits == NULL) {
172 free(splash->frames);
181 free(splash->frames[0].bitmapBits);
182 free(splash->frames);
191 splash->maskRequired = 0; // reset maskRequired as JPEG can't be transparent
195 (rgbquad_t *) ((byte_t *) splash->frames[0].bitmapBits +
200 splash->imageFormat.depthBytes, cinfo->output_width, &srcFormat,
201 &splash->imageFormat, CVT_COPY, NULL, 0, NULL,
232 SplashDecodeJpegStream(Splash * splash, SplashStream * stream)
246 success = SplashDecodeJpeg(splash, &cinfo);