blob: 1be4c0fa669ba79f852882375156584fa62949fe [file] [log] [blame]
* Copyright 2015 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef SkJpegInfo_DEFINED
#define SkJpegInfo_DEFINED
class SkData;
struct SkJFIFInfo {
int fWidth;
int fHeight;
enum Type {
} fType;
/** Returns true iff the data seems to be a valid JFIF JPEG image.
If so and if info is not NULL, populate info.
JPEG/JFIF References:
bool SkIsJFIF(const SkData* skdata, SkJFIFInfo* info);
#endif // SkJpegInfo_DEFINED