Flutter Engine
The Flutter Engine
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
28 skjpeg_error_mgr* error = static_cast<skjpeg_error_mgr*>(dinfo->err);
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