Repository navigation
v0.1.0-preview.6
Pre-release
Pre-release
·
440 commits
to main
since this release
Highlights
- Platform JPEG decoders (#374–#377). JPEG images can decode with SkiaSharp's
SKCodec, ImageIO (Apple),BitmapFactory(Android) or WIC (Windows), behind the platform image decoder seam, scaled to the size they are drawn. The managed decoder stays the default where it is faster or must be bit-exact. - Vectorized image and color kernels (#470–#477).
Vector128kernels with scalar fallbacks for the 8 × 8 inverse DCT, YCbCr/YCCK conversion, the JPEG 2000 wavelet and component transforms, BGRA packing and premultiplication, the box filter, group compositing rows and CMYK characterization. Every kernel is bit-identical to its scalar path, and each is either faster in the browser builds or kept off there. - Faster JPEG 2000 (#255, #503, #505). Tier-1 decoding at about 41 ns per sample, fused rounding and level shift, and code-blocks decoded in parallel on native builds. pdfjs issue5567 page renders in Native AOT went from 227 ms to 49 ms.
- Reduced-resolution decode in more cases (#507, #513). JPEG 2000 images without a
/ColorSpace, and JPEG 2000 and JPEG soft masks, now decode at the resolution they are drawn; an image and its soft mask always reduce together. Pages with large masks open 57–77% faster zoomed out. - Faster image painting (#509, #511, #517). Box-filter footprints are kept across rows, averaged a run at a time, and composited a row at a time; enlarged images paint a run at a time. Painting a reduced image is 30–60% faster on JIT, Native AOT and browser AOT, and up to 9× faster in the browser interpreter for enlarged images. Output is byte-identical.
- Sample documents (#363, #451). Representative sample documents covering text, forms, color, scans, encryption, signatures and damaged files, wired into the demos, benchmarks and browser tests.
- Live demo: https://michaelstonis.github.io/Broadside/demo/
New API
SkiaImageDecoder,ImageIODecoder,AndroidImageDecoder,WicImageDecoder, withUseSkiaImageDecoder,UseAndroidImageDecoderandUseWicImageDecoderonPdfOptions.PrefetchImagesAsynconAndroidCanvasBackend,CoreGraphicsRendererandDirect2DRenderer.ImageRows.PackBgra/PackRgba,YCbCrConversion.ToRgb.PlatformImageRequest.ChromaHorizontalSubsampling/ChromaVerticalSubsampling,ImageHeader.IccProfile.
Fixes
- Every backend paints an image unmasked when its soft mask can't be decoded at draw time (#515).
- One shared default filter registry, so allocations no longer vary run to run (#498).
- One platform decode shared across concurrent prefetches (#484).
- Security: read an indirect
KDFSaltas stored (#478); reload objects the encryption dictionary reaches once decryption is installed (#398). - Writing: cross-reference streams always carry
/Type /XRef(#466); a source trailer's section keys are never repeated (#445); new objects are numbered correctly in a file that holds object 2147483647 (#387). - A reduced JPX decode stays within the header's
MaxReduction(#424). - Blazor
PdfViewerhas an intrinsic height without host CSS (#393). - Remote files resolve named destinations off the UI thread (#420).
- WebGL falls back to a document canvas when
OffscreenCanvashas no WebGL 2 (#444).
All known issues listed for preview.5 (#420, #424, #387, #398, #393, #434, #445) are fixed.
What's Changed
- feat(samples): representative sample documents, part 1: tooling, licences, catalogue, invoices, textbook (#363) by @michaelstonis in #433
- feat(samples): representative sample documents, part 2 (#363) by @michaelstonis in #442
- feat(samples): wire sample documents into demos, benchmarks and browser tests (#363) by @michaelstonis in #443
- fix(webgl): fall back to a document canvas when OffscreenCanvas has no WebGL 2 by @michaelstonis in #444
- ci(blazor-wasm): pin the browser job to ubuntu-24.04 (#459) by @michaelstonis in #460
- fix(viewer): resolve a remote file's named destinations off the UI thread (#420) by @michaelstonis in #450
- fix(filters): keep a reduced JPX decode within the header's MaxReduction (#424) by @michaelstonis in #452
- fix(blazor): give PdfViewer an intrinsic height without host CSS (#393) by @michaelstonis in #453
- test(webgl): switch the view panel test to a document the GPU draws whole by @michaelstonis in #456
- feat(samples): coverage matrix, encrypted and signed sample documents (#451) by @michaelstonis in #455
- fix(writing): never repeat a source trailer's section keys (#445) by @michaelstonis in #454
- fix(cos): number new objects of a file that holds object 2147483647 (#387) by @michaelstonis in #457
- feat(samples): forms, XFA and annotation sample documents (#451) by @michaelstonis in #468
- feat(samples): international text sample documents (#451) by @michaelstonis in #463
- perf(colors): transfer 8-bit colors run by run while they are in cache (#434) by @michaelstonis in #461
- feat(samples): legacy, scanned and color sample documents (#451) by @michaelstonis in #464
- feat(samples): structure, archival, scale and damaged sample documents (#451) by @michaelstonis in #465
- fix(security): load objects the encryption dictionary reaches again once decryption is installed (#398) by @michaelstonis in #458
- fix(writing): always write a cross-reference stream as /Type /XRef (#466) by @michaelstonis in #467
- feat(android): decode JPEG images with BitmapFactory in the Android Canvas backend (#376) by @michaelstonis in #481
- feat(coregraphics): decode JPEG images with ImageIO behind the platform decoder seam (#375) by @michaelstonis in #483
- feat(direct2d): decode JPEG images with WIC (#377) by @michaelstonis in #480
- docs(benchmarks): add the browser AOT column to the sample documents baseline (#363) by @michaelstonis in #487
- test(perf): SIMD kernel test and benchmark infrastructure (#470) by @michaelstonis in #488
- fix(security): read an indirect KDFSalt as stored (#478) by @michaelstonis in #486
- fix(images): share one platform decode across concurrent prefetches whatever the decoder does (#484) by @michaelstonis in #489
- perf(images): vectorize YCbCr/YCCK to RGB/CMYK rows with Vector128 (#471) by @michaelstonis in #490
- perf(rendering): vectorize the group source-over and partial-coverage fill rows (#473) by @michaelstonis in #492
- feat(skia): decode JPEG images with SkiaSharp's SKCodec, scaled and bit-identical (#374) by @michaelstonis in #485
- perf(rendering): vectorize the box filter's channel accumulation (#475) by @michaelstonis in #493
- perf(rendering): vectorize BGRA packing, premultiplication and gray expansion (#472) by @michaelstonis in #491
- perf(colors): vectorize the CMYK characterization and copy ICCBased samples with a device alternate (#476) by @michaelstonis in #494
- perf(filters): vectorize the 8 x 8 islow inverse DCT (#474) by @michaelstonis in #495
- ci: retry the poppler-utils install and skip its checks when Ubuntu's archive is unreachable by @michaelstonis in #500
- fix(filters): share the default filter registry across engines by @michaelstonis in #499
- perf(skia): decode images synchronously now that the core shares a synchronous decode (#496) by @michaelstonis in #497
- docs(research): SIMD opportunities and per-target acceleration by @michaelstonis in #469
- perf(filters): vectorize the JPEG 2000 wavelet and component transforms (#477) by @michaelstonis in #501
- perf(jpx): tier-1 decoding at 41 ns per sample (#255) by @michaelstonis in #502
- perf(jpx): fuse and vectorize the 9/7 rounding with the DC level shift (#503) by @michaelstonis in #504
- perf(jpx): decode code-blocks in parallel on native builds by @michaelstonis in #506
- perf(jpx): decode JPX images without a ColorSpace at the resolution they are drawn by @michaelstonis in #508
- perf(rendering): keep box-filter footprints across rows and compose JPX rows directly (#509) by @michaelstonis in #510
- perf(rendering): average a run of box-filter footprints per call (#511) by @michaelstonis in #512
- perf(images): decode soft masks at the resolution they are drawn (#513) by @michaelstonis in #514
- fix(rendering): paint an image unmasked on every backend when its soft mask fails to decode (#515) by @michaelstonis in #516
- perf(rendering): paint enlarged images a run at a time and composite box-filtered runs together (#517) by @michaelstonis in #518
- Broadside v0.1.0-preview.6: platform JPEG decoders, SIMD kernels, faster JPEG 2000 and image painting by @michaelstonis in #519
Full Changelog: v0.1.0-preview.5...v0.1.0-preview.6