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
progressive_decoder_iface.h
Go to the documentation of this file.
1
// Copyright 2018 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_PROGRESSIVE_DECODER_IFACE_H_
8
#
define
CORE_FXCODEC_PROGRESSIVE_DECODER_IFACE_H_
9
10
#
include
"core/fxcrt/fx_types.h"
11
#
include
"core/fxcrt/retain_ptr.h"
12
13
#
ifndef
PDF_ENABLE_XFA
14
#
error
"XFA Only"
15
#
endif
16
17
class
CFX_CodecMemory;
18
19
namespace
fxcodec
{
20
21
class
ProgressiveDecoderIface
{
22
public
:
23
class
Context
{
24
public
:
25
virtual
~
Context
() =
default
;
26
};
27
28
virtual
~
ProgressiveDecoderIface
() =
default
;
29
30
// Returns the number of unprocessed bytes remaining in the input buffer.
31
virtual
FX_FILESIZE
GetAvailInput
(
Context
* pContext)
const
= 0;
32
33
// Provides a new input buffer to the codec. Returns true on success.
34
virtual
bool
Input
(
Context
* pContext,
35
RetainPtr
<CFX_CodecMemory> codec_memory) = 0;
36
};
37
38
}
// namespace fxcodec
39
40
using
fxcodec
::ProgressiveDecoderIface;
41
42
#
endif
// CORE_FXCODEC_PROGRESSIVE_DECODER_IFACE_H_
BmpDecoder
fxcodec::BmpDecoder BmpDecoder
Definition
bmp_decoder.h:58
DCHECK
#define DCHECK
Definition
check.h:33
fxcodec::BmpDecoder::Delegate
Definition
bmp_decoder.h:28
fxcodec::BmpDecoder::Delegate::BmpReadScanline
virtual void BmpReadScanline(uint32_t row_num, pdfium::span< const uint8_t > row_buf)=0
fxcodec::BmpDecoder::Delegate::BmpInputImagePositionBuf
virtual bool BmpInputImagePositionBuf(uint32_t rcd_pos)=0
fxcodec::BmpDecoder
Definition
bmp_decoder.h:26
fxcodec::BmpDecoder::Status
Status
Definition
bmp_decoder.h:35
fxcodec::BmpDecoder::Status::kContinue
@ kContinue
Definition
bmp_decoder.h:35
fxcodec::BmpDecoder::Status::kFail
@ kFail
Definition
bmp_decoder.h:35
fxcodec::BmpDecoder::Status::kSuccess
@ kSuccess
Definition
bmp_decoder.h:35
fxcodec::BmpDecoder::Input
static bool Input(ProgressiveDecoderIface::Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory)
Definition
bmp_decoder.cpp:65
fxcodec::BmpDecoder::BmpDecoder
BmpDecoder(const BmpDecoder &)=delete
fxcodec::BmpDecoder::LoadImage
static Status LoadImage(ProgressiveDecoderIface::Context *pContext)
Definition
bmp_decoder.cpp:53
fxcodec::BmpDecoder::ReadHeader
static Status ReadHeader(ProgressiveDecoderIface::Context *pContext, int32_t *width, int32_t *height, bool *tb_flag, int32_t *components, pdfium::span< const FX_ARGB > *palette, CFX_DIBAttribute *pAttribute)
Definition
bmp_decoder.cpp:26
fxcodec::BmpDecoder::StartDecode
static std::unique_ptr< ProgressiveDecoderIface::Context > StartDecode(Delegate *pDelegate)
Definition
bmp_decoder.cpp:20
fxcodec::BmpDecoder::GetAvailInput
static FX_FILESIZE GetAvailInput(ProgressiveDecoderIface::Context *pContext)
Definition
bmp_decoder.cpp:59
fxcodec::BmpDecoder::BmpDecoder
BmpDecoder()=delete
fxcodec::BmpDecoder::operator=
BmpDecoder & operator=(const BmpDecoder &)=delete
fxcodec::ProgressiveDecoderIface::Context
Definition
progressive_decoder_iface.h:23
fxcodec::ProgressiveDecoderIface::Context::~Context
virtual ~Context()=default
fxcodec::ProgressiveDecoderIface
Definition
progressive_decoder_iface.h:21
fxcodec::ProgressiveDecoderIface::GetAvailInput
virtual FX_FILESIZE GetAvailInput(Context *pContext) const =0
fxcodec::ProgressiveDecoderIface::Input
virtual bool Input(Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory)=0
fxcodec::ProgressiveDecoderIface::~ProgressiveDecoderIface
virtual ~ProgressiveDecoderIface()=default
fxcrt::RetainPtr
Definition
retain_ptr.h:28
FX_FILESIZE
#define FX_FILESIZE
Definition
fx_types.h:19
fxcodec
Definition
fpdf_parser_decode.h:28
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcodec
progressive_decoder_iface.h
Generated on
for Qt by
1.18.0