Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <stdint.h>
#include <memory>
#include <utility>
#include <vector>
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/fx_memory_wrappers.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/retain_ptr.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/base/containers/span.h"
Go to the source code of this file.
Namespaces | |
namespace | fxcodec |
Typedefs | |
using | DecoderArray |
Functions | |
bool | ValidateDecoderPipeline (const CPDF_Array *pDecoders) |
ByteString | PDF_EncodeString (ByteStringView src) |
ByteString | PDF_HexEncodeString (ByteStringView src) |
WideString | PDF_DecodeText (pdfium::span< const uint8_t > span) |
ByteString | PDF_EncodeText (WideStringView str) |
std::unique_ptr< fxcodec::ScanlineDecoder > | CreateFaxDecoder (pdfium::span< const uint8_t > src_span, int width, int height, const CPDF_Dictionary *pParams) |
std::unique_ptr< fxcodec::ScanlineDecoder > | CreateFlateDecoder (pdfium::span< const uint8_t > src_span, int width, int height, int nComps, int bpc, const CPDF_Dictionary *pParams) |
uint32_t | RunLengthDecode (pdfium::span< const uint8_t > src_span, std::unique_ptr< uint8_t, FxFreeDeleter > *dest_buf, uint32_t *dest_size) |
uint32_t | A85Decode (pdfium::span< const uint8_t > src_span, std::unique_ptr< uint8_t, FxFreeDeleter > *dest_buf, uint32_t *dest_size) |
uint32_t | HexDecode (pdfium::span< const uint8_t > src_span, std::unique_ptr< uint8_t, FxFreeDeleter > *dest_buf, uint32_t *dest_size) |
uint32_t | FlateOrLZWDecode (bool bLZW, pdfium::span< const uint8_t > src_span, const CPDF_Dictionary *pParams, uint32_t estimated_size, std::unique_ptr< uint8_t, FxFreeDeleter > *dest_buf, uint32_t *dest_size) |
absl::optional< DecoderArray > | GetDecoderArray (RetainPtr< const CPDF_Dictionary > pDict) |
bool | PDF_DataDecode (pdfium::span< const uint8_t > src_span, uint32_t estimated_size, bool bImageAcc, const DecoderArray &decoder_array, std::unique_ptr< uint8_t, FxFreeDeleter > *dest_buf, uint32_t *dest_size, ByteString *ImageEncoding, RetainPtr< const CPDF_Dictionary > *pImageParams) |
Variables | |
const uint16_t | kPDFDocEncoding [256] |
using DecoderArray |
Definition at line 79 of file fpdf_parser_decode.h.
uint32_t A85Decode | ( | pdfium::span< const uint8_t > | src_span, |
std::unique_ptr< uint8_t, FxFreeDeleter > * | dest_buf, | ||
uint32_t * | dest_size ) |
Definition at line 111 of file fpdf_parser_decode.cpp.
References PDFCharIsLineEnding().
std::unique_ptr< ScanlineDecoder > CreateFaxDecoder | ( | pdfium::span< const uint8_t > | src_span, |
int | width, | ||
int | height, | ||
const CPDF_Dictionary * | pParams ) |
Definition at line 289 of file fpdf_parser_decode.cpp.
References CPDF_Dictionary::GetIntegerFor(), and CPDF_Dictionary::GetIntegerFor().
std::unique_ptr< ScanlineDecoder > CreateFlateDecoder | ( | pdfium::span< const uint8_t > | src_span, |
int | width, | ||
int | height, | ||
int | nComps, | ||
int | bpc, | ||
const CPDF_Dictionary * | pParams ) |
Definition at line 314 of file fpdf_parser_decode.cpp.
References CPDF_Dictionary::GetIntegerFor(), and CPDF_Dictionary::GetIntegerFor().
uint32_t FlateOrLZWDecode | ( | bool | bLZW, |
pdfium::span< const uint8_t > | src_span, | ||
const CPDF_Dictionary * | pParams, | ||
uint32_t | estimated_size, | ||
std::unique_ptr< uint8_t, FxFreeDeleter > * | dest_buf, | ||
uint32_t * | dest_size ) |
Definition at line 338 of file fpdf_parser_decode.cpp.
References fxcodec::FlateModule::FlateOrLZWDecode(), CPDF_Dictionary::GetIntegerFor(), and CPDF_Dictionary::GetIntegerFor().
absl::optional< DecoderArray > GetDecoderArray | ( | RetainPtr< const CPDF_Dictionary > | pDict | ) |
Definition at line 363 of file fpdf_parser_decode.cpp.
uint32_t HexDecode | ( | pdfium::span< const uint8_t > | src_span, |
std::unique_ptr< uint8_t, FxFreeDeleter > * | dest_buf, | ||
uint32_t * | dest_size ) |
Definition at line 192 of file fpdf_parser_decode.cpp.
References FXSYS_HexCharToInt(), and PDFCharIsLineEnding().
bool PDF_DataDecode | ( | pdfium::span< const uint8_t > | src_span, |
uint32_t | estimated_size, | ||
bool | bImageAcc, | ||
const DecoderArray & | decoder_array, | ||
std::unique_ptr< uint8_t, FxFreeDeleter > * | dest_buf, | ||
uint32_t * | dest_size, | ||
ByteString * | ImageEncoding, | ||
RetainPtr< const CPDF_Dictionary > * | pImageParams ) |
Definition at line 395 of file fpdf_parser_decode.cpp.
References fxcrt::ByteString::clear(), fxcrt::ByteString::operator=(), and fxcrt::ByteString::operator==().
WideString PDF_DecodeText | ( | pdfium::span< const uint8_t > | span | ) |
Definition at line 485 of file fpdf_parser_decode.cpp.
References fxcrt::WideString::FromUTF16BE(), fxcrt::WideString::FromUTF16LE(), fxcrt::WideString::FromUTF8(), and kPDFDocEncoding.
ByteString PDF_EncodeString | ( | ByteStringView | src | ) |
Definition at line 572 of file fpdf_parser_decode.cpp.
References fxcrt::ByteString::operator+=(), and fxcrt::ByteString::operator+=().
ByteString PDF_EncodeText | ( | WideStringView | str | ) |
Definition at line 512 of file fpdf_parser_decode.cpp.
References kPDFDocEncoding.
ByteString PDF_HexEncodeString | ( | ByteStringView | src | ) |
Definition at line 594 of file fpdf_parser_decode.cpp.
References fxcrt::ByteString::operator+=().
uint32_t RunLengthDecode | ( | pdfium::span< const uint8_t > | src_span, |
std::unique_ptr< uint8_t, FxFreeDeleter > * | dest_buf, | ||
uint32_t * | dest_size ) |
Definition at line 233 of file fpdf_parser_decode.cpp.
bool ValidateDecoderPipeline | ( | const CPDF_Array * | pDecoders | ) |
Definition at line 85 of file fpdf_parser_decode.cpp.
|
extern |
Definition at line 54 of file fpdf_parser_decode.cpp.
Referenced by CharCodeFromUnicodeForEncoding(), PDF_DecodeText(), PDF_EncodeText(), and UnicodesForPredefinedCharSet().