#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
-namespace WebCore {
+namespace blink {
class JPEGImageReader;
virtual bool isSizeAvailable() OVERRIDE;
virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
virtual IntSize decodedSize() const OVERRIDE { return m_decodedSize; }
+ virtual IntSize decodedYUVSize(int component) const OVERRIDE;
virtual bool setSize(unsigned width, unsigned height) OVERRIDE;
virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE;
// CAUTION: setFailed() deletes |m_reader|. Be careful to avoid
// accessing deleted memory, especially when calling this from inside
// JPEGImageReader!
virtual bool setFailed() OVERRIDE;
+ virtual bool YUVDecoding() const OVERRIDE { return m_imagePlanes.get(); }
+ virtual bool decodeToYUV() OVERRIDE;
+ virtual void setImagePlanes(OwnPtr<ImagePlanes>&) OVERRIDE;
bool outputScanlines();
unsigned desiredScaleNumerator() const;
void decode(bool onlySize);
OwnPtr<JPEGImageReader> m_reader;
+ OwnPtr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
bool m_hasColorProfile;
};
-} // namespace WebCore
+} // namespace blink
#endif