2023-09-22T17:04:46,680 Created temporary directory: /tmp/pip-build-tracker-rlxjix5c 2023-09-22T17:04:46,681 Initialized build tracking at /tmp/pip-build-tracker-rlxjix5c 2023-09-22T17:04:46,681 Created build tracker: /tmp/pip-build-tracker-rlxjix5c 2023-09-22T17:04:46,682 Entered build tracker: /tmp/pip-build-tracker-rlxjix5c 2023-09-22T17:04:46,682 Created temporary directory: /tmp/pip-wheel-23ndquqo 2023-09-22T17:04:46,685 Created temporary directory: /tmp/pip-ephem-wheel-cache-la6ox22f 2023-09-22T17:04:46,709 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-09-22T17:04:46,712 2 location(s) to search for versions of jpegandentropyencoding: 2023-09-22T17:04:46,712 * https://pypi.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,712 * https://www.piwheels.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,713 Fetching project page and analyzing links: https://pypi.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,714 Getting page https://pypi.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,715 Found index url https://pypi.org/simple/ 2023-09-22T17:04:46,871 Fetched page https://pypi.org/simple/jpegandentropyencoding/ as application/vnd.pypi.simple.v1+json 2023-09-22T17:04:46,873 Skipping link: No binaries permitted for jpegandentropyencoding: https://files.pythonhosted.org/packages/7b/2e/597c7a69f2db93b9cbcff3959b678a7a7a6d019cd58411f663a533c60f5e/JPEGAndEntropyEncoding-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (from https://pypi.org/simple/jpegandentropyencoding/) (requires-python:>=3.7) 2023-09-22T17:04:46,874 Found link https://files.pythonhosted.org/packages/fc/50/a13cfa6e5137a71f021bea5903c9f5ce504a1d8afd9779b51beec5867b83/JPEGAndEntropyEncoding-0.1.0.tar.gz (from https://pypi.org/simple/jpegandentropyencoding/) (requires-python:>=3.7), version: 0.1.0 2023-09-22T17:04:46,875 Fetching project page and analyzing links: https://www.piwheels.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,876 Getting page https://www.piwheels.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:46,878 Found index url https://www.piwheels.org/simple/ 2023-09-22T17:04:47,062 Fetched page https://www.piwheels.org/simple/jpegandentropyencoding/ as text/html 2023-09-22T17:04:47,065 Skipping link: No binaries permitted for jpegandentropyencoding: https://www.piwheels.org/simple/jpegandentropyencoding/JPEGAndEntropyEncoding-0.1.0-cp39-cp39-linux_armv7l.whl#sha256=294116cfa477a90fdefeb26ad1e784982f3d4953b16d877e73d9b74d48de557e (from https://www.piwheels.org/simple/jpegandentropyencoding/) (requires-python:>=3.7) 2023-09-22T17:04:47,065 Skipping link: No binaries permitted for jpegandentropyencoding: https://www.piwheels.org/simple/jpegandentropyencoding/JPEGAndEntropyEncoding-0.1.0-cp39-cp39-linux_armv6l.whl#sha256=294116cfa477a90fdefeb26ad1e784982f3d4953b16d877e73d9b74d48de557e (from https://www.piwheels.org/simple/jpegandentropyencoding/) (requires-python:>=3.7) 2023-09-22T17:04:47,066 Skipping link: No binaries permitted for jpegandentropyencoding: https://www.piwheels.org/simple/jpegandentropyencoding/JPEGAndEntropyEncoding-0.1.0-cp37-cp37m-linux_armv7l.whl#sha256=0f79220993ad8b21585f156ebfe48d1c4e00754d1e85ae43d3d2873b6589eac0 (from https://www.piwheels.org/simple/jpegandentropyencoding/) (requires-python:>=3.7) 2023-09-22T17:04:47,067 Skipping link: No binaries permitted for jpegandentropyencoding: https://www.piwheels.org/simple/jpegandentropyencoding/JPEGAndEntropyEncoding-0.1.0-cp37-cp37m-linux_armv6l.whl#sha256=0f79220993ad8b21585f156ebfe48d1c4e00754d1e85ae43d3d2873b6589eac0 (from https://www.piwheels.org/simple/jpegandentropyencoding/) (requires-python:>=3.7) 2023-09-22T17:04:47,067 Skipping link: not a file: https://www.piwheels.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:47,068 Skipping link: not a file: https://pypi.org/simple/jpegandentropyencoding/ 2023-09-22T17:04:47,086 Given no hashes to check 1 links for project 'jpegandentropyencoding': discarding no candidates 2023-09-22T17:04:47,104 Collecting jpegandentropyencoding==0.1.0 2023-09-22T17:04:47,107 Created temporary directory: /tmp/pip-unpack-nq8n65t0 2023-09-22T17:04:47,242 Downloading JPEGAndEntropyEncoding-0.1.0.tar.gz (15 kB) 2023-09-22T17:04:47,280 Added jpegandentropyencoding==0.1.0 from https://files.pythonhosted.org/packages/fc/50/a13cfa6e5137a71f021bea5903c9f5ce504a1d8afd9779b51beec5867b83/JPEGAndEntropyEncoding-0.1.0.tar.gz to build tracker '/tmp/pip-build-tracker-rlxjix5c' 2023-09-22T17:04:47,283 Created temporary directory: /tmp/pip-build-env-96ne0elk 2023-09-22T17:04:47,288 Installing build dependencies: started 2023-09-22T17:04:47,289 Running command pip subprocess to install build dependencies 2023-09-22T17:04:48,700 Using pip 23.2.1 from /usr/local/lib/python3.11/dist-packages/pip (python 3.11) 2023-09-22T17:04:49,253 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-09-22T17:04:50,559 Collecting maturin<0.15,>=0.14 2023-09-22T17:04:50,806 Using cached maturin-0.14.17-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (10.0 MB) 2023-09-22T17:04:54,526 Installing collected packages: maturin 2023-09-22T17:04:55,562 Successfully installed maturin-0.14.17 2023-09-22T17:04:56,557 Installing build dependencies: finished with status 'done' 2023-09-22T17:04:56,561 Getting requirements to build wheel: started 2023-09-22T17:04:56,562 Running command Getting requirements to build wheel 2023-09-22T17:04:56,766 Getting requirements to build wheel: finished with status 'done' 2023-09-22T17:04:56,770 Created temporary directory: /tmp/pip-modern-metadata-l1bm4_6p 2023-09-22T17:04:56,774 Preparing metadata (pyproject.toml): started 2023-09-22T17:04:56,776 Running command Preparing metadata (pyproject.toml) 2023-09-22T17:04:58,123 Downloading crates ... 2023-09-22T17:04:58,628 Downloaded libc v0.2.140 2023-09-22T17:04:59,183 🔗 Found pyo3 bindings 2023-09-22T17:04:59,502 🐍 Found CPython 3.11 at /usr/bin/python3 2023-09-22T17:04:59,503 📡 Using build options features from pyproject.toml 2023-09-22T17:04:59,512 JPEGAndEntropyEncoding-0.1.0.dist-info 2023-09-22T17:04:59,513 Checking for Rust toolchain.... 2023-09-22T17:04:59,513 Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-l1bm4_6p --interpreter /usr/bin/python3` 2023-09-22T17:04:59,536 Preparing metadata (pyproject.toml): finished with status 'done' 2023-09-22T17:04:59,541 Source in /tmp/pip-wheel-23ndquqo/jpegandentropyencoding_c039a2f6c65f4780a0ed7ad7d8f710c9 has version 0.1.0, which satisfies requirement jpegandentropyencoding==0.1.0 from https://files.pythonhosted.org/packages/fc/50/a13cfa6e5137a71f021bea5903c9f5ce504a1d8afd9779b51beec5867b83/JPEGAndEntropyEncoding-0.1.0.tar.gz 2023-09-22T17:04:59,542 Removed jpegandentropyencoding==0.1.0 from https://files.pythonhosted.org/packages/fc/50/a13cfa6e5137a71f021bea5903c9f5ce504a1d8afd9779b51beec5867b83/JPEGAndEntropyEncoding-0.1.0.tar.gz from build tracker '/tmp/pip-build-tracker-rlxjix5c' 2023-09-22T17:04:59,546 Created temporary directory: /tmp/pip-unpack-f9p5eyfy 2023-09-22T17:04:59,547 Created temporary directory: /tmp/pip-unpack-xgcmrtyk 2023-09-22T17:04:59,549 Building wheels for collected packages: jpegandentropyencoding 2023-09-22T17:04:59,554 Created temporary directory: /tmp/pip-wheel-onjrz_cv 2023-09-22T17:04:59,554 Destination directory: /tmp/pip-wheel-onjrz_cv 2023-09-22T17:04:59,556 Building wheel for jpegandentropyencoding (pyproject.toml): started 2023-09-22T17:04:59,558 Running command Building wheel for jpegandentropyencoding (pyproject.toml) 2023-09-22T17:04:59,730 Running `maturin pep517 build-wheel -i /usr/bin/python3 --compatibility off` 2023-09-22T17:05:00,159 🔗 Found pyo3 bindings 2023-09-22T17:05:00,437 🐍 Found CPython 3.11 at /usr/bin/python3 2023-09-22T17:05:00,438 📡 Using build options features from pyproject.toml 2023-09-22T17:05:00,910 Compiling target-lexicon v0.12.6 2023-09-22T17:05:00,911 Compiling libc v0.2.140 2023-09-22T17:05:00,911 Compiling autocfg v1.1.0 2023-09-22T17:05:00,912 Compiling cfg-if v1.0.0 2023-09-22T17:05:02,041 Compiling once_cell v1.17.1 2023-09-22T17:05:04,098 Compiling proc-macro2 v1.0.51 2023-09-22T17:05:05,089 Compiling unicode-ident v1.0.8 2023-09-22T17:05:05,544 Compiling quote v1.0.23 2023-09-22T17:05:07,472 Compiling syn v1.0.109 2023-09-22T17:05:09,232 Compiling pyo3-build-config v0.18.1 2023-09-22T17:05:09,502 Compiling lock_api v0.4.9 2023-09-22T17:05:10,804 Compiling parking_lot_core v0.9.7 2023-09-22T17:05:18,033 Compiling getrandom v0.2.8 2023-09-22T17:05:18,459 Compiling memoffset v0.8.0 2023-09-22T17:05:19,727 Compiling smallvec v1.10.0 2023-09-22T17:05:19,758 Compiling scopeguard v1.1.0 2023-09-22T17:05:22,503 Compiling rand_core v0.6.4 2023-09-22T17:05:24,358 Compiling ppv-lite86 v0.2.17 2023-09-22T17:05:25,359 Compiling parking_lot v0.12.1 2023-09-22T17:05:27,552 Compiling rand_chacha v0.3.1 2023-09-22T17:05:30,628 Compiling pyo3-ffi v0.18.1 2023-09-22T17:05:32,507 Compiling pyo3 v0.18.1 2023-09-22T17:05:34,399 Compiling unindent v0.1.11 2023-09-22T17:05:36,378 Compiling indoc v1.0.9 2023-09-22T17:05:36,936 Compiling rand v0.8.5 2023-09-22T17:05:47,484 Compiling pyo3-macros-backend v0.18.1 2023-09-22T17:06:08,079 Compiling pyo3-macros v0.18.1 2023-09-22T17:06:41,379 Compiling JPEGAndEntropyEncoding v0.1.0 (/tmp/pip-wheel-23ndquqo/jpegandentropyencoding_c039a2f6c65f4780a0ed7ad7d8f710c9) 2023-09-22T17:06:44,668 Finished release [optimized] target(s) in 1m 44s 2023-09-22T17:06:45,640 📦 Built wheel for CPython 3.11 to /tmp/pip-wheel-23ndquqo/jpegandentropyencoding_c039a2f6c65f4780a0ed7ad7d8f710c9/target/wheels/JPEGAndEntropyEncoding-0.1.0-cp311-cp311-linux_armv7l.whl 2023-09-22T17:06:45,643 warning: unused import: `env` 2023-09-22T17:06:45,643 --> src/arithmetic_encoding.rs:7:81 2023-09-22T17:06:45,644 | 2023-09-22T17:06:45,645 7 | use std::{collections::{HashMap},hash::Hash, fmt::Debug,fs::File,io::prelude::*,env}; 2023-09-22T17:06:45,651 | ^^^ 2023-09-22T17:06:45,659 | 2023-09-22T17:06:45,661 = note: `#[warn(unused_imports)]` on by default 2023-09-22T17:06:45,663 warning: unused import: `rand::Rng` 2023-09-22T17:06:45,664 --> src/arithmetic_encoding.rs:8:5 2023-09-22T17:06:45,664 | 2023-09-22T17:06:45,665 8 | use rand::Rng; 2023-09-22T17:06:45,666 | ^^^^^^^^^ 2023-09-22T17:06:45,669 warning: unused variable: `Cb` 2023-09-22T17:06:45,670 --> src/colorspace_transforms.rs:23:26 2023-09-22T17:06:45,672 | 2023-09-22T17:06:45,672 23 | fn ycbcr_to_r(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,673 | ^^ help: if this is intentional, prefix it with an underscore: `_Cb` 2023-09-22T17:06:45,674 | 2023-09-22T17:06:45,675 = note: `#[warn(unused_variables)]` on by default 2023-09-22T17:06:45,677 warning: unused variable: `Cr` 2023-09-22T17:06:45,678 --> src/colorspace_transforms.rs:31:38 2023-09-22T17:06:45,678 | 2023-09-22T17:06:45,679 31 | fn ycbcr_to_b(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,680 | ^^ help: if this is intentional, prefix it with an underscore: `_Cr` 2023-09-22T17:06:45,682 warning: unused variable: `x` 2023-09-22T17:06:45,683 --> src/arithmetic_encoding.rs:98:48 2023-09-22T17:06:45,683 | 2023-09-22T17:06:45,684 98 | let denom = freq_vec.iter().fold(0,|s,(x,y)| s + y); 2023-09-22T17:06:45,685 | ^ help: if this is intentional, prefix it with an underscore: `_x` 2023-09-22T17:06:45,687 warning: function `ycbcr_to_r` is never used 2023-09-22T17:06:45,688 --> src/colorspace_transforms.rs:23:4 2023-09-22T17:06:45,689 | 2023-09-22T17:06:45,689 23 | fn ycbcr_to_r(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,690 | ^^^^^^^^^^ 2023-09-22T17:06:45,691 | 2023-09-22T17:06:45,692 = note: `#[warn(dead_code)]` on by default 2023-09-22T17:06:45,693 warning: function `ycbcr_to_g` is never used 2023-09-22T17:06:45,693 --> src/colorspace_transforms.rs:27:4 2023-09-22T17:06:45,694 | 2023-09-22T17:06:45,694 27 | fn ycbcr_to_g(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,694 | ^^^^^^^^^^ 2023-09-22T17:06:45,695 warning: function `ycbcr_to_b` is never used 2023-09-22T17:06:45,696 --> src/colorspace_transforms.rs:31:4 2023-09-22T17:06:45,696 | 2023-09-22T17:06:45,696 31 | fn ycbcr_to_b(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,697 | ^^^^^^^^^^ 2023-09-22T17:06:45,698 warning: function `ycbcr_to_rgb` is never used 2023-09-22T17:06:45,698 --> src/colorspace_transforms.rs:35:8 2023-09-22T17:06:45,698 | 2023-09-22T17:06:45,699 35 | pub fn ycbcr_to_rgb(Y : usize, Cb : usize, Cr : usize) -> (usize,usize,usize){ 2023-09-22T17:06:45,699 | ^^^^^^^^^^^^ 2023-09-22T17:06:45,700 warning: function `alpha` is never used 2023-09-22T17:06:45,700 --> src/dct.rs:4:4 2023-09-22T17:06:45,701 | 2023-09-22T17:06:45,701 4 | fn alpha(i : f64) -> f64{ 2023-09-22T17:06:45,701 | ^^^^^ 2023-09-22T17:06:45,702 warning: function `dct_coeff` is never used 2023-09-22T17:06:45,703 --> src/dct.rs:9:4 2023-09-22T17:06:45,703 | 2023-09-22T17:06:45,704 9 | fn dct_coeff(block : &Vec>, u : f64, v : f64) -> f64{ 2023-09-22T17:06:45,704 | ^^^^^^^^^ 2023-09-22T17:06:45,705 warning: function `dct_block` is never used 2023-09-22T17:06:45,706 --> src/dct.rs:20:8 2023-09-22T17:06:45,706 | 2023-09-22T17:06:45,707 20 | pub fn dct_block(block : &Vec>) -> Vec>{ 2023-09-22T17:06:45,707 | ^^^^^^^^^ 2023-09-22T17:06:45,708 warning: function `inv_dct_coeff` is never used 2023-09-22T17:06:45,709 --> src/dct.rs:31:4 2023-09-22T17:06:45,709 | 2023-09-22T17:06:45,710 31 | fn inv_dct_coeff(block : &Vec>, x : usize, y : usize) -> f64{ 2023-09-22T17:06:45,710 | ^^^^^^^^^^^^^ 2023-09-22T17:06:45,711 warning: function `inv_dct_block` is never used 2023-09-22T17:06:45,712 --> src/dct.rs:42:4 2023-09-22T17:06:45,713 | 2023-09-22T17:06:45,713 42 | fn inv_dct_block(block : &Vec>) -> Vec>{ 2023-09-22T17:06:45,714 | ^^^^^^^^^^^^^ 2023-09-22T17:06:45,715 warning: function `down444` is never used 2023-09-22T17:06:45,715 --> src/downsampling.rs:3:8 2023-09-22T17:06:45,716 | 2023-09-22T17:06:45,716 3 | pub fn down444(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,717 | ^^^^^^^ 2023-09-22T17:06:45,718 warning: function `down422` is never used 2023-09-22T17:06:45,718 --> src/downsampling.rs:18:8 2023-09-22T17:06:45,719 | 2023-09-22T17:06:45,719 18 | pub fn down422(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,720 | ^^^^^^^ 2023-09-22T17:06:45,721 warning: function `down420` is never used 2023-09-22T17:06:45,721 --> src/downsampling.rs:46:8 2023-09-22T17:06:45,722 | 2023-09-22T17:06:45,722 46 | pub fn down420(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,722 | ^^^^^^^ 2023-09-22T17:06:45,724 warning: function `up444` is never used 2023-09-22T17:06:45,724 --> src/downsampling.rs:73:8 2023-09-22T17:06:45,725 | 2023-09-22T17:06:45,725 73 | pub fn up444(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,725 | ^^^^^ 2023-09-22T17:06:45,727 warning: function `up422` is never used 2023-09-22T17:06:45,727 --> src/downsampling.rs:89:8 2023-09-22T17:06:45,728 | 2023-09-22T17:06:45,728 89 | pub fn up422(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,729 | ^^^^^ 2023-09-22T17:06:45,730 warning: function `up420` is never used 2023-09-22T17:06:45,731 --> src/downsampling.rs:111:8 2023-09-22T17:06:45,731 | 2023-09-22T17:06:45,732 111 | pub fn up420(image : &Vec>>) -> Vec>>{ 2023-09-22T17:06:45,732 | ^^^^^ 2023-09-22T17:06:45,733 warning: function `quantization_block` is never used 2023-09-22T17:06:45,734 --> src/quantization.rs:4:4 2023-09-22T17:06:45,734 | 2023-09-22T17:06:45,734 4 | fn quantization_block(block : &Vec>, q_matrix : &Vec>) -> Vec>{ 2023-09-22T17:06:45,735 | ^^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,736 warning: function `gen_quantize_lumi_matrix` is never used 2023-09-22T17:06:45,736 --> src/quantization.rs:17:4 2023-09-22T17:06:45,736 | 2023-09-22T17:06:45,737 17 | fn gen_quantize_lumi_matrix(Qf : f64) -> Vec>{ 2023-09-22T17:06:45,737 | ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,738 warning: function `gen_quantize_chroma_matrix` is never used 2023-09-22T17:06:45,738 --> src/quantization.rs:43:4 2023-09-22T17:06:45,739 | 2023-09-22T17:06:45,739 43 | fn gen_quantize_chroma_matrix(Qf : f64) -> Vec>{ 2023-09-22T17:06:45,739 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,740 warning: constant `PRECISION` is never used 2023-09-22T17:06:45,741 --> src/arithmetic_encoding.rs:1:7 2023-09-22T17:06:45,741 | 2023-09-22T17:06:45,741 1 | const PRECISION : u64 = 32; 2023-09-22T17:06:45,742 | ^^^^^^^^^ 2023-09-22T17:06:45,743 warning: constant `WHOLE` is never used 2023-09-22T17:06:45,743 --> src/arithmetic_encoding.rs:2:7 2023-09-22T17:06:45,743 | 2023-09-22T17:06:45,744 2 | const WHOLE : u64 = (2u64).pow(PRECISION as u32); 2023-09-22T17:06:45,744 | ^^^^^ 2023-09-22T17:06:45,745 warning: constant `HALF` is never used 2023-09-22T17:06:45,746 --> src/arithmetic_encoding.rs:3:7 2023-09-22T17:06:45,746 | 2023-09-22T17:06:45,747 3 | const HALF : u64 = WHOLE / 2; 2023-09-22T17:06:45,748 | ^^^^ 2023-09-22T17:06:45,749 warning: constant `QUARTER` is never used 2023-09-22T17:06:45,750 --> src/arithmetic_encoding.rs:4:7 2023-09-22T17:06:45,750 | 2023-09-22T17:06:45,751 4 | const QUARTER : u64 = WHOLE / 4; 2023-09-22T17:06:45,751 | ^^^^^^^ 2023-09-22T17:06:45,753 warning: struct `ArithEncoder` is never constructed 2023-09-22T17:06:45,753 --> src/arithmetic_encoding.rs:12:12 2023-09-22T17:06:45,754 | 2023-09-22T17:06:45,754 12 | pub struct ArithEncoder{ 2023-09-22T17:06:45,755 | ^^^^^^^^^^^^ 2023-09-22T17:06:45,756 warning: multiple associated items are never used 2023-09-22T17:06:45,757 --> src/arithmetic_encoding.rs:20:12 2023-09-22T17:06:45,757 | 2023-09-22T17:06:45,757 19 | impl ArithEncoder { 2023-09-22T17:06:45,758 | -------------------------------------------------- associated items in this implementation 2023-09-22T17:06:45,758 20 | pub fn new(message : Vec, eof : T) -> ArithEncoder{ 2023-09-22T17:06:45,759 | ^^^ 2023-09-22T17:06:45,759 ... 2023-09-22T17:06:45,760 26 | pub fn set_new_message(&mut self, message : Vec, eof : T) { 2023-09-22T17:06:45,760 | ^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,760 ... 2023-09-22T17:06:45,761 34 | pub fn encode(&mut self){ 2023-09-22T17:06:45,761 | ^^^^^^ 2023-09-22T17:06:45,762 ... 2023-09-22T17:06:45,762 38 | pub fn decode(&mut self) -> Vec{ 2023-09-22T17:06:45,762 | ^^^^^^ 2023-09-22T17:06:45,763 ... 2023-09-22T17:06:45,763 44 | pub fn write_to_bin(&mut self, path : &str){ 2023-09-22T17:06:45,764 | ^^^^^^^^^^^^ 2023-09-22T17:06:45,764 ... 2023-09-22T17:06:45,764 50 | pub fn load_from_bin(&mut self, path : &str){ 2023-09-22T17:06:45,765 | ^^^^^^^^^^^^^ 2023-09-22T17:06:45,765 ... 2023-09-22T17:06:45,766 59 | pub fn message_to_bytes(&mut self) -> Vec{ 2023-09-22T17:06:45,766 | ^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,767 ... 2023-09-22T17:06:45,767 69 | pub fn message_from_bytes(&mut self, bytes : &Vec) -> Vec{ 2023-09-22T17:06:45,768 | ^^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,769 warning: struct `Model` is never constructed 2023-09-22T17:06:45,769 --> src/arithmetic_encoding.rs:87:12 2023-09-22T17:06:45,770 | 2023-09-22T17:06:45,770 87 | pub struct Model{ 2023-09-22T17:06:45,770 | ^^^^^ 2023-09-22T17:06:45,771 warning: associated items `new`, `get_prob`, and `get_sym` are never used 2023-09-22T17:06:45,772 --> src/arithmetic_encoding.rs:95:12 2023-09-22T17:06:45,772 | 2023-09-22T17:06:45,772 94 | impl Model{ 2023-09-22T17:06:45,773 | ------------------------------------------- associated items in this implementation 2023-09-22T17:06:45,773 95 | pub fn new(freq_vec : &Vec<(T,u64)>, end : T) -> Model{ 2023-09-22T17:06:45,773 | ^^^ 2023-09-22T17:06:45,774 ... 2023-09-22T17:06:45,774 112 | pub fn get_prob(&self, sym : &T) -> (u64,u64,u64){ 2023-09-22T17:06:45,774 | ^^^^^^^^ 2023-09-22T17:06:45,775 ... 2023-09-22T17:06:45,775 116 | pub fn get_sym(&self, low : u64, range : u64, value : u64) -> T{ 2023-09-22T17:06:45,775 | ^^^^^^^ 2023-09-22T17:06:45,777 warning: function `encode` is never used 2023-09-22T17:06:45,777 --> src/arithmetic_encoding.rs:131:8 2023-09-22T17:06:45,777 | 2023-09-22T17:06:45,778 131 | pub fn encode(model : &Model, message : &Vec) -> Vec{ 2023-09-22T17:06:45,778 | ^^^^^^ 2023-09-22T17:06:45,779 warning: function `output_bits_and_pending` is never used 2023-09-22T17:06:45,779 --> src/arithmetic_encoding.rs:173:4 2023-09-22T17:06:45,780 | 2023-09-22T17:06:45,780 173 | fn output_bits_and_pending(output : &mut Vec, bit : u8, pending : u32) { 2023-09-22T17:06:45,780 | ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,782 warning: function `decode` is never used 2023-09-22T17:06:45,782 --> src/arithmetic_encoding.rs:183:8 2023-09-22T17:06:45,783 | 2023-09-22T17:06:45,783 183 | pub fn decode(message : &Vec, model : &Model) -> Vec{ 2023-09-22T17:06:45,784 | ^^^^^^ 2023-09-22T17:06:45,785 warning: function `calculate_entropy` is never used 2023-09-22T17:06:45,785 --> src/arithmetic_encoding.rs:241:8 2023-09-22T17:06:45,786 | 2023-09-22T17:06:45,786 241 | pub fn calculate_entropy(message : &Vec, model : &Model) -> f64{ 2023-09-22T17:06:45,787 | ^^^^^^^^^^^^^^^^^ 2023-09-22T17:06:45,788 warning: crate `JPEGAndEntropyEncoding` should have a snake case name 2023-09-22T17:06:45,788 | 2023-09-22T17:06:45,789 = help: convert the identifier to snake case: `jpegand_entropy_encoding` 2023-09-22T17:06:45,789 = note: `#[warn(non_snake_case)]` on by default 2023-09-22T17:06:45,791 warning: function `JPEGAndEntropyEncoding` should have a snake case name 2023-09-22T17:06:45,791 --> src/lib.rs:16:4 2023-09-22T17:06:45,792 | 2023-09-22T17:06:45,792 16 | fn JPEGAndEntropyEncoding(_py: Python, m: &PyModule) -> PyResult<()> { 2023-09-22T17:06:45,792 | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jpegand_entropy_encoding` 2023-09-22T17:06:45,794 warning: module `JPEGAndEntropyEncoding` should have a snake case name 2023-09-22T17:06:45,794 --> src/lib.rs:16:4 2023-09-22T17:06:45,795 | 2023-09-22T17:06:45,795 16 | fn JPEGAndEntropyEncoding(_py: Python, m: &PyModule) -> PyResult<()> { 2023-09-22T17:06:45,796 | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jpegand_entropy_encoding` 2023-09-22T17:06:45,797 warning: variable `R` should have a snake case name 2023-09-22T17:06:45,797 --> src/colorspace_transforms.rs:5:13 2023-09-22T17:06:45,798 | 2023-09-22T17:06:45,798 5 | fn rgb_to_y(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,799 | ^ help: convert the identifier to snake case: `r` 2023-09-22T17:06:45,800 warning: variable `G` should have a snake case name 2023-09-22T17:06:45,800 --> src/colorspace_transforms.rs:5:24 2023-09-22T17:06:45,801 | 2023-09-22T17:06:45,801 5 | fn rgb_to_y(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,801 | ^ help: convert the identifier to snake case: `g` 2023-09-22T17:06:45,802 warning: variable `B` should have a snake case name 2023-09-22T17:06:45,803 --> src/colorspace_transforms.rs:5:35 2023-09-22T17:06:45,803 | 2023-09-22T17:06:45,803 5 | fn rgb_to_y(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,804 | ^ help: convert the identifier to snake case: `b` 2023-09-22T17:06:45,805 warning: variable `R` should have a snake case name 2023-09-22T17:06:45,805 --> src/colorspace_transforms.rs:9:14 2023-09-22T17:06:45,805 | 2023-09-22T17:06:45,806 9 | fn rgb_to_cb(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,806 | ^ help: convert the identifier to snake case: `r` 2023-09-22T17:06:45,807 warning: variable `G` should have a snake case name 2023-09-22T17:06:45,808 --> src/colorspace_transforms.rs:9:25 2023-09-22T17:06:45,808 | 2023-09-22T17:06:45,808 9 | fn rgb_to_cb(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,809 | ^ help: convert the identifier to snake case: `g` 2023-09-22T17:06:45,810 warning: variable `B` should have a snake case name 2023-09-22T17:06:45,810 --> src/colorspace_transforms.rs:9:36 2023-09-22T17:06:45,811 | 2023-09-22T17:06:45,811 9 | fn rgb_to_cb(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,811 | ^ help: convert the identifier to snake case: `b` 2023-09-22T17:06:45,813 warning: variable `R` should have a snake case name 2023-09-22T17:06:45,813 --> src/colorspace_transforms.rs:13:14 2023-09-22T17:06:45,813 | 2023-09-22T17:06:45,814 13 | fn rgb_to_cr(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,814 | ^ help: convert the identifier to snake case: `r` 2023-09-22T17:06:45,815 warning: variable `G` should have a snake case name 2023-09-22T17:06:45,816 --> src/colorspace_transforms.rs:13:25 2023-09-22T17:06:45,816 | 2023-09-22T17:06:45,816 13 | fn rgb_to_cr(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,817 | ^ help: convert the identifier to snake case: `g` 2023-09-22T17:06:45,818 warning: variable `B` should have a snake case name 2023-09-22T17:06:45,819 --> src/colorspace_transforms.rs:13:36 2023-09-22T17:06:45,819 | 2023-09-22T17:06:45,819 13 | fn rgb_to_cr(R : usize, G : usize, B : usize) -> usize{ 2023-09-22T17:06:45,820 | ^ help: convert the identifier to snake case: `b` 2023-09-22T17:06:45,821 warning: variable `R` should have a snake case name 2023-09-22T17:06:45,821 --> src/colorspace_transforms.rs:17:21 2023-09-22T17:06:45,822 | 2023-09-22T17:06:45,822 17 | pub fn rgb_to_ycbcr(R : usize, G : usize, B : usize) -> (usize, usize, usize){ 2023-09-22T17:06:45,823 | ^ help: convert the identifier to snake case: `r` 2023-09-22T17:06:45,824 warning: variable `G` should have a snake case name 2023-09-22T17:06:45,824 --> src/colorspace_transforms.rs:17:32 2023-09-22T17:06:45,825 | 2023-09-22T17:06:45,825 17 | pub fn rgb_to_ycbcr(R : usize, G : usize, B : usize) -> (usize, usize, usize){ 2023-09-22T17:06:45,825 | ^ help: convert the identifier to snake case: `g` 2023-09-22T17:06:45,827 warning: variable `B` should have a snake case name 2023-09-22T17:06:45,827 --> src/colorspace_transforms.rs:17:43 2023-09-22T17:06:45,828 | 2023-09-22T17:06:45,828 17 | pub fn rgb_to_ycbcr(R : usize, G : usize, B : usize) -> (usize, usize, usize){ 2023-09-22T17:06:45,829 | ^ help: convert the identifier to snake case: `b` 2023-09-22T17:06:45,830 warning: variable `Y` should have a snake case name 2023-09-22T17:06:45,830 --> src/colorspace_transforms.rs:23:15 2023-09-22T17:06:45,831 | 2023-09-22T17:06:45,831 23 | fn ycbcr_to_r(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,831 | ^ help: convert the identifier to snake case (notice the capitalization): `y` 2023-09-22T17:06:45,832 warning: variable `Cb` should have a snake case name 2023-09-22T17:06:45,833 --> src/colorspace_transforms.rs:23:26 2023-09-22T17:06:45,833 | 2023-09-22T17:06:45,833 23 | fn ycbcr_to_r(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,834 | ^^ help: convert the identifier to snake case (notice the capitalization): `cb` 2023-09-22T17:06:45,835 warning: variable `Cr` should have a snake case name 2023-09-22T17:06:45,835 --> src/colorspace_transforms.rs:23:38 2023-09-22T17:06:45,835 | 2023-09-22T17:06:45,836 23 | fn ycbcr_to_r(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,836 | ^^ help: convert the identifier to snake case (notice the capitalization): `cr` 2023-09-22T17:06:45,837 warning: variable `Y` should have a snake case name 2023-09-22T17:06:45,837 --> src/colorspace_transforms.rs:27:15 2023-09-22T17:06:45,838 | 2023-09-22T17:06:45,838 27 | fn ycbcr_to_g(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,839 | ^ help: convert the identifier to snake case (notice the capitalization): `y` 2023-09-22T17:06:45,840 warning: variable `Cb` should have a snake case name 2023-09-22T17:06:45,840 --> src/colorspace_transforms.rs:27:26 2023-09-22T17:06:45,841 | 2023-09-22T17:06:45,841 27 | fn ycbcr_to_g(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,842 | ^^ help: convert the identifier to snake case (notice the capitalization): `cb` 2023-09-22T17:06:45,843 warning: variable `Cr` should have a snake case name 2023-09-22T17:06:45,843 --> src/colorspace_transforms.rs:27:38 2023-09-22T17:06:45,844 | 2023-09-22T17:06:45,844 27 | fn ycbcr_to_g(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,845 | ^^ help: convert the identifier to snake case (notice the capitalization): `cr` 2023-09-22T17:06:45,846 warning: variable `Y` should have a snake case name 2023-09-22T17:06:45,846 --> src/colorspace_transforms.rs:31:15 2023-09-22T17:06:45,847 | 2023-09-22T17:06:45,847 31 | fn ycbcr_to_b(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,848 | ^ help: convert the identifier to snake case (notice the capitalization): `y` 2023-09-22T17:06:45,849 warning: variable `Cb` should have a snake case name 2023-09-22T17:06:45,849 --> src/colorspace_transforms.rs:31:26 2023-09-22T17:06:45,850 | 2023-09-22T17:06:45,850 31 | fn ycbcr_to_b(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,851 | ^^ help: convert the identifier to snake case (notice the capitalization): `cb` 2023-09-22T17:06:45,852 warning: variable `Cr` should have a snake case name 2023-09-22T17:06:45,852 --> src/colorspace_transforms.rs:31:38 2023-09-22T17:06:45,853 | 2023-09-22T17:06:45,853 31 | fn ycbcr_to_b(Y : usize, Cb : usize, Cr : usize) -> usize{ 2023-09-22T17:06:45,854 | ^^ help: convert the identifier to snake case (notice the capitalization): `cr` 2023-09-22T17:06:45,856 warning: variable `Y` should have a snake case name 2023-09-22T17:06:45,856 --> src/colorspace_transforms.rs:35:21 2023-09-22T17:06:45,856 | 2023-09-22T17:06:45,857 35 | pub fn ycbcr_to_rgb(Y : usize, Cb : usize, Cr : usize) -> (usize,usize,usize){ 2023-09-22T17:06:45,857 | ^ help: convert the identifier to snake case (notice the capitalization): `y` 2023-09-22T17:06:45,859 warning: variable `Cb` should have a snake case name 2023-09-22T17:06:45,859 --> src/colorspace_transforms.rs:35:32 2023-09-22T17:06:45,860 | 2023-09-22T17:06:45,860 35 | pub fn ycbcr_to_rgb(Y : usize, Cb : usize, Cr : usize) -> (usize,usize,usize){ 2023-09-22T17:06:45,860 | ^^ help: convert the identifier to snake case (notice the capitalization): `cb` 2023-09-22T17:06:45,861 warning: variable `Cr` should have a snake case name 2023-09-22T17:06:45,862 --> src/colorspace_transforms.rs:35:44 2023-09-22T17:06:45,862 | 2023-09-22T17:06:45,862 35 | pub fn ycbcr_to_rgb(Y : usize, Cb : usize, Cr : usize) -> (usize,usize,usize){ 2023-09-22T17:06:45,863 | ^^ help: convert the identifier to snake case (notice the capitalization): `cr` 2023-09-22T17:06:45,864 warning: variable `Qf` should have a snake case name 2023-09-22T17:06:45,864 --> src/quantization.rs:17:29 2023-09-22T17:06:45,864 | 2023-09-22T17:06:45,865 17 | fn gen_quantize_lumi_matrix(Qf : f64) -> Vec>{ 2023-09-22T17:06:45,865 | ^^ help: convert the identifier to snake case: `qf` 2023-09-22T17:06:45,866 warning: variable `S` should have a snake case name 2023-09-22T17:06:45,867 --> src/quantization.rs:27:9 2023-09-22T17:06:45,867 | 2023-09-22T17:06:45,867 27 | let S = if Qf >= 50.0 {200.0 - 2.0 * Qf} else {5000.0 / Qf}; 2023-09-22T17:06:45,868 | ^ help: convert the identifier to snake case (notice the capitalization): `s` 2023-09-22T17:06:45,869 warning: variable `Qf` should have a snake case name 2023-09-22T17:06:45,869 --> src/quantization.rs:43:31 2023-09-22T17:06:45,870 | 2023-09-22T17:06:45,870 43 | fn gen_quantize_chroma_matrix(Qf : f64) -> Vec>{ 2023-09-22T17:06:45,871 | ^^ help: convert the identifier to snake case: `qf` 2023-09-22T17:06:45,872 warning: variable `S` should have a snake case name 2023-09-22T17:06:45,872 --> src/quantization.rs:53:9 2023-09-22T17:06:45,873 | 2023-09-22T17:06:45,873 53 | let S = if Qf >= 50.0 {200.0 - 2.0 * Qf} else {5000.0 / Qf}; 2023-09-22T17:06:45,873 | ^ help: convert the identifier to snake case (notice the capitalization): `s` 2023-09-22T17:06:45,875 warning: variable `H` should have a snake case name 2023-09-22T17:06:45,875 --> src/arithmetic_encoding.rs:242:13 2023-09-22T17:06:45,875 | 2023-09-22T17:06:45,876 242 | let mut H = 0.0; 2023-09-22T17:06:45,876 | ^ help: convert the identifier to snake case: `h` 2023-09-22T17:06:45,877 warning: 67 warnings emitted 2023-09-22T17:06:45,879 /tmp/pip-wheel-23ndquqo/jpegandentropyencoding_c039a2f6c65f4780a0ed7ad7d8f710c9/target/wheels/JPEGAndEntropyEncoding-0.1.0-cp311-cp311-linux_armv7l.whl 2023-09-22T17:06:45,879 Building wheel for jpegandentropyencoding (pyproject.toml): finished with status 'done' 2023-09-22T17:06:45,898 Created wheel for jpegandentropyencoding: filename=JPEGAndEntropyEncoding-0.1.0-cp311-cp311-linux_armv7l.whl size=1147244 sha256=639151c48bb61480e569bfcd13d9a08a59567df062442da696b1d5cd0644ffef 2023-09-22T17:06:45,899 Stored in directory: /tmp/pip-ephem-wheel-cache-la6ox22f/wheels/17/0f/97/1f3277d98e46be16cae4257f05139cede92847880a2450fa35 2023-09-22T17:06:45,909 Successfully built jpegandentropyencoding 2023-09-22T17:06:45,940 Removed build tracker: '/tmp/pip-build-tracker-rlxjix5c'