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 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 void setData(SharedBuffer* data, bool allDataReceived); | 100 void setData(SharedBuffer* data, bool allDataReceived); |
101 String filenameExtension() const; | 101 String filenameExtension() const; |
102 | 102 |
103 bool isSizeAvailable(); | 103 bool isSizeAvailable(); |
104 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con
st; | 104 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con
st; |
105 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI
mageOrientation) const; | 105 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI
mageOrientation) const; |
106 | 106 |
107 bool getHotSpot(IntPoint&) const; | 107 bool getHotSpot(IntPoint&) const; |
108 | 108 |
109 size_t bytesDecodedToDetermineProperties() const; | |
110 | |
111 int repetitionCount(); | 109 int repetitionCount(); |
112 | 110 |
113 size_t frameCount() const; | 111 size_t frameCount() const; |
114 | 112 |
115 PassRefPtr<NativeImageSkia> createFrameAtIndex(size_t); | 113 PassRefPtr<NativeImageSkia> createFrameAtIndex(size_t); |
116 | 114 |
117 float frameDurationAtIndex(size_t) const; | 115 float frameDurationAtIndex(size_t) const; |
118 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. | 116 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. |
119 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. | 117 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. |
120 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation | 118 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation |
121 | 119 |
122 // Return the number of bytes in the decoded frame. If the frame is not yet | 120 // Return the number of bytes in the decoded frame. If the frame is not yet |
123 // decoded then return 0. | 121 // decoded then return 0. |
124 unsigned frameBytesAtIndex(size_t) const; | 122 unsigned frameBytesAtIndex(size_t) const; |
125 | 123 |
126 private: | 124 private: |
127 OwnPtr<DeferredImageDecoder> m_decoder; | 125 OwnPtr<DeferredImageDecoder> m_decoder; |
128 | 126 |
129 AlphaOption m_alphaOption; | 127 AlphaOption m_alphaOption; |
130 GammaAndColorProfileOption m_gammaAndColorProfileOption; | 128 GammaAndColorProfileOption m_gammaAndColorProfileOption; |
131 }; | 129 }; |
132 | 130 |
133 } | 131 } |
134 | 132 |
135 #endif | 133 #endif |
OLD | NEW |