chromium/third_party/blink/renderer/modules/webcodecs/image_decode_options.idl

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://github.com/WICG/web-codecs

dictionary ImageDecodeOptions {
  // The index of the frame to decode.
  [EnforceRange] unsigned long frameIndex = 0;

  // When |completeFramesOnly| is set to false, partial progressive frames will
  // be returned. When in this mode, decode() calls will resolve only once per
  // new partial image at |frameIndex| until the frame is complete.
  boolean completeFramesOnly = true;
};