Skip to content

Commit

Permalink
CIELAB76 color space in simdope 8.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vipertechofficial committed Jul 9, 2024
1 parent 103cee0 commit 4e64ff5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/chunk_11.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_12.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_8.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_9.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"readable-stream": "~4.5.2",
"vtracer-color": "~0.0.5",
"regenerator-runtime": "~0.14.1",
"simdope": "~8.2.5",
"simdope": "~8.3.0",
"snappyjs": "~0.7.0",
"svg64": "~2.0.0",
"svgo": "~2.8.0",
Expand Down
8 changes: 4 additions & 4 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ var LOAD_FILES_USEFUL = ["/src/fonts/normative/index.css"].concat(["illusion.jpg
var LOAD_FILES_STATIC = ["sfx/md/hero_decorative-celebration-02", "sfx/md/navigation_selection-complete-celebration", "sfx/md/navigation_transition-left", "sfx/md/state-change_confirm-down", "sfx/md/ui_lock", "sfx/md/ui_unlock", "sfx/md/ui_scan", "sfx/md/alert_high-intensity", "sfx/md/navigation_transition-right", "voice/cn/accessing_memory", "voice/cn/complete", "voice/cn/please_wait", "voice/cn/data_upload", "voice/cn/processing", "voice/cn/enhanced", "voice/cn/rewriting_deep_layer_protocols", "voice/cn/vision_activated", "voice/cn/vision_deactivated", "voice/cn/filtering", "music/redeclipse/track_09"].map(F_SND).concat(["presentation", "tutorial", "create", "enhanced", "pixelated", "upload", "share1", "joke1", "create", "enhanced", "pixelated", "presentation", "presentation2", "sponsors", "tutorial", "upload", "labintro", "share2", "share3", "share4", "share5", "share6", "share7", "joke2", "joke3", "joke4", "joke5", "joke6", "joke7", "joke8", "joke9", "joke10", "joke11"].map(F_VID));

// Cache names
var REQUIRED_CACHE = "unless-update-cache-v1067-required";
var USEFUL_CACHE = "unless-update-cache-v1067-useful";
var STATIC_CACHE = "unless-update-cache-v1067-static";
var OTHER_CACHE = "unless-update-cache-v1067-other";
var REQUIRED_CACHE = "unless-update-cache-v1068-required";
var USEFUL_CACHE = "unless-update-cache-v1068-useful";
var STATIC_CACHE = "unless-update-cache-v1068-static";
var OTHER_CACHE = "unless-update-cache-v1068-other";

// Regular expressions for chunk matching
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
Expand Down
6 changes: 3 additions & 3 deletions src/js/utils/quantimat/QuantiMat.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var MODE = SIMDopeCreateConfAdd({
"blend_first_with": true,
"blend_first_with_tails": true,
"blend_all": true,
"euclidean_match_with": true,
"cie76_match_with": true,
"copy": true
}
});
Expand Down Expand Up @@ -539,7 +539,7 @@ QuantiMat.prototype.process_threshold = function(t) {
) / totalFactor
);
// CIE LAB 1976 version color scheme is used to measure accurate the distance for the human eye
if(color_a.euclidean_match_with(color_b, threshold)) {
if(color_a.cie76_match_with(color_b, threshold)) {

color_usage_difference_positive = fr(color_b_usage / color_a_usage);

Expand Down Expand Up @@ -819,7 +819,7 @@ var QuantiMatGlobal = function(
original_color_n;

if(number_of_color === "auto") {
number_of_color = detectIdealColorCount(image_data.data, 32, 64);
number_of_color = detectIdealColorCount(image_data.data, 16, 64);
}

if(number_of_color >= original_color_n) {
Expand Down

0 comments on commit 4e64ff5

Please sign in to comment.