diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/exr/examples/0b_read_meta.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/exr/examples/0b_read_meta.rs')
-rw-r--r-- | vendor/exr/examples/0b_read_meta.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/exr/examples/0b_read_meta.rs b/vendor/exr/examples/0b_read_meta.rs deleted file mode 100644 index a20527f..0000000 --- a/vendor/exr/examples/0b_read_meta.rs +++ /dev/null @@ -1,22 +0,0 @@ - - -// exr imports -extern crate exr; - -/// Print the custom meta data of a file, excluding technical encoding meta data. -/// Prints compression method and tile size, but not purely technical data like chunk count. -fn main() { - use exr::prelude::*; - - let meta_data = MetaData::read_from_file( - "generated_rgba_with_meta.exr", - false // do not throw an error for invalid or missing attributes, skipping them instead - ).expect("run example `1_write_rgba_with_metadata` to generate the required file"); - - for (layer_index, image_layer) in meta_data.headers.iter().enumerate() { - println!( - "custom meta data of layer #{}:\n{:#?}", - layer_index, image_layer.own_attributes - ); - } -}
\ No newline at end of file |