Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
SkJpegUtility.h File Reference
#include <cstdint>
#include <stdio.h>
#include "jpeglib.h"

Go to the source code of this file.

Classes

struct  skjpeg_source_mgr
 

Functions

void skjpeg_err_exit (j_common_ptr cinfo)
 

Function Documentation

◆ skjpeg_err_exit()

void skjpeg_err_exit ( j_common_ptr  cinfo)

Definition at line 25 of file SkJpegUtility.cpp.

25 {
26 // Simply return to Skia client code
27 // JpegDecoderMgr will take care of freeing memory
29 (*error->output_message) (dinfo);
30 if (error->fStack[0] == nullptr) {
31 SK_ABORT("JPEG error with no jmp_buf set.");
32 }
33 longjmp(*error->fStack[0], 1);
34}
#define SK_ABORT(message,...)
Definition SkAssert.h:70
const uint8_t uint32_t uint32_t GError ** error