Skip to content

Plugin ABI v1.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Aug 12:53

Added new API: DecodeStaticRasterScaled() for thumbnails and previews

    /* --- optional scaled decode for thumbnails/previews (ABI 1.2.0) ---
     *
     * May be NULL; the host then decodes full size and downscales itself. The
     * box is an upper bound, not an exact size: return whatever the format
     * decodes to cheaply (JPEG DCT scales, an embedded thumbnail) so long as
     * neither side exceeds it, keep the aspect ratio, and report the real size
     * in outBuffer. A source already inside the box comes back unscaled.
     * Ownership matches DecodeStaticRaster: the host frees via FreePixelBuffer. */
    IGStatus (*DecodeStaticRasterScaled)(IGStringRef filePath, int32_t frameIndex,
                                         int32_t maxWidth, int32_t maxHeight,
                                         IGPixelBuffer* outBuffer,
                                         void* cancellation);

Full Changelog: v1.1.1...v1.2.0