Skip to content

Commit

Permalink
[FAULTY] add qoi to be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanpingle committed Oct 19, 2023
1 parent 1021aa2 commit 16c4eae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sw/to-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import * as featuresWorker from 'entry-data:../features-worker';
// Decoders (some are feature detected)
import * as avifDec from 'entry-data:codecs/avif/dec/avif_dec';
import * as webpDec from 'entry-data:codecs/webp/dec/webp_dec';
import * as qoiDec from 'entry-data:codecs/qoi/dec/qoi_dec';

// AVIF
import * as avifEncMt from 'entry-data:codecs/avif/enc/avif_enc_mt';
Expand All @@ -40,6 +41,9 @@ import * as jxlEnc from 'entry-data:codecs/jxl/enc/jxl_enc';
import * as oxiMt from 'entry-data:codecs/oxipng/pkg-parallel/squoosh_oxipng';
import * as oxi from 'entry-data:codecs/oxipng/pkg/squoosh_oxipng';

// QOI
import * as qoiEnc from 'entry-data:codecs/qoi/enc/qoi_enc';

// WebP
import * as webpEncSimd from 'entry-data:codecs/webp/enc/webp_enc_simd';
import * as webpEnc from 'entry-data:codecs/webp/enc/webp_enc';
Expand Down Expand Up @@ -108,6 +112,7 @@ export const theRest = (async () => {

if (!supportsAvif) addWithDeps(avifDec);
if (!supportsWebP) addWithDeps(webpDec);
addWithDeps(qoiDec);

// AVIF
if (supportsThreads) {
Expand All @@ -132,6 +137,9 @@ export const theRest = (async () => {
addWithDeps(oxi);
}

// QOI
addWithDeps(qoiEnc);

// WebP
if (supportsSimd) {
addWithDeps(webpEncSimd);
Expand Down

0 comments on commit 16c4eae

Please sign in to comment.