chromium/third_party/pdfium/core/fpdfapi/page/cpdf_image.cpp

// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fpdfapi/page/cpdf_image.h"

#include <stdint.h>

#include <algorithm>
#include <array>
#include <memory>
#include <utility>

#include "constants/stream_dict_common.h"
#include "core/fpdfapi/page/cpdf_dib.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/cpdf_pageimagecache.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_boolean.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fxcodec/jpeg/jpegmodule.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/fx_2d_size.h"
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/span_util.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "core/fxge/dib/fx_dib.h"

// static
bool CPDF_Image::IsValidJpegComponent(int32_t comps) {}

// static
bool CPDF_Image::IsValidJpegBitsPerComponent(int32_t bpc) {}

CPDF_Image::CPDF_Image(CPDF_Document* pDoc) :{}

CPDF_Image::CPDF_Image(CPDF_Document* pDoc, RetainPtr<CPDF_Stream> pStream)
    :{}

CPDF_Image::CPDF_Image(CPDF_Document* pDoc, uint32_t dwStreamObjNum)
    :{}

CPDF_Image::~CPDF_Image() = default;

void CPDF_Image::FinishInitialization() {}

void CPDF_Image::ConvertStreamToIndirectObject() {}

RetainPtr<const CPDF_Dictionary> CPDF_Image::GetDict() const {}

RetainPtr<const CPDF_Stream> CPDF_Image::GetStream() const {}

RetainPtr<const CPDF_Dictionary> CPDF_Image::GetOC() const {}

RetainPtr<CPDF_Dictionary> CPDF_Image::InitJPEG(
    pdfium::span<uint8_t> src_span) {}

void CPDF_Image::SetJpegImage(RetainPtr<IFX_SeekableReadStream> pFile) {}

void CPDF_Image::SetJpegImageInline(RetainPtr<IFX_SeekableReadStream> pFile) {}

void CPDF_Image::SetImage(const RetainPtr<CFX_DIBitmap>& pBitmap) {}

void CPDF_Image::ResetCache(CPDF_Page* pPage) {}

void CPDF_Image::WillBeDestroyed() {}

RetainPtr<CPDF_DIB> CPDF_Image::CreateNewDIB() const {}

RetainPtr<CFX_DIBBase> CPDF_Image::LoadDIBBase() const {}

RetainPtr<CFX_DIBBase> CPDF_Image::DetachBitmap() {}

RetainPtr<CFX_DIBBase> CPDF_Image::DetachMask() {}

bool CPDF_Image::StartLoadDIBBase(const CPDF_Dictionary* pFormResource,
                                  const CPDF_Dictionary* pPageResource,
                                  bool bStdCS,
                                  CPDF_ColorSpace::Family GroupFamily,
                                  bool bLoadMask,
                                  const CFX_Size& max_size_required) {}

bool CPDF_Image::Continue(PauseIndicatorIface* pPause) {}

RetainPtr<CPDF_Dictionary> CPDF_Image::CreateXObjectImageDict(int width,
                                                              int height) {}