summaryrefslogtreecommitdiff
path: root/chromium/third_party/libgifcodec/SkGifCodec.h
blob: 532e7b1aecd68bee06a7ea3cf096fd5da90b12b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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