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
cfx_bmpcontext.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_BMP_CFX_BMPCONTEXT_H_
8#define CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_
9
10#include "core/fxcodec/bmp/bmp_decoder.h"
11#include "core/fxcodec/bmp/cfx_bmpdecompressor.h"
12#include "core/fxcodec/bmp/fx_bmp.h"
13#include "core/fxcrt/unowned_ptr.h"
14
15namespace fxcodec {
16
17class CFX_BmpContext final : public ProgressiveDecoderIface::Context {
18 public:
19 explicit CFX_BmpContext(BmpDecoder::Delegate* pDelegate);
20 ~CFX_BmpContext() override;
21
24};
25
26} // namespace fxcodec
27
28#endif // CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_
virtual void BmpReadScanline(uint32_t row_num, pdfium::span< const uint8_t > row_buf)=0
virtual bool BmpInputImagePositionBuf(uint32_t rcd_pos)=0
static bool Input(ProgressiveDecoderIface::Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory)
static Status ReadHeader(ProgressiveDecoderIface::Context *pContext, int32_t *width, int32_t *height, bool *tb_flag, int32_t *components, int32_t *pal_num, const std::vector< uint32_t > **palette, CFX_DIBAttribute *pAttribute)
BmpDecoder(const BmpDecoder &)=delete
static Status LoadImage(ProgressiveDecoderIface::Context *pContext)
static std::unique_ptr< ProgressiveDecoderIface::Context > StartDecode(Delegate *pDelegate)
static FX_FILESIZE GetAvailInput(ProgressiveDecoderIface::Context *pContext)
BmpDecoder & operator=(const BmpDecoder &)=delete
UnownedPtr< BmpDecoder::Delegate > const m_pDelegate
CFX_BmpContext(BmpDecoder::Delegate *pDelegate)
CFX_BmpDecompressor m_Bmp
virtual FX_FILESIZE GetAvailInput(Context *pContext) const =0
virtual bool Input(Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory)=0
virtual ~ProgressiveDecoderIface()=default
#define FX_FILESIZE
Definition fx_types.h:19