Flutter Engine
The Flutter Engine
Functions
SkJpegDecoderMgr.cpp File Reference
#include "src/codec/SkJpegDecoderMgr.h"
#include "include/core/SkTypes.h"
#include "src/codec/SkCodecPriv.h"
#include "src/codec/SkJpegSourceMgr.h"
#include "src/codec/SkJpegUtility.h"
#include <cstddef>
#include <utility>

Go to the source code of this file.

Functions

static void print_message (const j_common_ptr info, const char caller[])
 
static void output_message (j_common_ptr info)
 
static void progress_monitor (j_common_ptr info)
 

Function Documentation

◆ output_message()

static void output_message ( j_common_ptr  info)
static

Definition at line 35 of file SkJpegDecoderMgr.cpp.

35 {
36 print_message(info, "output_message");
37}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
static void print_message(const j_common_ptr info, const char caller[])

◆ print_message()

static void print_message ( const j_common_ptr  info,
const char  caller[] 
)
static

Definition at line 26 of file SkJpegDecoderMgr.cpp.

26 {
27 char buffer[JMSG_LENGTH_MAX];
28 info->err->format_message(info, buffer);
29 SkCodecPrintf("libjpeg error %d <%s> from %s\n", info->err->msg_code, buffer, caller);
30}
#define SkCodecPrintf(...)
Definition: SkCodecPriv.h:23
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ progress_monitor()

static void progress_monitor ( j_common_ptr  info)
static

Definition at line 39 of file SkJpegDecoderMgr.cpp.

39 {
40 int scan = ((j_decompress_ptr)info)->input_scan_number;
41 // Progressive images with a very large number of scans can cause the
42 // decoder to hang. Here we use the progress monitor to abort on
43 // a very large number of scans. 100 is arbitrary, but much larger
44 // than the number of scans we might expect in a normal image.
45 if (scan >= 100) {
47 }
48}
void skjpeg_err_exit(j_common_ptr dinfo)