michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #include "SkBitmap.h" michael@0: #include "SkImage.h" michael@0: #include "SkImageDecoder.h" michael@0: #include "SkImageEncoder.h" michael@0: #include "SkMovie.h" michael@0: michael@0: class SkColorTable; michael@0: class SkStream; michael@0: class SkStreamRewindable; michael@0: michael@0: // Empty implementations for SkImageDecoder. michael@0: michael@0: SkImageDecoder::SkImageDecoder() {} michael@0: michael@0: SkImageDecoder::~SkImageDecoder() {} michael@0: michael@0: SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { michael@0: return NULL; michael@0: } michael@0: michael@0: void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} michael@0: michael@0: bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkBitmap::Config, michael@0: SkImageDecoder::Mode, SkImageDecoder::Format*) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, Mode) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkBitmap::Config, michael@0: SkImageDecoder::Mode, michael@0: SkImageDecoder::Format*) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, michael@0: SkBitmap::Config, SkImageDecoder::Mode, michael@0: SkImageDecoder::Format*) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkBitmap::Config) { michael@0: return false; michael@0: } michael@0: michael@0: SkImageDecoder::Format SkImageDecoder::getFormat() const { michael@0: return kUnknown_Format; michael@0: } michael@0: michael@0: SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { michael@0: return kUnknown_Format; michael@0: } michael@0: michael@0: const char* SkImageDecoder::GetFormatName(Format) { michael@0: return NULL; michael@0: } michael@0: michael@0: SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { michael@0: return NULL; michael@0: } michael@0: michael@0: SkImageDecoder::Chooser* SkImageDecoder::setChooser(Chooser*) { michael@0: return NULL; michael@0: } michael@0: michael@0: SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { michael@0: return NULL; michael@0: } michael@0: michael@0: void SkImageDecoder::setSampleSize(int) {} michael@0: michael@0: SkBitmap::Config SkImageDecoder::GetDeviceConfig() { michael@0: return SkBitmap::kNo_Config; michael@0: } michael@0: michael@0: void SkImageDecoder::SetDeviceConfig(SkBitmap::Config) {} michael@0: michael@0: bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, michael@0: int, int) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::chooseFromOneChoice(SkBitmap::Config, int, int) const { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { michael@0: return false; michael@0: } michael@0: michael@0: SkBitmap::Config SkImageDecoder::getPrefConfig(SrcDepth, bool) const { michael@0: return SkBitmap::kNo_Config; michael@0: } michael@0: michael@0: michael@0: ///////////////////////////////////////////////////////////////////////// michael@0: michael@0: // Empty implementation for SkMovie. michael@0: michael@0: SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { michael@0: return NULL; michael@0: } michael@0: michael@0: ///////////////////////////////////////////////////////////////////////// michael@0: michael@0: // Empty implementations for SkImageEncoder. michael@0: michael@0: SkImageEncoder* SkImageEncoder::Create(Type t) { michael@0: return NULL; michael@0: } michael@0: michael@0: bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int quality) { michael@0: return false; michael@0: } michael@0: michael@0: bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::Type, int) { michael@0: return false; michael@0: } michael@0: michael@0: SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { michael@0: return NULL; michael@0: } michael@0: michael@0: bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) { michael@0: return false; michael@0: } michael@0: michael@0: SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { michael@0: return NULL; michael@0: } michael@0: michael@0: bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quality) { michael@0: return false; michael@0: } michael@0: ///////////////////////////////////////////////////////////////////////// michael@0: michael@0: // Empty implementation for SkImages. michael@0: michael@0: #include "SkImages.h" michael@0: michael@0: void SkImages::InitializeFlattenables() {}