You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
613 B
21 lines
613 B
// Copyright 2019 Google LLC.
|
|
// Use of this source code is governed by the BSD-3-Clause license that can be
|
|
// found in the LICENSE.md file.
|
|
|
|
#ifndef SkGifCodec_DEFINED
|
|
#define SkGifCodec_DEFINED
|
|
|
|
#include "include/codec/SkCodec.h"
|
|
|
|
namespace SkGifCodec {
|
|
|
|
// Returns true if the span of bytes appears to be GIF encoded data.
|
|
bool IsGif(const void*, size_t);
|
|
|
|
// Assumes IsGif was called and returned true.
|
|
// Reads enough of the stream to determine the image format.
|
|
std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, SkCodec::Result*);
|
|
|
|
} // namespace SkGifCodec
|
|
#endif // SkGifCodec_DEFINED
|