Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
jpeg_progressive_decoder.h
Go to the documentation of this file.
1
// Copyright 2020 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
CORE_FXCODEC_JPEG_JPEG_PROGRESSIVE_DECODER_H_
8
#
define
CORE_FXCODEC_JPEG_JPEG_PROGRESSIVE_DECODER_H_
9
10
#
include
<
setjmp
.
h
>
11
12
#
include
<
memory
>
13
14
#
include
"core/fxcodec/progressive_decoder_iface.h"
15
16
namespace
fxcodec
{
17
18
class
CFX_DIBAttribute;
19
20
class
JpegProgressiveDecoder
final
:
public
ProgressiveDecoderIface
{
21
public
:
22
static
void
InitializeGlobals
();
23
static
void
DestroyGlobals
();
24
25
static
JpegProgressiveDecoder*
GetInstance
();
26
27
static
std
::
unique_ptr
<
Context
>
Start
();
28
29
static
jmp_buf&
GetJumpMark
(
Context
* pContext);
30
31
static
int
ReadHeader
(
Context
* pContext,
32
int
* width,
33
int
* height,
34
int
* nComps,
35
CFX_DIBAttribute* pAttribute);
36
37
static
bool
StartScanline
(
Context
* pContext);
38
static
bool
ReadScanline
(
Context
* pContext, uint8_t* dest_buf);
39
40
// ProgressiveDecoderIface:
41
FX_FILESIZE
GetAvailInput
(
Context
* pContext)
const
override
;
42
bool
Input
(
Context
* pContext,
43
RetainPtr
<CFX_CodecMemory> codec_memory)
override
;
44
45
private
:
46
JpegProgressiveDecoder();
47
~
JpegProgressiveDecoder
()
override
;
48
};
49
50
}
// namespace fxcodec
51
52
using
JpegProgressiveDecoder
=
fxcodec
::JpegProgressiveDecoder;
53
54
#
endif
// CORE_FXCODEC_JPEG_JPEG_PROGRESSIVE_DECODER_H_
DCHECK
#define DCHECK
Definition
check.h:33
CJpegContext::GetJumpMark
jmp_buf & GetJumpMark()
Definition
jpeg_progressive_decoder.cpp:27
CJpegContext::m_Common
JpegCommon m_Common
Definition
jpeg_progressive_decoder.cpp:29
CJpegContext::~CJpegContext
~CJpegContext() override
Definition
jpeg_progressive_decoder.cpp:79
CJpegContext::m_SkipSize
unsigned int m_SkipSize
Definition
jpeg_progressive_decoder.cpp:30
CJpegContext::CJpegContext
CJpegContext()
Definition
jpeg_progressive_decoder.cpp:62
fxcodec::JpegProgressiveDecoder::~JpegProgressiveDecoder
~JpegProgressiveDecoder() override
fxcodec::JpegProgressiveDecoder::InitializeGlobals
static void InitializeGlobals()
Definition
jpeg_progressive_decoder.cpp:92
fxcodec::JpegProgressiveDecoder::ReadScanline
static bool ReadScanline(Context *pContext, uint8_t *dest_buf)
Definition
jpeg_progressive_decoder.cpp:155
fxcodec::JpegProgressiveDecoder::GetJumpMark
static jmp_buf & GetJumpMark(Context *pContext)
Definition
jpeg_progressive_decoder.cpp:121
fxcodec::JpegProgressiveDecoder::ReadHeader
static int ReadHeader(Context *pContext, int *width, int *height, int *nComps, CFX_DIBAttribute *pAttribute)
Definition
jpeg_progressive_decoder.cpp:126
fxcodec::JpegProgressiveDecoder::GetInstance
static JpegProgressiveDecoder * GetInstance()
Definition
jpeg_progressive_decoder.cpp:104
fxcodec::JpegProgressiveDecoder::Start
static std::unique_ptr< Context > Start()
Definition
jpeg_progressive_decoder.cpp:110
fxcodec::JpegProgressiveDecoder::StartScanline
static bool StartScanline(Context *pContext)
Definition
jpeg_progressive_decoder.cpp:148
fxcodec::JpegProgressiveDecoder::DestroyGlobals
static void DestroyGlobals()
Definition
jpeg_progressive_decoder.cpp:98
fxcodec::JpegProgressiveDecoder::GetAvailInput
FX_FILESIZE GetAvailInput(Context *pContext) const override
Definition
jpeg_progressive_decoder.cpp:162
fxcodec::JpegProgressiveDecoder::Input
bool Input(Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory) override
Definition
jpeg_progressive_decoder.cpp:167
fxcodec::ProgressiveDecoderIface::Context
Definition
progressive_decoder_iface.h:23
fxcodec::ProgressiveDecoderIface
Definition
progressive_decoder_iface.h:21
fxcrt::RetainPtr
Definition
retain_ptr.h:28
UNSAFE_BUFFERS
#define UNSAFE_BUFFERS(...)
Definition
compiler_specific.h:95
FX_FILESIZE
#define FX_FILESIZE
Definition
fx_types.h:19
JpegLoadAttribute
static void JpegLoadAttribute(const jpeg_decompress_struct &info, CFX_DIBAttribute *pAttribute)
Definition
jpeg_progressive_decoder.cpp:54
src_skip_data
static void src_skip_data(jpeg_decompress_struct *cinfo, long num)
Definition
jpeg_progressive_decoder.cpp:40
error_fatal
static void error_fatal(j_common_ptr cinfo)
Definition
jpeg_progressive_decoder.cpp:35
JpegProgressiveDecoder
fxcodec::JpegProgressiveDecoder JpegProgressiveDecoder
Definition
jpeg_progressive_decoder.h:52
fxcodec
Definition
fpdf_parser_decode.h:28
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
CHECK
#define CHECK(cvref)
Definition
q23utility.cpp:15
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcodec
jpeg
jpeg_progressive_decoder.h
Generated on
for Qt by
1.18.0