diff options
Diffstat (limited to 'src/tiff.rs')
-rw-r--r-- | src/tiff.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tiff.rs b/src/tiff.rs index 67d4aec..d223961 100644 --- a/src/tiff.rs +++ b/src/tiff.rs @@ -149,7 +149,7 @@ pub fn to_large_labels(tiff_file_name: &str) -> Option<LargeLabelFormat> { } let width = width_opt.expect("Width Prechecked"); let height = height_opt.expect("Height Prechecked"); - let mut standard_buffer = vec![0u32; (width*height) as usize]; + let mut large_label_buffer = vec![0u32; (width*height) as usize]; let tiff_data = read(tiff); for x in 0..width { for y in 0..height { @@ -160,13 +160,13 @@ pub fn to_large_labels(tiff_file_name: &str) -> Option<LargeLabelFormat> { if (channels == 4) && (c == 3) { data = 0; } - standard_buffer[x + width*y] += data; + large_label_buffer[x + width*y] += data; } } } close(tiff); return Some(LargeLabelFormat { - buffer: standard_buffer, + buffer: large_label_buffer, width, height, }); |