Skip to content

v0.5.0

Latest

Choose a tag to compare

@cwfitzgerald cwfitzgerald released this 19 Apr 20:51
· 5 commits to trunk since this release
v0.5.0
6aa3195
  • Added missing VkFormat variants to Format (#39).

  • Added shorthand Reader accessors: color_primaries(), transfer_function(), color_model(), is_alpha_premultiplied(), writer(), and basic_dfd() (#43).

  • Added DFD generation: dfd::Basic::from_format() and dfd::Basic::from_format_with() for constructing basic DFD blocks from a Format.

  • Moved all Data Format Descriptor (DFD) types into new submodule called dfd and renamed them to be more understandable.

    • DfdBlock -> dfd::Block
    • DfdHeader -> dfd::BlockHeader
    • DfdBlockBasic -> dfd::Basic
    • DfdBlockHeaderBasic -> dfd::BasicHeader

    The following types moved into the dfd module unchanged.

    • ChannelTypeQualifiers
    • ColorModel
    • ColorPrimaries
    • DataFormatFlags
    • SampleInformation
    • TransferFunction
  • Added dfd::Block serialization: serialized_length(), to_bytes(), to_vec(), parse()

  • dfd::Block is now an owned enum (Basic(Basic) | Unknown { header, data }) instead of a borrowed struct

  • dfd::BasicHeader merged into dfd::Basic, which now owns its sample_information: Vec<SampleInformation> instead of providing a lazy iterator. dfd::BasicHeader::LENGTH is now dfd::Basic::FIXED_LENGTH

  • Reader::dfd_blocks() returns &[dfd::Block] instead of impl Iterator<Item = dfd::Block<'_>>