summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/ImageDecoder.h
AgeCommit message (Collapse)Author
2020-06-13LibGfx: Don't keep an unused GIF decoder plugin in failed ImageDecodersAndreas Kling
If we can't decode the input data, just have a null decoder. In this state we simply return a null bitmap and whatever empty values make sense for each API. This way, we don't try to decode the same thing over and over since it's not gonna work anyway. :^)
2020-06-10LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSizeAndreas Kling
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much better visual clue about what type of metric is being used.
2020-06-01LibGfx: Add ImageDecoder factory overload for ByteBuffersAndreas Kling
2020-05-09LibGfx: Add support for animated images to ImageDecoder{Plugin}Peter Nelson
Adds methods to determine whether an image is animated, how many times the animation loops, the number of frames, and to get individual frames. Implements stubs of these methods for PNGImageDecoderPlugin and GIFImageDecoderPlugin.
2020-04-25LibGfx: Add a sniff method to ImageDecoder and implement for GIF and PNGPeter Nelson
The sniff method is intended to be used for content sniffing. It should be a cheap test to rapidly rule out whether a candidate image can be successfully decoded. For the GIF and PNG implementations it simply attempts to decode the image header, returning true if successful and false if not.
2020-02-15LibGfx: Move a bunch of LogStream::operator<< to cpp filesAndreas Kling
2020-02-06LibGfx: Rename from LibDraw :^)Andreas Kling