-
Added missing
VkFormatvariants toFormat(#39). -
Added shorthand
Readeraccessors:color_primaries(),transfer_function(),color_model(),is_alpha_premultiplied(),writer(), andbasic_dfd()(#43). -
Added DFD generation:
dfd::Basic::from_format()anddfd::Basic::from_format_with()for constructing basic DFD blocks from aFormat. -
Moved all Data Format Descriptor (DFD) types into new submodule called
dfdand renamed them to be more understandable.DfdBlock->dfd::BlockDfdHeader->dfd::BlockHeaderDfdBlockBasic->dfd::BasicDfdBlockHeaderBasic->dfd::BasicHeader
The following types moved into the
dfdmodule unchanged.ChannelTypeQualifiersColorModelColorPrimariesDataFormatFlagsSampleInformationTransferFunction
-
Added
dfd::Blockserialization:serialized_length(),to_bytes(),to_vec(),parse() -
dfd::Blockis now an owned enum (Basic(Basic)|Unknown { header, data }) instead of a borrowed struct -
dfd::BasicHeadermerged intodfd::Basic, which now owns itssample_information: Vec<SampleInformation>instead of providing a lazy iterator.dfd::BasicHeader::LENGTHis nowdfd::Basic::FIXED_LENGTH -
Reader::dfd_blocks()returns&[dfd::Block]instead ofimpl Iterator<Item = dfd::Block<'_>>