There is some sort of tag, jxlinfo can tell you if a file is "lossy" or "(possibly) lossless".
$ fd '(?-u:\xFF)'
a.� Active: active (running) since Fri 2024-06-14 19:26:55 +05; 27s ago
Invocation: d84b9281e0f64a798c4e555836815036
TriggeredBy: ● shpool.socket
Main PID: 3895609 (shpool)
Tasks: 15 (limit: 154377)
Memory: 1.4G (peak: 1.4G)
CPU: 6.566s
CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/shpool.service
├─3895609 /usr/local/bin/shpool daemon
├─3895629 -fish
├─3895719 systemctl --user status shpool
└─3895720 pager perf stat -e 'power/energy-pkg/' -I 1000 --interval-count 3
# time counts unit events
1.001064377 11.00 Joules power/energy-pkg/
2.002605466 10.98 Joules power/energy-pkg/
3.003726824 11.01 Joules power/energy-pkg/