Skip to content

Version 2.1.0

Latest

Choose a tag to compare

@starkdmi starkdmi released this 09 Oct 12:03
09ff980

Explicit video color conversion works again, and video with non-square pixels is sized by what it displays. No public API changes.

  • CompressionVideoSettings.color converts video again instead of throwing CompressionError.invalidVideoCodec, which it did from 1.3.0 through 2.0.0. Conversion runs through Apple's color-managed compositor: SDR gamut changes are color-matched, HDR to SDR is tone-mapped, and SDR to HLG/PQ is encoded in 10 bits. In 1.2.0, SMPTE-C and PAL were only relabelled and SDR to HDR came out 8-bit. On visionOS, which has no compositor, explicit color changes throw notSupportedOnVisionOS.
  • VideoInfo.isHDR describes the output rather than the source.
  • fit and scale use the displayed size of video with non-square pixels. fit bounds were ignored, scale produced output twice the requested size, and rotated anamorphic video through color, .imageComposition or the DCI-P3 conversion displayed squashed. Unresized sources keep their pixel aspect ratio losslessly.
  • ProRes HDR exports with an .image frame processor no longer fail.
  • Non-uniform Core Image resizes no longer squeeze the width of landscape frames, which affected .image and .imageComposition with scale.
  • DCI-P3 sources are converted only when the writer rejects their color. Other writer setup errors are reported as they are, rather than retried with a color conversion.
  • The README is back to its original shape; 1.x to 2.x migration notes moved to MIGRATION.md.

Full changelog