OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkImage.h" | 10 #include "SkImage.h" |
11 #include "SkImageDecoder.h" | 11 #include "SkImageDecoder.h" |
12 #include "SkImageEncoder.h" | 12 #include "SkImageEncoder.h" |
13 #include "SkMovie.h" | 13 #include "SkMovie.h" |
14 #include "SkStream.h" | 14 #include "SkStream.h" |
15 | 15 |
16 class SkColorTable; | 16 class SkColorTable; |
17 | 17 |
18 // Empty implementations for SkImageDecoder. | 18 // Empty implementations for SkImageDecoder. |
19 | 19 |
20 SkImageDecoder::SkImageDecoder() {} | 20 SkImageDecoder::SkImageDecoder() {} |
21 | 21 |
22 SkImageDecoder::~SkImageDecoder() {} | 22 SkImageDecoder::~SkImageDecoder() {} |
23 | 23 |
24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { | 24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { |
25 return NULL; | 25 return nullptr; |
26 } | 26 } |
27 | 27 |
28 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} | 28 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} |
29 | 29 |
30 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form
at*) { | 30 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form
at*) { |
31 return false; | 31 return false; |
32 } | 32 } |
33 | 33 |
34 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType,
Mode) { | 34 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType,
Mode) { |
35 return kFailure; | 35 return kFailure; |
(...skipping 24 matching lines...) Expand all Loading... |
60 | 60 |
61 SkImageDecoder::Format SkImageDecoder::getFormat() const { | 61 SkImageDecoder::Format SkImageDecoder::getFormat() const { |
62 return kUnknown_Format; | 62 return kUnknown_Format; |
63 } | 63 } |
64 | 64 |
65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { | 65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { |
66 return kUnknown_Format; | 66 return kUnknown_Format; |
67 } | 67 } |
68 | 68 |
69 const char* SkImageDecoder::GetFormatName(Format) { | 69 const char* SkImageDecoder::GetFormatName(Format) { |
70 return NULL; | 70 return nullptr; |
71 } | 71 } |
72 | 72 |
73 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { | 73 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { |
74 return NULL; | 74 return nullptr; |
75 } | 75 } |
76 | 76 |
77 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { | 77 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { |
78 return NULL; | 78 return nullptr; |
79 } | 79 } |
80 | 80 |
81 void SkImageDecoder::setSampleSize(int) {} | 81 void SkImageDecoder::setSampleSize(int) {} |
82 | 82 |
83 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, | 83 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, |
84 int, int) { | 84 int, int) { |
85 return false; | 85 return false; |
86 } | 86 } |
87 | 87 |
88 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { | 88 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { |
89 return false; | 89 return false; |
90 } | 90 } |
91 | 91 |
92 ///////////////////////////////////////////////////////////////////////// | 92 ///////////////////////////////////////////////////////////////////////// |
93 | 93 |
94 // Empty implementation for SkMovie. | 94 // Empty implementation for SkMovie. |
95 | 95 |
96 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { | 96 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { |
97 return NULL; | 97 return nullptr; |
98 } | 98 } |
99 | 99 |
100 ///////////////////////////////////////////////////////////////////////// | 100 ///////////////////////////////////////////////////////////////////////// |
101 | 101 |
102 // Empty implementations for SkImageEncoder. | 102 // Empty implementations for SkImageEncoder. |
103 | 103 |
104 SkImageEncoder* SkImageEncoder::Create(Type t) { | 104 SkImageEncoder* SkImageEncoder::Create(Type t) { |
105 return NULL; | 105 return nullptr; |
106 } | 106 } |
107 | 107 |
108 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu
ality) { | 108 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu
ality) { |
109 return false; | 109 return false; |
110 } | 110 } |
111 | 111 |
112 bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::T
ype, int) { | 112 bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::T
ype, int) { |
113 return false; | 113 return false; |
114 } | 114 } |
115 | 115 |
116 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { | 116 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { |
117 return NULL; | 117 return nullptr; |
118 } | 118 } |
119 | 119 |
120 bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) { | 120 bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) { |
121 return false; | 121 return false; |
122 } | 122 } |
123 | 123 |
124 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { | 124 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { |
125 return NULL; | 125 return nullptr; |
126 } | 126 } |
127 | 127 |
128 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { | 128 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { |
129 return false; | 129 return false; |
130 } | 130 } |
131 ///////////////////////////////////////////////////////////////////////// | 131 ///////////////////////////////////////////////////////////////////////// |
OLD | NEW |