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
jpx_decode_utils.h
Go to the documentation of this file.
1
// Copyright 2014 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_JPX_JPX_DECODE_UTILS_H_
8
#
define
CORE_FXCODEC_JPX_JPX_DECODE_UTILS_H_
9
10
#
include
<
stdint
.
h
>
11
12
#
include
"core/fxcrt/span.h"
13
14
#
if
defined
(
USE_SYSTEM_LIBOPENJPEG2
)
15
#
include
<
openjpeg
.
h
>
16
#
else
17
#
include
"third_party/libopenjpeg/openjpeg.h"
18
#
endif
19
20
namespace
fxcodec
{
21
22
struct
DecodeData
{
23
DecodeData
() =
default
;
24
explicit
DecodeData
(pdfium::span<
const
uint8_t> data);
25
26
const
uint8_t*
src_data
=
nullptr
;
27
OPJ_SIZE_T
src_size
= 0;
28
OPJ_SIZE_T
offset
= 0;
29
};
30
31
/* Wrappers for C-style callbacks. */
32
OPJ_SIZE_T
opj_read_from_memory
(
void
* p_buffer,
33
OPJ_SIZE_T nb_bytes,
34
void
* p_user_data);
35
OPJ_OFF_T
opj_skip_from_memory
(OPJ_OFF_T nb_bytes,
void
* p_user_data);
36
OPJ_BOOL
opj_seek_from_memory
(OPJ_OFF_T nb_bytes,
void
* p_user_data);
37
38
}
// namespace fxcodec
39
40
#
endif
// CORE_FXCODEC_JPX_JPX_DECODE_UTILS_H_
CHECK_LE
#define CHECK_LE(x, y)
Definition
check_op.h:14
fxcodec::CJPX_Decoder
Definition
cjpx_decoder.h:27
fxcodec::CJPX_Decoder::Sycc420ToRgbForTesting
static void Sycc420ToRgbForTesting(opj_image_t *img)
Definition
cjpx_decoder.cpp:427
fxcodec::CJPX_Decoder::kMaxResolutionsToSkip
static constexpr uint8_t kMaxResolutionsToSkip
Definition
cjpx_decoder.h:31
fxcodec::CJPX_Decoder::~CJPX_Decoder
~CJPX_Decoder()
fxcodec::CJPX_Decoder::Decode
bool Decode(pdfium::span< uint8_t > dest_buf, uint32_t pitch, bool swap_rgb, uint32_t component_count)
Definition
cjpx_decoder.cpp:544
fxcodec::CJPX_Decoder::GetInfo
JpxImageInfo GetInfo() const
Definition
cjpx_decoder.cpp:537
fxcodec::CJPX_Decoder::ColorSpaceOption
ColorSpaceOption
Definition
cjpx_decoder.h:33
fxcodec::CJPX_Decoder::ColorSpaceOption::kIndexed
@ kIndexed
Definition
cjpx_decoder.h:36
fxcodec::CJPX_Decoder::StartDecode
bool StartDecode()
Definition
cjpx_decoder.cpp:490
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
UNSAFE_BUFFERS
#define UNSAFE_BUFFERS(...)
Definition
compiler_specific.h:95
UNSAFE_TODO
#define UNSAFE_TODO(...)
Definition
compiler_specific.h:102
FX_SAFE_UINT32
pdfium::CheckedNumeric< uint32_t > FX_SAFE_UINT32
Definition
fx_safe_types.h:14
fxcodec
Definition
fpdf_parser_decode.h:28
fxcodec::opj_seek_from_memory
OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void *p_user_data)
Definition
jpx_decode_utils.cpp:75
fxcodec::opj_read_from_memory
OPJ_SIZE_T opj_read_from_memory(void *p_buffer, OPJ_SIZE_T nb_bytes, void *p_user_data)
Definition
jpx_decode_utils.cpp:23
fxcodec::opj_skip_from_memory
OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void *p_user_data)
Definition
jpx_decode_utils.cpp:43
fxcrt
Definition
stl_util.h:17
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
CHECK
#define CHECK(cvref)
Definition
q23utility.cpp:15
fxcodec::CJPX_Decoder::JpxImageInfo
Definition
cjpx_decoder.h:39
fxcodec::DecodeData
Definition
jpx_decode_utils.h:22
fxcodec::DecodeData::DecodeData
DecodeData(pdfium::span< const uint8_t > data)
Definition
jpx_decode_utils.cpp:19
fxcodec::DecodeData::src_size
OPJ_SIZE_T src_size
Definition
jpx_decode_utils.h:27
fxcodec::DecodeData::DecodeData
DecodeData()=default
fxcodec::DecodeData::offset
OPJ_SIZE_T offset
Definition
jpx_decode_utils.h:28
fxcodec::DecodeData::src_data
const uint8_t * src_data
Definition
jpx_decode_utils.h:26
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcodec
jpx
jpx_decode_utils.h
Generated on
for Qt by
1.18.0