Flutter Engine
The Flutter Engine
Classes | Functions
SkJPEGWriteUtility.h File Reference
#include "include/core/SkTypes.h"
#include <cstdint>
#include <stdio.h>
#include "jpeglib.h"

Go to the source code of this file.

Classes

struct  skjpeg_destination_mgr
 

Functions

void skjpeg_error_exit (j_common_ptr cinfo)
 

Function Documentation

◆ skjpeg_error_exit()

void skjpeg_error_exit ( j_common_ptr  cinfo)

Definition at line 66 of file SkJPEGWriteUtility.cpp.

66 {
67 skjpeg_error_mgr* error = static_cast<skjpeg_error_mgr*>(cinfo->err);
68
69 (*error->output_message)(cinfo);
70
71 /* Let the memory manager delete any temp files before we die */
72 jpeg_destroy(cinfo);
73
74 if (error->fStack[0] == nullptr) {
75 SK_ABORT("JPEG error with no jmp_buf set.");
76 }
77 longjmp(*error->fStack[0], -1);
78}
#define SK_ABORT(message,...)
Definition: SkAssert.h:70
const uint8_t uint32_t uint32_t GError ** error