private void OnImportFrameMetadata(T texture, int frame, Metadata.MetadataReader metadata, IList <Image> images, Image referenceImage, int mipmapsCount) { GenericDictionary formatSpecific = new GenericDictionary(); InteropUtils.ReadFrom(metadata, formatSpecific); TextureFormat segment = CreateFrameForGeneralTexture(texture, frame, formatSpecific, images, referenceImage, mipmapsCount); segment.FormatSpecificData = formatSpecific; }
private T OnImportGeneralTextureMetadata(Metadata.MetadataReader metadata) { GenericDictionary formatSpecific = new GenericDictionary(); InteropUtils.ReadFrom(metadata, formatSpecific); T result = CreateGeneralTextureFromFormatSpecificData(formatSpecific); result.FormatSpecificData = formatSpecific; return(result); }