Flutter Engine
The Flutter Engine
third_party
skia
src
encode
SkJPEGWriteUtility.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010 The Android Open Source Project
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
9
#ifndef SkJpegUtility_DEFINED
10
#define SkJpegUtility_DEFINED
11
12
#include "
include/core/SkTypes.h
"
13
14
#include <cstdint>
15
16
extern
"C"
{
17
// We need to include stdio.h before jpeg because jpeg does not include it, but uses FILE
18
// See https://github.com/libjpeg-turbo/libjpeg-turbo/issues/17
19
#include <
stdio.h
>
// IWYU pragma: keep
20
#include "jpeglib.h"
// NO_G3_REWRITE
21
}
22
23
class
SkWStream
;
24
25
void
skjpeg_error_exit
(j_common_ptr cinfo);
26
27
/////////////////////////////////////////////////////////////////////////////
28
/* Our destination struct for directing decompressed pixels to our stream
29
* object.
30
*/
31
struct
SK_SPI
skjpeg_destination_mgr
: jpeg_destination_mgr {
32
skjpeg_destination_mgr
(
SkWStream
*
stream
);
33
34
SkWStream
*
const
fStream
;
35
36
enum
{
37
kBufferSize
= 1024
38
};
39
uint8_t fBuffer[
kBufferSize
];
40
};
41
42
#endif
SK_SPI
#define SK_SPI
Definition:
SkAPI.h:41
skjpeg_error_exit
void skjpeg_error_exit(j_common_ptr cinfo)
Definition:
SkJPEGWriteUtility.cpp:66
kBufferSize
static const size_t kBufferSize
Definition:
SkString.cpp:27
SkTypes.h
SkWStream
Definition:
SkStream.h:218
dart_profiler_symbols.stream
stream
Definition:
dart_profiler_symbols.py:81
stdio.h
skjpeg_destination_mgr
Definition:
SkJPEGWriteUtility.h:31
skjpeg_destination_mgr::fStream
SkWStream *const fStream
Definition:
SkJPEGWriteUtility.h:34
Generated on Sun Jun 23 2024 21:56:16 for Flutter Engine by
1.9.4