blob: 3b453de70ba0160caf0adf973b2dfdc4030e31d3 [file] [log] [blame]
// Copyright 2020 PDFium Authors. All rights reserved.
// 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/fxcodec/bmp/bmp_progressive_decoder.h"
#include "core/fxcodec/bmp/bmp_decoder.h"
#include "core/fxcodec/cfx_codec_memory.h"
namespace fxcodec {
// static
BmpProgressiveDecoder* BmpProgressiveDecoder::GetInstance() {
static pdfium::base::NoDestructor<BmpProgressiveDecoder> s;
return s.get();
}
BmpProgressiveDecoder::BmpProgressiveDecoder() = default;
BmpProgressiveDecoder::~BmpProgressiveDecoder() = default;
FX_FILESIZE BmpProgressiveDecoder::GetAvailInput(Context* context) const {
return BmpDecoder::GetAvailInput(context);
}
bool BmpProgressiveDecoder::Input(Context* context,
RetainPtr<CFX_CodecMemory> codec_memory,
CFX_DIBAttribute* pAttribute) {
return BmpDecoder::Input(context, codec_memory, pAttribute);
}
} // namespace fxcodec