blob: c72b8faa08fdbd8cd3940a6ea512ab55a5cb9812 [file] [log] [blame]
* Copyright 2023 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef SkJpegGainmap_codec_DEFINED
#define SkJpegGainmap_codec_DEFINED
#include "include/core/SkRefCnt.h" // IWYU pragma: keep
class SkData;
class SkStream;
struct SkGainmapInfo;
#include <memory>
* Implementation of onGetGainmap that detects Multi-Picture Format based gainmaps.
bool SkJpegGetMultiPictureGainmap(sk_sp<const SkData> decoderMpfMetadata,
SkStream* decoderStream,
SkGainmapInfo* outInfo,
std::unique_ptr<SkStream>* outGainmapImageStream);