ebb26e30f2
This reverts commit 3ab5b73649
.
Reason for revert: <optional> header is C++17 only
Original change's description:
> heif: Add AVIF type and AVIF sniffing
>
> AVIF is the image format based on the AV1 video codec. The
> container for AVIF is very similar to that of HEIF. Add type
> definitions for AVIF and sniffing code for detecting AVIF images.
>
> The underlying android platform's HEIF decoder implementation will
> also support AVIF decoding.
>
> Bug: b/141654151
> Change-Id: I7e31f4cedf0bffb8920ddf880a26601e48d0e833
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/330059
> Reviewed-by: Leon Scroggins <scroggo@google.com>
> Reviewed-by: Derek Sollenberger <djsollen@google.com>
> Reviewed-by: Chong Zhang <chz@google.com>
> Commit-Queue: Leon Scroggins <scroggo@google.com>
TBR=djsollen@google.com,scroggo@google.com,chz@google.com,vigneshv@google.com
Change-Id: I9c9cd00af1a41bffa37725f39afc9bc0e504d616
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: b/141654151
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/331336
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
35 lines
545 B
C
35 lines
545 B
C
/*
|
|
* 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 SkEncodedImageFormat_DEFINED
|
|
#define SkEncodedImageFormat_DEFINED
|
|
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* Enum describing format of encoded data.
|
|
*/
|
|
enum class SkEncodedImageFormat {
|
|
#ifdef SK_BUILD_FOR_GOOGLE3
|
|
kUnknown,
|
|
#endif
|
|
kBMP,
|
|
kGIF,
|
|
kICO,
|
|
kJPEG,
|
|
kPNG,
|
|
kWBMP,
|
|
kWEBP,
|
|
kPKM,
|
|
kKTX,
|
|
kASTC,
|
|
kDNG,
|
|
kHEIF,
|
|
};
|
|
|
|
#endif // SkEncodedImageFormat_DEFINED
|