Commit 3f1ace7
fix: update bytes-per-pixel estimation to match EE Pixel accounting (#415)
* Include mask byte in bytes-per-pixel estimation
Updated the estimate_bytes_per_pixel function to include a mask byte in the bytes-per-pixel calculation. Fixes google/Xee#209
* Improve docstring and formatting in estimate_bytes_per_pixel
Refactor estimate_bytes_per_pixel function for clarity.
Co-authored-by: Ujaval Gandhi <ujaval@spatialthoughts.com>1 parent b8f1ce0 commit 3f1ace7
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | | - | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | | - | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
0 commit comments