Clone this repo:

Branches

  1. d06d2a6 Stop using Skia's custom min function by Brian Osman · 13 days ago master
  2. 38d9c73 don't include unused header by Mike Klein · 10 weeks ago
  3. 3815a03 Add README.chromium file by Hal Canary · 3 months ago
  4. ed218be [minor] Changes to make Android Common Typos checker happy. by Hal Canary · 3 months ago
  5. c002ec5 [minor] Fix typo in comment by Hal Canary · 3 months ago

LIBGIF CODEC FOR SKIA

libgifcodec is based on a fork of libgif made by Chromium. It was copied into Skia with https://codereview.chromium.org/2045293002, as https://skia.googlesource.com/skia/+/19b91531e912283d237435d94516575b28713cba.

The header file SkGifCodec.h exposes two functions:

  • bool SkGifCodec::IsGif(const void*, size_t);

  • std::unique_ptr<SkCodec> SkGifCodec::MakeFromStream(std::unique_ptr<SkStream>, SkCodec::Result*);

Which can be used by Skia's SkCodec::MakeFromStream to implement GIF Decoding.

See LICENSE.md for the license information.