Skip to content

Commit

Permalink
Image demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vipertechofficial committed Jun 10, 2024
1 parent da769a4 commit 8c39d70
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
_REGISTER_SERVICE_WORKER().catch(_RELOAD).then(_LISTEN_RELOAD);

</script>
<script async src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3f18a915cd7d481d94711fdebfa555a2"}'></script>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3f18a915cd7d481d94711fdebfa555a2"}'></script>
<!-- Open graph metadata -->
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://pixa.pics"/>
Expand Down
2 changes: 1 addition & 1 deletion client/chunk_11.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
_REGISTER_SERVICE_WORKER().catch(_RELOAD).then(_LISTEN_RELOAD);

</script>
<script async src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3f18a915cd7d481d94711fdebfa555a2"}'></script>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3f18a915cd7d481d94711fdebfa555a2"}'></script>
<!-- Open graph metadata -->
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://pixa.pics"/>
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-v1040-required";
var USEFUL_CACHE = "unless-update-cache-v1040-useful";
var STATIC_CACHE = "unless-update-cache-v1040-static";
var OTHER_CACHE = "unless-update-cache-v1040-other";
var REQUIRED_CACHE = "unless-update-cache-v1041-required";
var USEFUL_CACHE = "unless-update-cache-v1041-useful";
var STATIC_CACHE = "unless-update-cache-v1041-static";
var OTHER_CACHE = "unless-update-cache-v1041-other";

// Regular expressions for chunk matching
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
Expand Down
Binary file modified src/images/ico/Mathiew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/ico/Matias.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/js/pages/Marketplace.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/js/utils/computeMediaPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ function getImageDataFromBase64(base64) {
base64_to_bitmap(base64, function(bitmap){
bitmap_to_imagedata(bitmap, 999999999, function(image_data){

let new_pxls = new Uint16Array(image_data.width * image_data.height);
//let new_pxls = new Uint16Array(image_data.width * image_data.height);
let colorsuint32 = new Uint32Array(image_data.data.buffer);
let uint32colorssorted = new SIMDopeColors(colorsuint32.buffer).get_deduplicated_sorted_uint32a();

/*
for (let i = 0; i < colorsuint32.length; i += 1) {
new_pxls[i|0] = uint32colorssorted.indexOf(colorsuint32[i|0]);
}
*/

var sd = new SIMDopeColor(new ArrayBuffer(4));
var sdc = new SIMDopeColors(uint32colorssorted.buffer);
Expand Down
22 changes: 21 additions & 1 deletion src/js/utils/demoData.js

Large diffs are not rendered by default.

0 comments on commit 8c39d70

Please sign in to comment.