commit | 7fae3b52bb6f94d25fc82b01249b384d0e80df55 | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Wed Nov 13 12:04:18 2019 -0500 |
committer | Hal Canary <halcanary@google.com> | Thu Nov 14 16:24:02 2019 +0000 |
tree | a31186540ea8f5153028d3f3e5b55441f288bf1d | |
parent | 15462d250deb12b5043af90b2f46dc686f853b9f [diff] |
Populate new repository with content from skia/third_party/gif This is the third_party/gif/ directory from the Skia repository as of https://review.skia.org/254436 . Remove references to `third_party/gif/` from `#include` statements. Add SkGifCodec.h header exposing two functions. Rename SkGifCodec class SkLibGifCodec. Add README.md Make LICENSE file as clear as possible. Add libgifcodec.gni Change-Id: I13f2a4390a8e20e27ef7f980e0cc04365d89c23c Reviewed-on: https://skia-review.googlesource.com/c/libgifcodec/+/254420 Reviewed-by: Hal Canary <halcanary@google.com>
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.