Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_imageloader.h
Go to the documentation of this file.
1
// Copyright 2016 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_FPDFAPI_PAGE_CPDF_IMAGELOADER_H_
8
#
define
CORE_FPDFAPI_PAGE_CPDF_IMAGELOADER_H_
9
10
#
include
"core/fpdfapi/page/cpdf_colorspace.h"
11
#
include
"core/fxcrt/retain_ptr.h"
12
#
include
"core/fxcrt/unowned_ptr.h"
13
14
class
CFX_DIBBase
;
15
class
CPDF_Dictionary;
16
class
CPDF_ImageObject;
17
class
CPDF_PageImageCache
;
18
class
CPDF_TransferFunc;
19
class
PauseIndicatorIface
;
20
21
class
CPDF_ImageLoader
{
22
public
:
23
CPDF_ImageLoader
();
24
~
CPDF_ImageLoader
();
25
26
bool
Start
(
const
CPDF_ImageObject* pImage,
27
CPDF_PageImageCache
* pPageImageCache,
28
const
CPDF_Dictionary* pFormResource,
29
const
CPDF_Dictionary* pPageResource,
30
bool
bStdCS,
31
CPDF_ColorSpace
::
Family
eFamily,
32
bool
bLoadMask,
33
const
CFX_Size& max_size_required);
34
bool
Continue
(
PauseIndicatorIface
* pPause);
35
36
RetainPtr
<
CFX_DIBBase
>
TranslateImage
(
37
RetainPtr
<CPDF_TransferFunc> pTransferFunc);
38
39
const
RetainPtr
<
CFX_DIBBase
>&
GetBitmap
()
const
{
return
m_pBitmap; }
40
const
RetainPtr
<
CFX_DIBBase
>&
GetMask
()
const
{
return
m_pMask; }
41
uint32_t
MatteColor
()
const
{
return
m_MatteColor; }
42
43
private
:
44
void
Finish();
45
46
uint32_t m_MatteColor = 0;
47
bool
m_bCached =
false
;
48
RetainPtr
<
CFX_DIBBase
> m_pBitmap;
49
RetainPtr
<
CFX_DIBBase
> m_pMask;
50
UnownedPtr
<
CPDF_PageImageCache
> m_pCache;
51
UnownedPtr
<
const
CPDF_ImageObject> m_pImageObject;
52
};
53
54
#
endif
// CORE_FPDFAPI_PAGE_CPDF_IMAGELOADER_H_
CFX_DIBBase
Definition
cfx_dibbase.h:33
CPDF_ColorSpace
Definition
cpdf_colorspace.h:55
CPDF_ColorSpace::Family
Family
Definition
cpdf_colorspace.h:57
CPDF_ImageLoader
Definition
cpdf_imageloader.h:21
CPDF_ImageLoader::MatteColor
uint32_t MatteColor() const
Definition
cpdf_imageloader.h:41
CPDF_ImageLoader::TranslateImage
RetainPtr< CFX_DIBBase > TranslateImage(RetainPtr< CPDF_TransferFunc > pTransferFunc)
Definition
cpdf_imageloader.cpp:59
CPDF_ImageLoader::Start
bool Start(const CPDF_ImageObject *pImage, CPDF_PageImageCache *pPageImageCache, const CPDF_Dictionary *pFormResource, const CPDF_Dictionary *pPageResource, bool bStdCS, CPDF_ColorSpace::Family eFamily, bool bLoadMask, const CFX_Size &max_size_required)
Definition
cpdf_imageloader.cpp:23
CPDF_ImageLoader::~CPDF_ImageLoader
~CPDF_ImageLoader()
CPDF_ImageLoader::GetBitmap
const RetainPtr< CFX_DIBBase > & GetBitmap() const
Definition
cpdf_imageloader.h:39
CPDF_ImageLoader::Continue
bool Continue(PauseIndicatorIface *pPause)
Definition
cpdf_imageloader.cpp:49
CPDF_ImageLoader::CPDF_ImageLoader
CPDF_ImageLoader()
CPDF_ImageLoader::GetMask
const RetainPtr< CFX_DIBBase > & GetMask() const
Definition
cpdf_imageloader.h:40
CPDF_PageImageCache
Definition
cpdf_pageimagecache.h:27
PauseIndicatorIface
Definition
pauseindicator_iface.h:10
fxcrt::RetainPtr
Definition
retain_ptr.h:29
fxcrt::UnownedPtr
Definition
unowned_ptr.h:75
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
page
cpdf_imageloader.h
Generated on Thu Nov 14 2024 00:55:42 for Qt by
1.12.0