chromium/third_party/skia/src/codec/SkJpegDecoderMgr.cpp

/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "src/codec/SkJpegDecoderMgr.h"

#include "include/core/SkTypes.h"
#include "src/codec/SkCodecPriv.h"
#include "src/codec/SkJpegSourceMgr.h"
#include "src/codec/SkJpegUtility.h"

#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
    #include "include/android/SkAndroidFrameworkUtils.h"
#endif

#include <cstddef>
#include <utility>

class SkStream;

/*
 * Print information, warning, and error messages
 */
static void print_message(const j_common_ptr info, const char caller[]) {}

/*
 * Reporting function for error and warning messages.
 */
static void output_message(j_common_ptr info) {}

static void progress_monitor(j_common_ptr info) {}

////////////////////////////////////////////////////////////////////////////////////////////////////
// JpegDecoderMgr

bool JpegDecoderMgr::returnFalse(const char caller[]) {}

SkCodec::Result JpegDecoderMgr::returnFailure(const char caller[], SkCodec::Result result) {}

bool JpegDecoderMgr::getEncodedColor(SkEncodedInfo::Color* outColor) {}

SkJpegSourceMgr* JpegDecoderMgr::getSourceMgr() {}

JpegDecoderMgr::JpegDecoderMgr(SkStream* stream)
        :{}

void JpegDecoderMgr::init() {}

JpegDecoderMgr::~JpegDecoderMgr() {}

////////////////////////////////////////////////////////////////////////////////////////////////////
// JpegDecoderMgr::SourceMgr

// static
void JpegDecoderMgr::SourceMgr::InitSource(j_decompress_ptr dinfo) {}

// static
void JpegDecoderMgr::SourceMgr::SkipInputData(j_decompress_ptr dinfo, long num_bytes_long) {}

// static
boolean JpegDecoderMgr::SourceMgr::FillInputBuffer(j_decompress_ptr dinfo) {}

// static
void JpegDecoderMgr::SourceMgr::TermSource(j_decompress_ptr dinfo) {}

JpegDecoderMgr::SourceMgr::SourceMgr(std::unique_ptr<SkJpegSourceMgr> sourceMgr)
        :{}