webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Friends | List of all members
WebCore::ImageSource Class Reference

#include <ImageSource.h>

Public Member Functions

 ImageSource (NativeImagePtr &&)
 
 ImageSource (Image *, AlphaOption=AlphaOption::Premultiplied, GammaAndColorProfileOption=GammaAndColorProfileOption::Applied)
 
 ~ImageSource ()
 
void destroyAllDecodedData ()
 
void destroyAllDecodedDataExcludeFrame (size_t excludeFrame)
 
void destroyDecodedDataBeforeFrame (size_t beforeFrame)
 
void clearFrameBufferCache (size_t)
 
void clear (SharedBuffer *data)
 
bool ensureDecoderAvailable (SharedBuffer *)
 
bool isDecoderAvailable () const
 
void setData (SharedBuffer *data, bool allDataReceived)
 
bool dataChanged (SharedBuffer *data, bool allDataReceived)
 
unsigned decodedSize () const
 
bool isAllDataReceived ()
 
bool isAsyncDecodingRequired ()
 
bool requestFrameAsyncDecodingAtIndex (size_t index, SubsamplingLevel subsamplingLevel)
 
bool hasDecodingQueue () const
 
void stopAsyncDecodingQueue ()
 
bool isSizeAvailable ()
 
size_t frameCount ()
 
RepetitionCount repetitionCount ()
 
String filenameExtension ()
 
std::optional< IntPointhotSpot ()
 
IntSize size ()
 
IntSize sizeRespectingOrientation ()
 
Color singlePixelSolidColor ()
 
bool frameIsBeingDecodedAtIndex (size_t index)
 
bool frameIsCompleteAtIndex (size_t index)
 
bool frameHasAlphaAtIndex (size_t index)
 
bool frameHasImageAtIndex (size_t index)
 
bool frameHasValidNativeImageAtIndex (size_t index, SubsamplingLevel subsamplingLevel)
 
SubsamplingLevel frameSubsamplingLevelAtIndex (size_t index)
 
IntSize frameSizeAtIndex (size_t index, SubsamplingLevel subsamplingLevel=SubsamplingLevel::Default)
 
unsigned frameBytesAtIndex (size_t index, SubsamplingLevel subsamplingLevel=SubsamplingLevel::Default)
 
float frameDurationAtIndex (size_t index)
 
ImageOrientation frameOrientationAtIndex (size_t index)
 
NativeImagePtr frameImageAtIndex (size_t index, SubsamplingLevel=SubsamplingLevel::Default, const GraphicsContext *targetContext=nullptr)
 
SubsamplingLevel maximumSubsamplingLevel ()
 
SubsamplingLevel subsamplingLevelForScale (float)
 
NativeImagePtr createFrameImageAtIndex (size_t, SubsamplingLevel=SubsamplingLevel::Default)
 
 ImageSource (NativeImagePtr &&)
 
 ImageSource (Image *, AlphaOption=AlphaOption::Premultiplied, GammaAndColorProfileOption=GammaAndColorProfileOption::Applied)
 
 ~ImageSource ()
 
void destroyAllDecodedData ()
 
void destroyAllDecodedDataExcludeFrame (size_t excludeFrame)
 
void destroyDecodedDataBeforeFrame (size_t beforeFrame)
 
void clearFrameBufferCache (size_t)
 
void clear (SharedBuffer *data)
 
bool ensureDecoderAvailable (SharedBuffer *)
 
bool isDecoderAvailable () const
 
void setData (SharedBuffer *data, bool allDataReceived)
 
bool dataChanged (SharedBuffer *data, bool allDataReceived)
 
unsigned decodedSize () const
 
bool isAllDataReceived ()
 
bool isAsyncDecodingRequired ()
 
bool requestFrameAsyncDecodingAtIndex (size_t index, SubsamplingLevel subsamplingLevel)
 
bool hasDecodingQueue () const
 
void stopAsyncDecodingQueue ()
 
bool isSizeAvailable ()
 
size_t frameCount ()
 
RepetitionCount repetitionCount ()
 
String filenameExtension ()
 
std::optional< IntPointhotSpot ()
 
IntSize size ()
 
IntSize sizeRespectingOrientation ()
 
Color singlePixelSolidColor ()
 
bool frameIsBeingDecodedAtIndex (size_t index)
 
bool frameIsCompleteAtIndex (size_t index)
 
bool frameHasAlphaAtIndex (size_t index)
 
bool frameHasImageAtIndex (size_t index)
 
bool frameHasValidNativeImageAtIndex (size_t index, SubsamplingLevel subsamplingLevel)
 
SubsamplingLevel frameSubsamplingLevelAtIndex (size_t index)
 
IntSize frameSizeAtIndex (size_t index, SubsamplingLevel subsamplingLevel=SubsamplingLevel::Default)
 
unsigned frameBytesAtIndex (size_t index, SubsamplingLevel subsamplingLevel=SubsamplingLevel::Default)
 
float frameDurationAtIndex (size_t index)
 
ImageOrientation frameOrientationAtIndex (size_t index)
 
NativeImagePtr frameImageAtIndex (size_t index, SubsamplingLevel=SubsamplingLevel::Default, const GraphicsContext *targetContext=nullptr)
 
SubsamplingLevel maximumSubsamplingLevel ()
 
SubsamplingLevel subsamplingLevelForScale (float)
 
NativeImagePtr createFrameImageAtIndex (size_t, SubsamplingLevel=SubsamplingLevel::Default)
 

Friends

class BitmapImage
 

Constructor & Destructor Documentation

◆ ImageSource() [1/4]

WebCore::ImageSource::ImageSource ( NativeImagePtr &&  nativeImage)

◆ ImageSource() [2/4]

WebCore::ImageSource::ImageSource ( Image image,
AlphaOption  alphaOption = AlphaOption::Premultiplied,
GammaAndColorProfileOption  gammaAndColorProfileOption = GammaAndColorProfileOption::Applied 
)

◆ ~ImageSource() [1/2]

WebCore::ImageSource::~ImageSource ( )

◆ ImageSource() [3/4]

WebCore::ImageSource::ImageSource ( NativeImagePtr &&  )

◆ ImageSource() [4/4]

◆ ~ImageSource() [2/2]

WebCore::ImageSource::~ImageSource ( )

Member Function Documentation

◆ clear() [1/2]

void WebCore::ImageSource::clear ( SharedBuffer data)

◆ clear() [2/2]

void WebCore::ImageSource::clear ( SharedBuffer data)

◆ clearFrameBufferCache() [1/2]

void WebCore::ImageSource::clearFrameBufferCache ( size_t  clearBeforeFrame)

◆ clearFrameBufferCache() [2/2]

void WebCore::ImageSource::clearFrameBufferCache ( size_t  )

◆ createFrameImageAtIndex() [1/2]

NativeImagePtr WebCore::ImageSource::createFrameImageAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default 
)

◆ createFrameImageAtIndex() [2/2]

NativeImagePtr WebCore::ImageSource::createFrameImageAtIndex ( size_t  ,
SubsamplingLevel  = SubsamplingLevel::Default 
)

◆ dataChanged() [1/2]

bool WebCore::ImageSource::dataChanged ( SharedBuffer data,
bool  allDataReceived 
)

◆ dataChanged() [2/2]

bool WebCore::ImageSource::dataChanged ( SharedBuffer data,
bool  allDataReceived 
)

◆ decodedSize() [1/2]

unsigned WebCore::ImageSource::decodedSize ( ) const
inline

◆ decodedSize() [2/2]

unsigned WebCore::ImageSource::decodedSize ( ) const
inline

◆ destroyAllDecodedData() [1/2]

void WebCore::ImageSource::destroyAllDecodedData ( )
inline

◆ destroyAllDecodedData() [2/2]

void WebCore::ImageSource::destroyAllDecodedData ( )
inline

◆ destroyAllDecodedDataExcludeFrame() [1/2]

void WebCore::ImageSource::destroyAllDecodedDataExcludeFrame ( size_t  excludeFrame)
inline

◆ destroyAllDecodedDataExcludeFrame() [2/2]

void WebCore::ImageSource::destroyAllDecodedDataExcludeFrame ( size_t  excludeFrame)
inline

◆ destroyDecodedDataBeforeFrame() [1/2]

void WebCore::ImageSource::destroyDecodedDataBeforeFrame ( size_t  beforeFrame)
inline

◆ destroyDecodedDataBeforeFrame() [2/2]

void WebCore::ImageSource::destroyDecodedDataBeforeFrame ( size_t  beforeFrame)
inline

◆ ensureDecoderAvailable() [1/2]

bool WebCore::ImageSource::ensureDecoderAvailable ( SharedBuffer )

◆ ensureDecoderAvailable() [2/2]

bool WebCore::ImageSource::ensureDecoderAvailable ( SharedBuffer data)

◆ filenameExtension() [1/2]

String WebCore::ImageSource::filenameExtension ( )
inline

◆ filenameExtension() [2/2]

String WebCore::ImageSource::filenameExtension ( )
inline

◆ frameBytesAtIndex() [1/2]

unsigned WebCore::ImageSource::frameBytesAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default 
)
inline

◆ frameBytesAtIndex() [2/2]

unsigned WebCore::ImageSource::frameBytesAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default 
)
inline

◆ frameCount() [1/2]

size_t WebCore::ImageSource::frameCount ( )
inline

◆ frameCount() [2/2]

size_t WebCore::ImageSource::frameCount ( )
inline

◆ frameDurationAtIndex() [1/2]

float WebCore::ImageSource::frameDurationAtIndex ( size_t  index)
inline

◆ frameDurationAtIndex() [2/2]

float WebCore::ImageSource::frameDurationAtIndex ( size_t  index)
inline

◆ frameHasAlphaAtIndex() [1/2]

bool WebCore::ImageSource::frameHasAlphaAtIndex ( size_t  index)
inline

◆ frameHasAlphaAtIndex() [2/2]

bool WebCore::ImageSource::frameHasAlphaAtIndex ( size_t  index)
inline

◆ frameHasImageAtIndex() [1/2]

bool WebCore::ImageSource::frameHasImageAtIndex ( size_t  index)
inline

◆ frameHasImageAtIndex() [2/2]

bool WebCore::ImageSource::frameHasImageAtIndex ( size_t  index)
inline

◆ frameHasValidNativeImageAtIndex() [1/2]

bool WebCore::ImageSource::frameHasValidNativeImageAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel 
)
inline

◆ frameHasValidNativeImageAtIndex() [2/2]

bool WebCore::ImageSource::frameHasValidNativeImageAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel 
)
inline

◆ frameImageAtIndex() [1/2]

NativeImagePtr WebCore::ImageSource::frameImageAtIndex ( size_t  index,
SubsamplingLevel  = SubsamplingLevel::Default,
const GraphicsContext targetContext = nullptr 
)

◆ frameImageAtIndex() [2/2]

NativeImagePtr WebCore::ImageSource::frameImageAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default,
const GraphicsContext targetContext = nullptr 
)

◆ frameIsBeingDecodedAtIndex() [1/2]

bool WebCore::ImageSource::frameIsBeingDecodedAtIndex ( size_t  index)
inline

◆ frameIsBeingDecodedAtIndex() [2/2]

bool WebCore::ImageSource::frameIsBeingDecodedAtIndex ( size_t  index)
inline

◆ frameIsCompleteAtIndex() [1/2]

bool WebCore::ImageSource::frameIsCompleteAtIndex ( size_t  index)
inline

◆ frameIsCompleteAtIndex() [2/2]

bool WebCore::ImageSource::frameIsCompleteAtIndex ( size_t  index)
inline

◆ frameOrientationAtIndex() [1/2]

ImageOrientation WebCore::ImageSource::frameOrientationAtIndex ( size_t  index)
inline

◆ frameOrientationAtIndex() [2/2]

ImageOrientation WebCore::ImageSource::frameOrientationAtIndex ( size_t  index)
inline

◆ frameSizeAtIndex() [1/2]

IntSize WebCore::ImageSource::frameSizeAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default 
)
inline

◆ frameSizeAtIndex() [2/2]

IntSize WebCore::ImageSource::frameSizeAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel = SubsamplingLevel::Default 
)
inline

◆ frameSubsamplingLevelAtIndex() [1/2]

SubsamplingLevel WebCore::ImageSource::frameSubsamplingLevelAtIndex ( size_t  index)
inline

◆ frameSubsamplingLevelAtIndex() [2/2]

SubsamplingLevel WebCore::ImageSource::frameSubsamplingLevelAtIndex ( size_t  index)
inline

◆ hasDecodingQueue() [1/2]

bool WebCore::ImageSource::hasDecodingQueue ( ) const
inline

◆ hasDecodingQueue() [2/2]

bool WebCore::ImageSource::hasDecodingQueue ( ) const
inline

◆ hotSpot() [1/2]

std::optional<IntPoint> WebCore::ImageSource::hotSpot ( )
inline

◆ hotSpot() [2/2]

std::optional<IntPoint> WebCore::ImageSource::hotSpot ( )
inline

◆ isAllDataReceived() [1/2]

bool WebCore::ImageSource::isAllDataReceived ( )

◆ isAllDataReceived() [2/2]

bool WebCore::ImageSource::isAllDataReceived ( )

◆ isAsyncDecodingRequired() [1/2]

bool WebCore::ImageSource::isAsyncDecodingRequired ( )

◆ isAsyncDecodingRequired() [2/2]

bool WebCore::ImageSource::isAsyncDecodingRequired ( )

◆ isDecoderAvailable() [1/2]

bool WebCore::ImageSource::isDecoderAvailable ( ) const
inline

◆ isDecoderAvailable() [2/2]

bool WebCore::ImageSource::isDecoderAvailable ( ) const
inline

◆ isSizeAvailable() [1/2]

bool WebCore::ImageSource::isSizeAvailable ( )
inline

◆ isSizeAvailable() [2/2]

bool WebCore::ImageSource::isSizeAvailable ( )
inline

◆ maximumSubsamplingLevel() [1/2]

SubsamplingLevel WebCore::ImageSource::maximumSubsamplingLevel ( )

◆ maximumSubsamplingLevel() [2/2]

SubsamplingLevel WebCore::ImageSource::maximumSubsamplingLevel ( )

◆ repetitionCount() [1/2]

RepetitionCount WebCore::ImageSource::repetitionCount ( )
inline

◆ repetitionCount() [2/2]

RepetitionCount WebCore::ImageSource::repetitionCount ( )
inline

◆ requestFrameAsyncDecodingAtIndex() [1/2]

bool WebCore::ImageSource::requestFrameAsyncDecodingAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel 
)
inline

◆ requestFrameAsyncDecodingAtIndex() [2/2]

bool WebCore::ImageSource::requestFrameAsyncDecodingAtIndex ( size_t  index,
SubsamplingLevel  subsamplingLevel 
)
inline

◆ setData() [1/2]

void WebCore::ImageSource::setData ( SharedBuffer data,
bool  allDataReceived 
)

◆ setData() [2/2]

void WebCore::ImageSource::setData ( SharedBuffer data,
bool  allDataReceived 
)

◆ singlePixelSolidColor() [1/2]

Color WebCore::ImageSource::singlePixelSolidColor ( )
inline

◆ singlePixelSolidColor() [2/2]

Color WebCore::ImageSource::singlePixelSolidColor ( )
inline

◆ size() [1/2]

IntSize WebCore::ImageSource::size ( )
inline

◆ size() [2/2]

IntSize WebCore::ImageSource::size ( )
inline

◆ sizeRespectingOrientation() [1/2]

IntSize WebCore::ImageSource::sizeRespectingOrientation ( )
inline

◆ sizeRespectingOrientation() [2/2]

IntSize WebCore::ImageSource::sizeRespectingOrientation ( )
inline

◆ stopAsyncDecodingQueue() [1/2]

void WebCore::ImageSource::stopAsyncDecodingQueue ( )
inline

◆ stopAsyncDecodingQueue() [2/2]

void WebCore::ImageSource::stopAsyncDecodingQueue ( )
inline

◆ subsamplingLevelForScale() [1/2]

SubsamplingLevel WebCore::ImageSource::subsamplingLevelForScale ( float  scale)

◆ subsamplingLevelForScale() [2/2]

SubsamplingLevel WebCore::ImageSource::subsamplingLevelForScale ( float  )

Friends And Related Function Documentation

◆ BitmapImage

BitmapImage
friend

The documentation for this class was generated from the following files: