OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | |
4 * | 3 * |
5 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
7 * are met: | 6 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
11 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
13 * | 12 * |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 128 |
130 float frameDurationAtIndex(size_t) const; | 129 float frameDurationAtIndex(size_t) const; |
131 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. | 130 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. |
132 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. | 131 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. |
133 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation | 132 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation |
134 | 133 |
135 // Return the number of bytes in the decoded frame. If the frame is not yet | 134 // Return the number of bytes in the decoded frame. If the frame is not yet |
136 // decoded then return 0. | 135 // decoded then return 0. |
137 unsigned frameBytesAtIndex(size_t) const; | 136 unsigned frameBytesAtIndex(size_t) const; |
138 | 137 |
139 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | |
140 static unsigned maxPixelsPerDecodedImage() { return s_maxPixelsPerDecodedIma
ge; } | |
141 static void setMaxPixelsPerDecodedImage(unsigned maxPixels) { s_maxPixelsPer
DecodedImage = maxPixels; } | |
142 #endif | |
143 | |
144 void reportMemoryUsage(MemoryObjectInfo*) const; | 138 void reportMemoryUsage(MemoryObjectInfo*) const; |
145 | 139 |
146 private: | 140 private: |
147 OwnPtr<NativeImageDecoderPtr> m_decoder; | 141 OwnPtr<NativeImageDecoderPtr> m_decoder; |
148 | 142 |
149 AlphaOption m_alphaOption; | 143 AlphaOption m_alphaOption; |
150 GammaAndColorProfileOption m_gammaAndColorProfileOption; | 144 GammaAndColorProfileOption m_gammaAndColorProfileOption; |
151 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | |
152 static unsigned s_maxPixelsPerDecodedImage; | |
153 #endif | |
154 }; | 145 }; |
155 | 146 |
156 } | 147 } |
157 | 148 |
158 #endif | 149 #endif |
OLD | NEW |