@shopify/react-native-skia 0.1.115
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +7 -0
- package/README.md +7 -0
- package/android/CMakeLists.txt +132 -0
- package/android/README.md +14 -0
- package/android/build.gradle +196 -0
- package/android/cpp/jni/JniLoad.cpp +13 -0
- package/android/cpp/jni/JniPlatformContext.cpp +142 -0
- package/android/cpp/jni/JniSkiaDrawView.cpp +169 -0
- package/android/cpp/jni/JniSkiaManager.cpp +57 -0
- package/android/cpp/jni/SkiaOpenGLRenderer.cpp +340 -0
- package/android/cpp/jni/include/JniPlatformContext.h +75 -0
- package/android/cpp/jni/include/JniPlatformContextWrapper.h +54 -0
- package/android/cpp/jni/include/JniSkiaDrawView.h +82 -0
- package/android/cpp/jni/include/JniSkiaManager.h +81 -0
- package/android/cpp/jni/include/SkiaOpenGLRenderer.h +159 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +181 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +88 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +24 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaViewManager.java +72 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +137 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +66 -0
- package/cpp/api/JsiSkApi.h +97 -0
- package/cpp/api/JsiSkCanvas.h +532 -0
- package/cpp/api/JsiSkColorFilter.h +43 -0
- package/cpp/api/JsiSkColorFilterFactory.h +98 -0
- package/cpp/api/JsiSkContourMeasure.h +102 -0
- package/cpp/api/JsiSkContourMeasureIter.h +90 -0
- package/cpp/api/JsiSkData.h +46 -0
- package/cpp/api/JsiSkDataFactory.h +92 -0
- package/cpp/api/JsiSkFont.h +326 -0
- package/cpp/api/JsiSkFontMgr.h +84 -0
- package/cpp/api/JsiSkFontMgrFactory.h +48 -0
- package/cpp/api/JsiSkHostObjects.h +83 -0
- package/cpp/api/JsiSkImage.h +141 -0
- package/cpp/api/JsiSkImageFactory.h +50 -0
- package/cpp/api/JsiSkImageFilter.h +47 -0
- package/cpp/api/JsiSkImageFilterFactory.h +217 -0
- package/cpp/api/JsiSkImageInfo.h +57 -0
- package/cpp/api/JsiSkMaskFilter.h +45 -0
- package/cpp/api/JsiSkMaskFilterFactory.h +42 -0
- package/cpp/api/JsiSkMatrix.h +64 -0
- package/cpp/api/JsiSkPaint.h +227 -0
- package/cpp/api/JsiSkPath.h +557 -0
- package/cpp/api/JsiSkPathEffect.h +45 -0
- package/cpp/api/JsiSkPathEffectFactory.h +123 -0
- package/cpp/api/JsiSkPathFactory.h +64 -0
- package/cpp/api/JsiSkPoint.h +81 -0
- package/cpp/api/JsiSkRRect.h +93 -0
- package/cpp/api/JsiSkRSXform.h +105 -0
- package/cpp/api/JsiSkRect.h +119 -0
- package/cpp/api/JsiSkRuntimeEffect.h +217 -0
- package/cpp/api/JsiSkRuntimeEffectFactory.h +41 -0
- package/cpp/api/JsiSkSVG.h +43 -0
- package/cpp/api/JsiSkSVGFactory.h +48 -0
- package/cpp/api/JsiSkShader.h +45 -0
- package/cpp/api/JsiSkShaderFactory.h +214 -0
- package/cpp/api/JsiSkSurface.h +67 -0
- package/cpp/api/JsiSkSurfaceFactory.h +44 -0
- package/cpp/api/JsiSkTextBlob.h +50 -0
- package/cpp/api/JsiSkTextBlobFactory.h +109 -0
- package/cpp/api/JsiSkTypeface.h +76 -0
- package/cpp/api/JsiSkTypefaceFactory.h +30 -0
- package/cpp/api/JsiSkVertices.h +147 -0
- package/cpp/jsi/JsiHostObject.cpp +154 -0
- package/cpp/jsi/JsiHostObject.h +241 -0
- package/cpp/rnskia/RNSkAnimation.h +73 -0
- package/cpp/rnskia/RNSkDispatchQueue.cpp +84 -0
- package/cpp/rnskia/RNSkDispatchQueue.h +47 -0
- package/cpp/rnskia/RNSkDrawView.cpp +333 -0
- package/cpp/rnskia/RNSkDrawView.h +242 -0
- package/cpp/rnskia/RNSkInfoParameter.h +100 -0
- package/cpp/rnskia/RNSkJsiViewApi.h +305 -0
- package/cpp/rnskia/RNSkManager.cpp +81 -0
- package/cpp/rnskia/RNSkManager.h +81 -0
- package/cpp/rnskia/RNSkPlatformContext.h +196 -0
- package/cpp/rnskia/RNSkValueApi.h +69 -0
- package/cpp/rnskia/values/RNSkClockValue.h +133 -0
- package/cpp/rnskia/values/RNSkDerivedValue.h +92 -0
- package/cpp/rnskia/values/RNSkReadonlyValue.h +140 -0
- package/cpp/rnskia/values/RNSkValue.h +112 -0
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +61 -0
- package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
- package/cpp/skia/include/c/sk_canvas.h +159 -0
- package/cpp/skia/include/c/sk_colorspace.h +25 -0
- package/cpp/skia/include/c/sk_data.h +65 -0
- package/cpp/skia/include/c/sk_image.h +71 -0
- package/cpp/skia/include/c/sk_imageinfo.h +62 -0
- package/cpp/skia/include/c/sk_maskfilter.h +47 -0
- package/cpp/skia/include/c/sk_matrix.h +49 -0
- package/cpp/skia/include/c/sk_paint.h +145 -0
- package/cpp/skia/include/c/sk_path.h +102 -0
- package/cpp/skia/include/c/sk_picture.h +70 -0
- package/cpp/skia/include/c/sk_shader.h +143 -0
- package/cpp/skia/include/c/sk_surface.h +73 -0
- package/cpp/skia/include/c/sk_types.h +278 -0
- package/cpp/skia/include/codec/SkAndroidCodec.h +263 -0
- package/cpp/skia/include/codec/SkCodec.h +992 -0
- package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
- package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
- package/cpp/skia/include/config/SkUserConfig.h +89 -0
- package/cpp/skia/include/core/SkAnnotation.h +50 -0
- package/cpp/skia/include/core/SkBBHFactory.h +63 -0
- package/cpp/skia/include/core/SkBitmap.h +1212 -0
- package/cpp/skia/include/core/SkBlendMode.h +110 -0
- package/cpp/skia/include/core/SkBlender.h +33 -0
- package/cpp/skia/include/core/SkBlurTypes.h +22 -0
- package/cpp/skia/include/core/SkCanvas.h +2583 -0
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
- package/cpp/skia/include/core/SkClipOp.h +19 -0
- package/cpp/skia/include/core/SkColor.h +438 -0
- package/cpp/skia/include/core/SkColorFilter.h +90 -0
- package/cpp/skia/include/core/SkColorPriv.h +152 -0
- package/cpp/skia/include/core/SkColorSpace.h +245 -0
- package/cpp/skia/include/core/SkContourMeasure.h +131 -0
- package/cpp/skia/include/core/SkCoverageMode.h +30 -0
- package/cpp/skia/include/core/SkCubicMap.h +45 -0
- package/cpp/skia/include/core/SkCustomMesh.h +202 -0
- package/cpp/skia/include/core/SkData.h +188 -0
- package/cpp/skia/include/core/SkDataTable.h +118 -0
- package/cpp/skia/include/core/SkDeferredDisplayList.h +110 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +97 -0
- package/cpp/skia/include/core/SkDocument.h +91 -0
- package/cpp/skia/include/core/SkDrawLooper.h +135 -0
- package/cpp/skia/include/core/SkDrawable.h +160 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +35 -0
- package/cpp/skia/include/core/SkExecutor.h +41 -0
- package/cpp/skia/include/core/SkFlattenable.h +113 -0
- package/cpp/skia/include/core/SkFont.h +534 -0
- package/cpp/skia/include/core/SkFontArguments.h +62 -0
- package/cpp/skia/include/core/SkFontMetrics.h +138 -0
- package/cpp/skia/include/core/SkFontMgr.h +157 -0
- package/cpp/skia/include/core/SkFontParameters.h +42 -0
- package/cpp/skia/include/core/SkFontStyle.h +81 -0
- package/cpp/skia/include/core/SkFontTypes.h +25 -0
- package/cpp/skia/include/core/SkGraphics.h +153 -0
- package/cpp/skia/include/core/SkICC.h +19 -0
- package/cpp/skia/include/core/SkImage.h +1302 -0
- package/cpp/skia/include/core/SkImageEncoder.h +72 -0
- package/cpp/skia/include/core/SkImageFilter.h +114 -0
- package/cpp/skia/include/core/SkImageGenerator.h +215 -0
- package/cpp/skia/include/core/SkImageInfo.h +721 -0
- package/cpp/skia/include/core/SkM44.h +426 -0
- package/cpp/skia/include/core/SkMallocPixelRef.h +42 -0
- package/cpp/skia/include/core/SkMaskFilter.h +50 -0
- package/cpp/skia/include/core/SkMath.h +54 -0
- package/cpp/skia/include/core/SkMatrix.h +1986 -0
- package/cpp/skia/include/core/SkMilestone.h +9 -0
- package/cpp/skia/include/core/SkOverdrawCanvas.h +68 -0
- package/cpp/skia/include/core/SkPaint.h +720 -0
- package/cpp/skia/include/core/SkPath.h +1891 -0
- package/cpp/skia/include/core/SkPathBuilder.h +268 -0
- package/cpp/skia/include/core/SkPathEffect.h +106 -0
- package/cpp/skia/include/core/SkPathMeasure.h +88 -0
- package/cpp/skia/include/core/SkPathTypes.h +59 -0
- package/cpp/skia/include/core/SkPicture.h +280 -0
- package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
- package/cpp/skia/include/core/SkPixelRef.h +123 -0
- package/cpp/skia/include/core/SkPixmap.h +720 -0
- package/cpp/skia/include/core/SkPngChunkReader.h +45 -0
- package/cpp/skia/include/core/SkPoint.h +566 -0
- package/cpp/skia/include/core/SkPoint3.h +157 -0
- package/cpp/skia/include/core/SkPromiseImageTexture.h +46 -0
- package/cpp/skia/include/core/SkRRect.h +512 -0
- package/cpp/skia/include/core/SkRSXform.h +69 -0
- package/cpp/skia/include/core/SkRasterHandleAllocator.h +92 -0
- package/cpp/skia/include/core/SkRect.h +1378 -0
- package/cpp/skia/include/core/SkRefCnt.h +382 -0
- package/cpp/skia/include/core/SkRegion.h +672 -0
- package/cpp/skia/include/core/SkSamplingOptions.h +92 -0
- package/cpp/skia/include/core/SkScalar.h +194 -0
- package/cpp/skia/include/core/SkSerialProcs.h +73 -0
- package/cpp/skia/include/core/SkShader.h +148 -0
- package/cpp/skia/include/core/SkSize.h +90 -0
- package/cpp/skia/include/core/SkSpan.h +89 -0
- package/cpp/skia/include/core/SkStream.h +524 -0
- package/cpp/skia/include/core/SkString.h +302 -0
- package/cpp/skia/include/core/SkStringView.h +185 -0
- package/cpp/skia/include/core/SkStrokeRec.h +154 -0
- package/cpp/skia/include/core/SkSurface.h +1079 -0
- package/cpp/skia/include/core/SkSurfaceCharacterization.h +263 -0
- package/cpp/skia/include/core/SkSurfaceProps.h +92 -0
- package/cpp/skia/include/core/SkSwizzle.h +19 -0
- package/cpp/skia/include/core/SkTextBlob.h +503 -0
- package/cpp/skia/include/core/SkTileMode.h +41 -0
- package/cpp/skia/include/core/SkTime.h +63 -0
- package/cpp/skia/include/core/SkTraceMemoryDump.h +99 -0
- package/cpp/skia/include/core/SkTypeface.h +454 -0
- package/cpp/skia/include/core/SkTypes.h +621 -0
- package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
- package/cpp/skia/include/core/SkVertices.h +132 -0
- package/cpp/skia/include/core/SkYUVAInfo.h +304 -0
- package/cpp/skia/include/core/SkYUVAPixmaps.h +336 -0
- package/cpp/skia/include/docs/SkPDFDocument.h +196 -0
- package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
- package/cpp/skia/include/effects/Sk1DPathEffect.h +35 -0
- package/cpp/skia/include/effects/Sk2DPathEffect.h +30 -0
- package/cpp/skia/include/effects/SkBlenders.h +27 -0
- package/cpp/skia/include/effects/SkBlurDrawLooper.h +26 -0
- package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
- package/cpp/skia/include/effects/SkColorMatrix.h +55 -0
- package/cpp/skia/include/effects/SkColorMatrixFilter.h +25 -0
- package/cpp/skia/include/effects/SkCornerPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkDashPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
- package/cpp/skia/include/effects/SkGradientShader.h +264 -0
- package/cpp/skia/include/effects/SkHighContrastFilter.h +80 -0
- package/cpp/skia/include/effects/SkImageFilters.h +551 -0
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
- package/cpp/skia/include/effects/SkLumaColorFilter.h +34 -0
- package/cpp/skia/include/effects/SkOpPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkOverdrawColorFilter.h +29 -0
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +54 -0
- package/cpp/skia/include/effects/SkRuntimeEffect.h +518 -0
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +24 -0
- package/cpp/skia/include/effects/SkStrokeAndFillPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkTableColorFilter.h +42 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +37 -0
- package/cpp/skia/include/effects/SkTrimPathEffect.h +41 -0
- package/cpp/skia/include/encode/SkEncoder.h +42 -0
- package/cpp/skia/include/encode/SkJpegEncoder.h +97 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +99 -0
- package/cpp/skia/include/encode/SkWebpEncoder.h +48 -0
- package/cpp/skia/include/gpu/GrBackendDrawableInfo.h +44 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +140 -0
- package/cpp/skia/include/gpu/GrBackendSurface.h +643 -0
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +91 -0
- package/cpp/skia/include/gpu/GrConfig.h +53 -0
- package/cpp/skia/include/gpu/GrContextOptions.h +364 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +159 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +880 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +52 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +45 -0
- package/cpp/skia/include/gpu/GrRecordingContext.h +275 -0
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +166 -0
- package/cpp/skia/include/gpu/GrTypes.h +244 -0
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
- package/cpp/skia/include/gpu/ShaderErrorHandler.h +36 -0
- package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +35 -0
- package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +248 -0
- package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +95 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +11 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +39 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig.h +79 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +14 -0
- package/cpp/skia/include/gpu/gl/GrGLExtensions.h +78 -0
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +304 -0
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +342 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +207 -0
- package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +14 -0
- package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +14 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +144 -0
- package/cpp/skia/include/gpu/mtl/GrMtlBackendContext.h +21 -0
- package/cpp/skia/include/gpu/mtl/GrMtlTypes.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +76 -0
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +140 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +187 -0
- package/cpp/skia/include/gpu/vk/GrVkVulkan.h +32 -0
- package/cpp/skia/include/pathops/SkPathOps.h +113 -0
- package/cpp/skia/include/ports/SkCFObject.h +184 -0
- package/cpp/skia/include/ports/SkFontConfigInterface.h +115 -0
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +20 -0
- package/cpp/skia/include/ports/SkFontMgr_android.h +45 -0
- package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +22 -0
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +19 -0
- package/cpp/skia/include/ports/SkFontMgr_indirect.h +102 -0
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +20 -0
- package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +35 -0
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
- package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
- package/cpp/skia/include/ports/SkTypeface_win.h +79 -0
- package/cpp/skia/include/private/GrContext_Base.h +92 -0
- package/cpp/skia/include/private/GrD3DTypesMinimal.h +74 -0
- package/cpp/skia/include/private/GrDawnTypesPriv.h +26 -0
- package/cpp/skia/include/private/GrGLTypesPriv.h +107 -0
- package/cpp/skia/include/private/GrImageContext.h +55 -0
- package/cpp/skia/include/private/GrMockTypesPriv.h +31 -0
- package/cpp/skia/include/private/GrMtlTypesPriv.h +75 -0
- package/cpp/skia/include/private/GrSingleOwner.h +65 -0
- package/cpp/skia/include/private/GrTypesPriv.h +1354 -0
- package/cpp/skia/include/private/GrVkTypesPriv.h +107 -0
- package/cpp/skia/include/private/SkBitmaskEnum.h +59 -0
- package/cpp/skia/include/private/SkChecksum.h +66 -0
- package/cpp/skia/include/private/SkColorData.h +441 -0
- package/cpp/skia/include/private/SkDeque.h +141 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +249 -0
- package/cpp/skia/include/private/SkFixed.h +141 -0
- package/cpp/skia/include/private/SkFloatBits.h +91 -0
- package/cpp/skia/include/private/SkFloatingPoint.h +272 -0
- package/cpp/skia/include/private/SkHalf.h +85 -0
- package/cpp/skia/include/private/SkIDChangeListener.h +75 -0
- package/cpp/skia/include/private/SkImageInfoPriv.h +193 -0
- package/cpp/skia/include/private/SkMacros.h +84 -0
- package/cpp/skia/include/private/SkMalloc.h +143 -0
- package/cpp/skia/include/private/SkMutex.h +56 -0
- package/cpp/skia/include/private/SkNoncopyable.h +30 -0
- package/cpp/skia/include/private/SkNx.h +430 -0
- package/cpp/skia/include/private/SkNx_neon.h +713 -0
- package/cpp/skia/include/private/SkNx_sse.h +823 -0
- package/cpp/skia/include/private/SkOnce.h +53 -0
- package/cpp/skia/include/private/SkOpts_spi.h +21 -0
- package/cpp/skia/include/private/SkPaintParamsKey.h +110 -0
- package/cpp/skia/include/private/SkPathRef.h +536 -0
- package/cpp/skia/include/private/SkSLDefines.h +56 -0
- package/cpp/skia/include/private/SkSLIRNode.h +63 -0
- package/cpp/skia/include/private/SkSLLayout.h +143 -0
- package/cpp/skia/include/private/SkSLModifiers.h +141 -0
- package/cpp/skia/include/private/SkSLProgramElement.h +77 -0
- package/cpp/skia/include/private/SkSLProgramKind.h +31 -0
- package/cpp/skia/include/private/SkSLSampleUsage.h +89 -0
- package/cpp/skia/include/private/SkSLStatement.h +87 -0
- package/cpp/skia/include/private/SkSLString.h +80 -0
- package/cpp/skia/include/private/SkSLSymbol.h +90 -0
- package/cpp/skia/include/private/SkSafe32.h +34 -0
- package/cpp/skia/include/private/SkSafe_math.h +52 -0
- package/cpp/skia/include/private/SkSemaphore.h +83 -0
- package/cpp/skia/include/private/SkShaderCodeDictionary.h +63 -0
- package/cpp/skia/include/private/SkShadowFlags.h +25 -0
- package/cpp/skia/include/private/SkSpinlock.h +57 -0
- package/cpp/skia/include/private/SkTArray.h +640 -0
- package/cpp/skia/include/private/SkTDArray.h +385 -0
- package/cpp/skia/include/private/SkTFitsIn.h +99 -0
- package/cpp/skia/include/private/SkTHash.h +548 -0
- package/cpp/skia/include/private/SkTLogic.h +86 -0
- package/cpp/skia/include/private/SkTOptional.h +362 -0
- package/cpp/skia/include/private/SkTPin.h +23 -0
- package/cpp/skia/include/private/SkTemplates.h +453 -0
- package/cpp/skia/include/private/SkThreadAnnotations.h +91 -0
- package/cpp/skia/include/private/SkThreadID.h +20 -0
- package/cpp/skia/include/private/SkTo.h +28 -0
- package/cpp/skia/include/private/SkUniquePaintParamsID.h +35 -0
- package/cpp/skia/include/private/SkVx.h +943 -0
- package/cpp/skia/include/private/SkWeakRefCnt.h +170 -0
- package/cpp/skia/include/private/chromium/GrSlug.h +41 -0
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +143 -0
- package/cpp/skia/include/sksl/DSL.h +34 -0
- package/cpp/skia/include/sksl/DSLBlock.h +67 -0
- package/cpp/skia/include/sksl/DSLCase.h +68 -0
- package/cpp/skia/include/sksl/DSLCore.h +488 -0
- package/cpp/skia/include/sksl/DSLExpression.h +299 -0
- package/cpp/skia/include/sksl/DSLFunction.h +116 -0
- package/cpp/skia/include/sksl/DSLLayout.h +94 -0
- package/cpp/skia/include/sksl/DSLModifiers.h +64 -0
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +32 -0
- package/cpp/skia/include/sksl/DSLStatement.h +111 -0
- package/cpp/skia/include/sksl/DSLSymbols.h +71 -0
- package/cpp/skia/include/sksl/DSLType.h +259 -0
- package/cpp/skia/include/sksl/DSLVar.h +310 -0
- package/cpp/skia/include/sksl/DSLWrapper.h +77 -0
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +115 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +37 -0
- package/cpp/skia/include/third_party/skcms/LICENSE +29 -0
- package/cpp/skia/include/third_party/skcms/skcms.h +394 -0
- package/cpp/skia/include/third_party/vulkan/LICENSE +29 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +93 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +112 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +12620 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +315 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +55 -0
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +60 -0
- package/cpp/skia/include/utils/SkBase64.h +51 -0
- package/cpp/skia/include/utils/SkCamera.h +107 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +78 -0
- package/cpp/skia/include/utils/SkCustomTypeface.h +48 -0
- package/cpp/skia/include/utils/SkEventTracer.h +79 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +92 -0
- package/cpp/skia/include/utils/SkNoDrawCanvas.h +80 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +18 -0
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +53 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +107 -0
- package/cpp/skia/include/utils/SkParse.h +32 -0
- package/cpp/skia/include/utils/SkParsePath.h +25 -0
- package/cpp/skia/include/utils/SkRandom.h +169 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +85 -0
- package/cpp/skia/include/utils/SkTextUtils.h +38 -0
- package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
- package/cpp/skia/include/utils/mac/SkCGUtils.h +78 -0
- package/cpp/skia/modules/skresources/include/SkResources.h +254 -0
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +134 -0
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +96 -0
- package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFe.h +85 -0
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +89 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +121 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +47 -0
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +40 -0
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +39 -0
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
- package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +48 -0
- package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
- package/cpp/skia/modules/svg/include/SkSVGImage.h +58 -0
- package/cpp/skia/modules/svg/include/SkSVGLine.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +37 -0
- package/cpp/skia/modules/svg/include/SkSVGMask.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGNode.h +223 -0
- package/cpp/skia/modules/svg/include/SkSVGPath.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +55 -0
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +38 -0
- package/cpp/skia/modules/svg/include/SkSVGRect.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +188 -0
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +52 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +33 -0
- package/cpp/skia/modules/svg/include/SkSVGStop.h +34 -0
- package/cpp/skia/modules/svg/include/SkSVGText.h +122 -0
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +691 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
- package/cpp/skia/readme.txt +1 -0
- package/cpp/utils/RNSkLog.h +53 -0
- package/cpp/utils/RNSkMeasureTime.h +32 -0
- package/cpp/utils/RNSkTimingInfo.h +91 -0
- package/ios/RNSkia-iOS/DisplayLink.h +17 -0
- package/ios/RNSkia-iOS/DisplayLink.mm +36 -0
- package/ios/RNSkia-iOS/PlatformContext.h +50 -0
- package/ios/RNSkia-iOS/PlatformContext.mm +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +57 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +98 -0
- package/ios/RNSkia-iOS/SkiaDrawView.h +23 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +165 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.h +7 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +42 -0
- package/ios/RNSkia-iOS/SkiaManager.h +17 -0
- package/ios/RNSkia-iOS/SkiaManager.mm +50 -0
- package/ios/RNSkiaModule.h +11 -0
- package/ios/RNSkiaModule.mm +42 -0
- package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
- package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
- package/lib/commonjs/external/index.js +19 -0
- package/lib/commonjs/external/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/index.js +19 -0
- package/lib/commonjs/external/reanimated/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js +86 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/commonjs/index.js +73 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/renderer/Canvas.js +186 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -0
- package/lib/commonjs/renderer/DependencyManager.js +70 -0
- package/lib/commonjs/renderer/DependencyManager.js.map +1 -0
- package/lib/commonjs/renderer/DrawingContext.js +6 -0
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
- package/lib/commonjs/renderer/HostConfig.js +272 -0
- package/lib/commonjs/renderer/HostConfig.js.map +1 -0
- package/lib/commonjs/renderer/components/Blend.js +46 -0
- package/lib/commonjs/renderer/components/Blend.js.map +1 -0
- package/lib/commonjs/renderer/components/Compose.js +41 -0
- package/lib/commonjs/renderer/components/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/Defs.js +30 -0
- package/lib/commonjs/renderer/components/Defs.js.map +1 -0
- package/lib/commonjs/renderer/components/Group.js +73 -0
- package/lib/commonjs/renderer/components/Group.js.map +1 -0
- package/lib/commonjs/renderer/components/Mask.js +58 -0
- package/lib/commonjs/renderer/components/Mask.js.map +1 -0
- package/lib/commonjs/renderer/components/Paint.js +54 -0
- package/lib/commonjs/renderer/components/Paint.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +33 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +54 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/index.js +32 -0
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js +24 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +41 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js +162 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/commonjs/renderer/components/image/Image.js +55 -0
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js +45 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js +82 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/commonjs/renderer/components/image/index.js +58 -0
- package/lib/commonjs/renderer/components/image/index.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +43 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +53 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DropShadow.js +45 -0
- package/lib/commonjs/renderer/components/imageFilters/DropShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +60 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +43 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +39 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js +33 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/index.js +214 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +42 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js +19 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +46 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +43 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +53 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +49 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +32 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js +97 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Color.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +42 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +43 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +43 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js +80 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +52 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +42 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +45 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/index.js +123 -0
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js +42 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js +31 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js +38 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Line.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js +38 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js +52 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Path.js +58 -0
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Points.js +45 -0
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js +34 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +37 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js +54 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/index.js +162 -0
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js +60 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Text.js +45 -0
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js +40 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextPath.js +95 -0
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
- package/lib/commonjs/renderer/components/text/index.js +58 -0
- package/lib/commonjs/renderer/components/text/index.js.map +1 -0
- package/lib/commonjs/renderer/index.js +45 -0
- package/lib/commonjs/renderer/index.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Container.js +28 -0
- package/lib/commonjs/renderer/nodes/Container.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Declaration.js +47 -0
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Drawing.js +75 -0
- package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Node.js +78 -0
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -0
- package/lib/commonjs/renderer/nodes/index.js +58 -0
- package/lib/commonjs/renderer/nodes/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js +52 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.js +19 -0
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Circles.js +25 -0
- package/lib/commonjs/renderer/processors/Circles.js.map +1 -0
- package/lib/commonjs/renderer/processors/Clips.js +24 -0
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -0
- package/lib/commonjs/renderer/processors/Font.js +39 -0
- package/lib/commonjs/renderer/processors/Font.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paint.js +91 -0
- package/lib/commonjs/renderer/processors/Paint.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paths.js +26 -0
- package/lib/commonjs/renderer/processors/Paths.js.map +1 -0
- package/lib/commonjs/renderer/processors/Radius.js +19 -0
- package/lib/commonjs/renderer/processors/Radius.js.map +1 -0
- package/lib/commonjs/renderer/processors/Rects.js +98 -0
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -0
- package/lib/commonjs/renderer/processors/Transform.js +56 -0
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -0
- package/lib/commonjs/renderer/processors/index.js +136 -0
- package/lib/commonjs/renderer/processors/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js +43 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Math.js +11 -0
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Matrix3.js +81 -0
- package/lib/commonjs/renderer/processors/math/Matrix3.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js +22 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Vector.js +61 -0
- package/lib/commonjs/renderer/processors/math/Vector.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/index.js +71 -0
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
- package/lib/commonjs/renderer/typeddash.js +17 -0
- package/lib/commonjs/renderer/typeddash.js.map +1 -0
- package/lib/commonjs/skia/Canvas.js +22 -0
- package/lib/commonjs/skia/Canvas.js.map +1 -0
- package/lib/commonjs/skia/Color.js +77 -0
- package/lib/commonjs/skia/Color.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilter.js +11 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilterFactory.js +6 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/index.js +32 -0
- package/lib/commonjs/skia/ColorFilter/index.js.map +1 -0
- package/lib/commonjs/skia/ContourMeasure.js +6 -0
- package/lib/commonjs/skia/ContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/Data/Data.js +53 -0
- package/lib/commonjs/skia/Data/Data.js.map +1 -0
- package/lib/commonjs/skia/Data/DataFactory.js +6 -0
- package/lib/commonjs/skia/Data/DataFactory.js.map +1 -0
- package/lib/commonjs/skia/Data/index.js +32 -0
- package/lib/commonjs/skia/Data/index.js.map +1 -0
- package/lib/commonjs/skia/Font/Font.js +81 -0
- package/lib/commonjs/skia/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/Font/index.js +32 -0
- package/lib/commonjs/skia/Font/index.js.map +1 -0
- package/lib/commonjs/skia/Font/useFont.js +36 -0
- package/lib/commonjs/skia/Font/useFont.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/FontMgr.js +6 -0
- package/lib/commonjs/skia/FontMgr/FontMgr.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/FontMgrFactory.js +6 -0
- package/lib/commonjs/skia/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/index.js +19 -0
- package/lib/commonjs/skia/FontMgr/index.js.map +1 -0
- package/lib/commonjs/skia/Image/Image.js +32 -0
- package/lib/commonjs/skia/Image/Image.js.map +1 -0
- package/lib/commonjs/skia/Image/ImageFactory.js +46 -0
- package/lib/commonjs/skia/Image/ImageFactory.js.map +1 -0
- package/lib/commonjs/skia/Image/index.js +45 -0
- package/lib/commonjs/skia/Image/index.js.map +1 -0
- package/lib/commonjs/skia/Image/useImage.js +18 -0
- package/lib/commonjs/skia/Image/useImage.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilter.js +20 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js +16 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/index.js +32 -0
- package/lib/commonjs/skia/ImageFilter/index.js.map +1 -0
- package/lib/commonjs/skia/JsiInstance.js +2 -0
- package/lib/commonjs/skia/JsiInstance.js.map +1 -0
- package/lib/commonjs/skia/MaskFilter.js +20 -0
- package/lib/commonjs/skia/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/Matrix.js +21 -0
- package/lib/commonjs/skia/Matrix.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.js +19 -0
- package/lib/commonjs/skia/NativeSetup.js.map +1 -0
- package/lib/commonjs/skia/Paint/BlendMode.js +69 -0
- package/lib/commonjs/skia/Paint/BlendMode.js.map +1 -0
- package/lib/commonjs/skia/Paint/Paint.js +36 -0
- package/lib/commonjs/skia/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/Paint/index.js +45 -0
- package/lib/commonjs/skia/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/Paint/usePaint.js +28 -0
- package/lib/commonjs/skia/Paint/usePaint.js.map +1 -0
- package/lib/commonjs/skia/Path/Path.js +35 -0
- package/lib/commonjs/skia/Path/Path.js.map +1 -0
- package/lib/commonjs/skia/Path/PathFactory.js +6 -0
- package/lib/commonjs/skia/Path/PathFactory.js.map +1 -0
- package/lib/commonjs/skia/Path/index.js +45 -0
- package/lib/commonjs/skia/Path/index.js.map +1 -0
- package/lib/commonjs/skia/Path/usePath.js +60 -0
- package/lib/commonjs/skia/Path/usePath.js.map +1 -0
- package/lib/commonjs/skia/PathEffect.js +19 -0
- package/lib/commonjs/skia/PathEffect.js.map +1 -0
- package/lib/commonjs/skia/Point.js +15 -0
- package/lib/commonjs/skia/Point.js.map +1 -0
- package/lib/commonjs/skia/RRect.js +6 -0
- package/lib/commonjs/skia/RRect.js.map +1 -0
- package/lib/commonjs/skia/RSXform.js +6 -0
- package/lib/commonjs/skia/RSXform.js.map +1 -0
- package/lib/commonjs/skia/Rect.js +2 -0
- package/lib/commonjs/skia/Rect.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffect.js +6 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffectFactory.js +6 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/index.js +32 -0
- package/lib/commonjs/skia/RuntimeEffect/index.js.map +1 -0
- package/lib/commonjs/skia/SVG/SVG.js +6 -0
- package/lib/commonjs/skia/SVG/SVG.js.map +1 -0
- package/lib/commonjs/skia/SVG/SVGFactory.js +6 -0
- package/lib/commonjs/skia/SVG/SVGFactory.js.map +1 -0
- package/lib/commonjs/skia/SVG/index.js +45 -0
- package/lib/commonjs/skia/SVG/index.js.map +1 -0
- package/lib/commonjs/skia/SVG/useSvg.js +15 -0
- package/lib/commonjs/skia/SVG/useSvg.js.map +1 -0
- package/lib/commonjs/skia/Shader/Shader.js +11 -0
- package/lib/commonjs/skia/Shader/Shader.js.map +1 -0
- package/lib/commonjs/skia/Shader/ShaderFactory.js +6 -0
- package/lib/commonjs/skia/Shader/ShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/Shader/index.js +45 -0
- package/lib/commonjs/skia/Shader/index.js.map +1 -0
- package/lib/commonjs/skia/Shader/useShader.js +15 -0
- package/lib/commonjs/skia/Shader/useShader.js.map +1 -0
- package/lib/commonjs/skia/Skia.js +49 -0
- package/lib/commonjs/skia/Skia.js.map +1 -0
- package/lib/commonjs/skia/Surface/Surface.js +6 -0
- package/lib/commonjs/skia/Surface/Surface.js.map +1 -0
- package/lib/commonjs/skia/Surface/SurfaceFactory.js +6 -0
- package/lib/commonjs/skia/Surface/SurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/Surface/index.js +32 -0
- package/lib/commonjs/skia/Surface/index.js.map +1 -0
- package/lib/commonjs/skia/TextBlob.js +6 -0
- package/lib/commonjs/skia/TextBlob.js.map +1 -0
- package/lib/commonjs/skia/Typeface/Typeface.js +6 -0
- package/lib/commonjs/skia/Typeface/Typeface.js.map +1 -0
- package/lib/commonjs/skia/Typeface/TypefaceFactory.js +6 -0
- package/lib/commonjs/skia/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/Typeface/index.js +45 -0
- package/lib/commonjs/skia/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/Typeface/useTypeface.js +18 -0
- package/lib/commonjs/skia/Typeface/useTypeface.js.map +1 -0
- package/lib/commonjs/skia/Vertices/Vertices.js +15 -0
- package/lib/commonjs/skia/Vertices/Vertices.js.map +1 -0
- package/lib/commonjs/skia/Vertices/index.js +19 -0
- package/lib/commonjs/skia/Vertices/index.js.map +1 -0
- package/lib/commonjs/skia/index.js +311 -0
- package/lib/commonjs/skia/index.js.map +1 -0
- package/lib/commonjs/values/animation/decay/decay.js +42 -0
- package/lib/commonjs/values/animation/decay/decay.js.map +1 -0
- package/lib/commonjs/values/animation/decay/index.js +14 -0
- package/lib/commonjs/values/animation/decay/index.js.map +1 -0
- package/lib/commonjs/values/animation/decay/runDecay.js +48 -0
- package/lib/commonjs/values/animation/decay/runDecay.js.map +1 -0
- package/lib/commonjs/values/animation/decay/types.js +6 -0
- package/lib/commonjs/values/animation/decay/types.js.map +1 -0
- package/lib/commonjs/values/animation/functions/index.js +28 -0
- package/lib/commonjs/values/animation/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/functions/interpolate.js +139 -0
- package/lib/commonjs/values/animation/functions/interpolate.js.map +1 -0
- package/lib/commonjs/values/animation/functions/interpolateColors.js +47 -0
- package/lib/commonjs/values/animation/functions/interpolateColors.js.map +1 -0
- package/lib/commonjs/values/animation/index.js +58 -0
- package/lib/commonjs/values/animation/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/Spring.js +77 -0
- package/lib/commonjs/values/animation/spring/Spring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/functions/index.js +14 -0
- package/lib/commonjs/values/animation/spring/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/functions/spring.js +94 -0
- package/lib/commonjs/values/animation/spring/functions/spring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/index.js +30 -0
- package/lib/commonjs/values/animation/spring/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/runSpring.js +32 -0
- package/lib/commonjs/values/animation/spring/runSpring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/types.js +2 -0
- package/lib/commonjs/values/animation/spring/types.js.map +1 -0
- package/lib/commonjs/values/animation/spring/useSpring.js +24 -0
- package/lib/commonjs/values/animation/spring/useSpring.js.map +1 -0
- package/lib/commonjs/values/animation/timing/Easing.js +108 -0
- package/lib/commonjs/values/animation/timing/Easing.js.map +1 -0
- package/lib/commonjs/values/animation/timing/createTiming.js +59 -0
- package/lib/commonjs/values/animation/timing/createTiming.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/bezier.js +147 -0
- package/lib/commonjs/values/animation/timing/functions/bezier.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/getResolvedParams.js +56 -0
- package/lib/commonjs/values/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/index.js +54 -0
- package/lib/commonjs/values/animation/timing/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/timing.js +50 -0
- package/lib/commonjs/values/animation/timing/functions/timing.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/types.js +2 -0
- package/lib/commonjs/values/animation/timing/functions/types.js.map +1 -0
- package/lib/commonjs/values/animation/timing/index.js +38 -0
- package/lib/commonjs/values/animation/timing/index.js.map +1 -0
- package/lib/commonjs/values/animation/timing/runTiming.js +33 -0
- package/lib/commonjs/values/animation/timing/runTiming.js.map +1 -0
- package/lib/commonjs/values/animation/timing/useLoop.js +22 -0
- package/lib/commonjs/values/animation/timing/useLoop.js.map +1 -0
- package/lib/commonjs/values/animation/timing/useTiming.js +66 -0
- package/lib/commonjs/values/animation/timing/useTiming.js.map +1 -0
- package/lib/commonjs/values/animation/types.js +2 -0
- package/lib/commonjs/values/animation/types.js.map +1 -0
- package/lib/commonjs/values/api.js +20 -0
- package/lib/commonjs/values/api.js.map +1 -0
- package/lib/commonjs/values/hooks/index.js +58 -0
- package/lib/commonjs/values/hooks/index.js.map +1 -0
- package/lib/commonjs/values/hooks/useClockValue.js +27 -0
- package/lib/commonjs/values/hooks/useClockValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useDerivedValue.js +25 -0
- package/lib/commonjs/values/hooks/useDerivedValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValue.js +23 -0
- package/lib/commonjs/values/hooks/useValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValueEffect.js +22 -0
- package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -0
- package/lib/commonjs/values/index.js +58 -0
- package/lib/commonjs/values/index.js.map +1 -0
- package/lib/commonjs/values/types.js +2 -0
- package/lib/commonjs/values/types.js.map +1 -0
- package/lib/commonjs/views/SkiaView.js +163 -0
- package/lib/commonjs/views/SkiaView.js.map +1 -0
- package/lib/commonjs/views/index.js +58 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/commonjs/views/types.js +16 -0
- package/lib/commonjs/views/types.js.map +1 -0
- package/lib/commonjs/views/useDrawCallback.js +23 -0
- package/lib/commonjs/views/useDrawCallback.js.map +1 -0
- package/lib/commonjs/views/useTouchHandler.js +75 -0
- package/lib/commonjs/views/useTouchHandler.js.map +1 -0
- package/lib/module/external/index.js +2 -0
- package/lib/module/external/index.js.map +1 -0
- package/lib/module/external/reanimated/index.js +2 -0
- package/lib/module/external/reanimated/index.js.map +1 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js +81 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/renderer/Canvas.js +149 -0
- package/lib/module/renderer/Canvas.js.map +1 -0
- package/lib/module/renderer/DependencyManager.js +60 -0
- package/lib/module/renderer/DependencyManager.js.map +1 -0
- package/lib/module/renderer/DrawingContext.js +2 -0
- package/lib/module/renderer/DrawingContext.js.map +1 -0
- package/lib/module/renderer/HostConfig.js +259 -0
- package/lib/module/renderer/HostConfig.js.map +1 -0
- package/lib/module/renderer/components/Blend.js +28 -0
- package/lib/module/renderer/components/Blend.js.map +1 -0
- package/lib/module/renderer/components/Compose.js +24 -0
- package/lib/module/renderer/components/Compose.js.map +1 -0
- package/lib/module/renderer/components/Defs.js +16 -0
- package/lib/module/renderer/components/Defs.js.map +1 -0
- package/lib/module/renderer/components/Group.js +58 -0
- package/lib/module/renderer/components/Group.js.map +1 -0
- package/lib/module/renderer/components/Mask.js +40 -0
- package/lib/module/renderer/components/Mask.js.map +1 -0
- package/lib/module/renderer/components/Paint.js +36 -0
- package/lib/module/renderer/components/Paint.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +19 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +39 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/module/renderer/components/backdrop/index.js +3 -0
- package/lib/module/renderer/components/backdrop/index.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js +21 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Compose.js +14 -0
- package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js +21 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +17 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +17 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js +20 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +17 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/index.js +7 -0
- package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/module/renderer/components/image/BoxFit.js +145 -0
- package/lib/module/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/module/renderer/components/image/Image.js +39 -0
- package/lib/module/renderer/components/image/Image.js.map +1 -0
- package/lib/module/renderer/components/image/ImageSVG.js +30 -0
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/module/renderer/components/image/ImageShader.js +66 -0
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/module/renderer/components/image/index.js +5 -0
- package/lib/module/renderer/components/image/index.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Blur.js +25 -0
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +32 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DropShadow.js +28 -0
- package/lib/module/renderer/components/imageFilters/DropShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js +38 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js +26 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Offset.js +23 -0
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/getInput.js +23 -0
- package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/index.js +7 -0
- package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/module/renderer/components/index.js +17 -0
- package/lib/module/renderer/components/index.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/Blur.js +25 -0
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/index.js +2 -0
- package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Corner.js +29 -0
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Dash.js +26 -0
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js +30 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js +30 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js +34 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js +31 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Sum.js +16 -0
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/index.js +8 -0
- package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/module/renderer/components/shaders/Color.js +17 -0
- package/lib/module/renderer/components/shaders/Color.js.map +1 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js +27 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/module/renderer/components/shaders/Gradient.js +20 -0
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js +27 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js +27 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Shader.js +64 -0
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js +28 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Turbulence.js +27 -0
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +29 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/index.js +10 -0
- package/lib/module/renderer/components/shaders/index.js.map +1 -0
- package/lib/module/renderer/components/shapes/Circle.js +26 -0
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/module/renderer/components/shapes/DiffRect.js +21 -0
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Fill.js +17 -0
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/module/renderer/components/shapes/FitBox.js +22 -0
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/module/renderer/components/shapes/Line.js +21 -0
- package/lib/module/renderer/components/shapes/Line.js.map +1 -0
- package/lib/module/renderer/components/shapes/Oval.js +23 -0
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/module/renderer/components/shapes/Patch.js +35 -0
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/module/renderer/components/shapes/Path.js +43 -0
- package/lib/module/renderer/components/shapes/Path.js.map +1 -0
- package/lib/module/renderer/components/shapes/Points.js +27 -0
- package/lib/module/renderer/components/shapes/Points.js.map +1 -0
- package/lib/module/renderer/components/shapes/Rect.js +19 -0
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js +22 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Vertices.js +36 -0
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/module/renderer/components/shapes/index.js +13 -0
- package/lib/module/renderer/components/shapes/index.js.map +1 -0
- package/lib/module/renderer/components/text/Glyphs.js +45 -0
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/module/renderer/components/text/Text.js +30 -0
- package/lib/module/renderer/components/text/Text.js.map +1 -0
- package/lib/module/renderer/components/text/TextBlob.js +26 -0
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/module/renderer/components/text/TextPath.js +76 -0
- package/lib/module/renderer/components/text/TextPath.js.map +1 -0
- package/lib/module/renderer/components/text/index.js +5 -0
- package/lib/module/renderer/components/text/index.js.map +1 -0
- package/lib/module/renderer/index.js +4 -0
- package/lib/module/renderer/index.js.map +1 -0
- package/lib/module/renderer/nodes/Container.js +18 -0
- package/lib/module/renderer/nodes/Container.js.map +1 -0
- package/lib/module/renderer/nodes/Declaration.js +33 -0
- package/lib/module/renderer/nodes/Declaration.js.map +1 -0
- package/lib/module/renderer/nodes/Drawing.js +53 -0
- package/lib/module/renderer/nodes/Drawing.js.map +1 -0
- package/lib/module/renderer/nodes/Node.js +67 -0
- package/lib/module/renderer/nodes/Node.js.map +1 -0
- package/lib/module/renderer/nodes/index.js +5 -0
- package/lib/module/renderer/nodes/index.js.map +1 -0
- package/lib/module/renderer/processors/Animations/Animations.js +36 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/module/renderer/processors/Animations/index.js +2 -0
- package/lib/module/renderer/processors/Animations/index.js.map +1 -0
- package/lib/module/renderer/processors/Circles.js +16 -0
- package/lib/module/renderer/processors/Circles.js.map +1 -0
- package/lib/module/renderer/processors/Clips.js +13 -0
- package/lib/module/renderer/processors/Clips.js.map +1 -0
- package/lib/module/renderer/processors/Font.js +26 -0
- package/lib/module/renderer/processors/Font.js.map +1 -0
- package/lib/module/renderer/processors/Paint.js +75 -0
- package/lib/module/renderer/processors/Paint.js.map +1 -0
- package/lib/module/renderer/processors/Paths.js +13 -0
- package/lib/module/renderer/processors/Paths.js.map +1 -0
- package/lib/module/renderer/processors/Radius.js +9 -0
- package/lib/module/renderer/processors/Radius.js.map +1 -0
- package/lib/module/renderer/processors/Rects.js +55 -0
- package/lib/module/renderer/processors/Rects.js.map +1 -0
- package/lib/module/renderer/processors/Transform.js +41 -0
- package/lib/module/renderer/processors/Transform.js.map +1 -0
- package/lib/module/renderer/processors/index.js +11 -0
- package/lib/module/renderer/processors/index.js.map +1 -0
- package/lib/module/renderer/processors/math/Coordinates.js +19 -0
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/module/renderer/processors/math/Math.js +2 -0
- package/lib/module/renderer/processors/math/Math.js.map +1 -0
- package/lib/module/renderer/processors/math/Matrix3.js +71 -0
- package/lib/module/renderer/processors/math/Matrix3.js.map +1 -0
- package/lib/module/renderer/processors/math/Transforms.js +12 -0
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/module/renderer/processors/math/Vector.js +30 -0
- package/lib/module/renderer/processors/math/Vector.js.map +1 -0
- package/lib/module/renderer/processors/math/index.js +6 -0
- package/lib/module/renderer/processors/math/index.js.map +1 -0
- package/lib/module/renderer/typeddash.js +5 -0
- package/lib/module/renderer/typeddash.js.map +1 -0
- package/lib/module/skia/Canvas.js +14 -0
- package/lib/module/skia/Canvas.js.map +1 -0
- package/lib/module/skia/Color.js +48 -0
- package/lib/module/skia/Color.js.map +1 -0
- package/lib/module/skia/ColorFilter/ColorFilter.js +2 -0
- package/lib/module/skia/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/module/skia/ColorFilter/ColorFilterFactory.js +2 -0
- package/lib/module/skia/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/module/skia/ColorFilter/index.js +3 -0
- package/lib/module/skia/ColorFilter/index.js.map +1 -0
- package/lib/module/skia/ContourMeasure.js +2 -0
- package/lib/module/skia/ContourMeasure.js.map +1 -0
- package/lib/module/skia/Data/Data.js +35 -0
- package/lib/module/skia/Data/Data.js.map +1 -0
- package/lib/module/skia/Data/DataFactory.js +2 -0
- package/lib/module/skia/Data/DataFactory.js.map +1 -0
- package/lib/module/skia/Data/index.js +3 -0
- package/lib/module/skia/Data/index.js.map +1 -0
- package/lib/module/skia/Font/Font.js +68 -0
- package/lib/module/skia/Font/Font.js.map +1 -0
- package/lib/module/skia/Font/index.js +3 -0
- package/lib/module/skia/Font/index.js.map +1 -0
- package/lib/module/skia/Font/useFont.js +24 -0
- package/lib/module/skia/Font/useFont.js.map +1 -0
- package/lib/module/skia/FontMgr/FontMgr.js +2 -0
- package/lib/module/skia/FontMgr/FontMgr.js.map +1 -0
- package/lib/module/skia/FontMgr/FontMgrFactory.js +2 -0
- package/lib/module/skia/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/module/skia/FontMgr/index.js +2 -0
- package/lib/module/skia/FontMgr/index.js.map +1 -0
- package/lib/module/skia/Image/Image.js +23 -0
- package/lib/module/skia/Image/Image.js.map +1 -0
- package/lib/module/skia/Image/ImageFactory.js +37 -0
- package/lib/module/skia/Image/ImageFactory.js.map +1 -0
- package/lib/module/skia/Image/index.js +4 -0
- package/lib/module/skia/Image/index.js.map +1 -0
- package/lib/module/skia/Image/useImage.js +8 -0
- package/lib/module/skia/Image/useImage.js.map +1 -0
- package/lib/module/skia/ImageFilter/ImageFilter.js +11 -0
- package/lib/module/skia/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/module/skia/ImageFilter/ImageFilterFactory.js +9 -0
- package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/module/skia/ImageFilter/index.js +3 -0
- package/lib/module/skia/ImageFilter/index.js.map +1 -0
- package/lib/module/skia/JsiInstance.js +2 -0
- package/lib/module/skia/JsiInstance.js.map +1 -0
- package/lib/module/skia/MaskFilter.js +11 -0
- package/lib/module/skia/MaskFilter.js.map +1 -0
- package/lib/module/skia/Matrix.js +14 -0
- package/lib/module/skia/Matrix.js.map +1 -0
- package/lib/module/skia/NativeSetup.js +17 -0
- package/lib/module/skia/NativeSetup.js.map +1 -0
- package/lib/module/skia/Paint/BlendMode.js +61 -0
- package/lib/module/skia/Paint/BlendMode.js.map +1 -0
- package/lib/module/skia/Paint/Paint.js +25 -0
- package/lib/module/skia/Paint/Paint.js.map +1 -0
- package/lib/module/skia/Paint/index.js +4 -0
- package/lib/module/skia/Paint/index.js.map +1 -0
- package/lib/module/skia/Paint/usePaint.js +17 -0
- package/lib/module/skia/Paint/usePaint.js.map +1 -0
- package/lib/module/skia/Path/Path.js +24 -0
- package/lib/module/skia/Path/Path.js.map +1 -0
- package/lib/module/skia/Path/PathFactory.js +2 -0
- package/lib/module/skia/Path/PathFactory.js.map +1 -0
- package/lib/module/skia/Path/index.js +4 -0
- package/lib/module/skia/Path/index.js.map +1 -0
- package/lib/module/skia/Path/usePath.js +44 -0
- package/lib/module/skia/Path/usePath.js.map +1 -0
- package/lib/module/skia/PathEffect.js +9 -0
- package/lib/module/skia/PathEffect.js.map +1 -0
- package/lib/module/skia/Point.js +8 -0
- package/lib/module/skia/Point.js.map +1 -0
- package/lib/module/skia/RRect.js +2 -0
- package/lib/module/skia/RRect.js.map +1 -0
- package/lib/module/skia/RSXform.js +2 -0
- package/lib/module/skia/RSXform.js.map +1 -0
- package/lib/module/skia/Rect.js +2 -0
- package/lib/module/skia/Rect.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffect.js +2 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffectFactory.js +2 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/index.js +3 -0
- package/lib/module/skia/RuntimeEffect/index.js.map +1 -0
- package/lib/module/skia/SVG/SVG.js +2 -0
- package/lib/module/skia/SVG/SVG.js.map +1 -0
- package/lib/module/skia/SVG/SVGFactory.js +2 -0
- package/lib/module/skia/SVG/SVGFactory.js.map +1 -0
- package/lib/module/skia/SVG/index.js +4 -0
- package/lib/module/skia/SVG/index.js.map +1 -0
- package/lib/module/skia/SVG/useSvg.js +4 -0
- package/lib/module/skia/SVG/useSvg.js.map +1 -0
- package/lib/module/skia/Shader/Shader.js +2 -0
- package/lib/module/skia/Shader/Shader.js.map +1 -0
- package/lib/module/skia/Shader/ShaderFactory.js +2 -0
- package/lib/module/skia/Shader/ShaderFactory.js.map +1 -0
- package/lib/module/skia/Shader/index.js +4 -0
- package/lib/module/skia/Shader/index.js.map +1 -0
- package/lib/module/skia/Shader/useShader.js +4 -0
- package/lib/module/skia/Shader/useShader.js.map +1 -0
- package/lib/module/skia/Skia.js +39 -0
- package/lib/module/skia/Skia.js.map +1 -0
- package/lib/module/skia/Surface/Surface.js +2 -0
- package/lib/module/skia/Surface/Surface.js.map +1 -0
- package/lib/module/skia/Surface/SurfaceFactory.js +2 -0
- package/lib/module/skia/Surface/SurfaceFactory.js.map +1 -0
- package/lib/module/skia/Surface/index.js +3 -0
- package/lib/module/skia/Surface/index.js.map +1 -0
- package/lib/module/skia/TextBlob.js +2 -0
- package/lib/module/skia/TextBlob.js.map +1 -0
- package/lib/module/skia/Typeface/Typeface.js +2 -0
- package/lib/module/skia/Typeface/Typeface.js.map +1 -0
- package/lib/module/skia/Typeface/TypefaceFactory.js +2 -0
- package/lib/module/skia/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/module/skia/Typeface/index.js +4 -0
- package/lib/module/skia/Typeface/index.js.map +1 -0
- package/lib/module/skia/Typeface/useTypeface.js +8 -0
- package/lib/module/skia/Typeface/useTypeface.js.map +1 -0
- package/lib/module/skia/Vertices/Vertices.js +8 -0
- package/lib/module/skia/Vertices/Vertices.js.map +1 -0
- package/lib/module/skia/Vertices/index.js +2 -0
- package/lib/module/skia/Vertices/index.js.map +1 -0
- package/lib/module/skia/index.js +23 -0
- package/lib/module/skia/index.js.map +1 -0
- package/lib/module/values/animation/decay/decay.js +33 -0
- package/lib/module/values/animation/decay/decay.js.map +1 -0
- package/lib/module/values/animation/decay/index.js +2 -0
- package/lib/module/values/animation/decay/index.js.map +1 -0
- package/lib/module/values/animation/decay/runDecay.js +38 -0
- package/lib/module/values/animation/decay/runDecay.js.map +1 -0
- package/lib/module/values/animation/decay/types.js +2 -0
- package/lib/module/values/animation/decay/types.js.map +1 -0
- package/lib/module/values/animation/functions/index.js +3 -0
- package/lib/module/values/animation/functions/index.js.map +1 -0
- package/lib/module/values/animation/functions/interpolate.js +132 -0
- package/lib/module/values/animation/functions/interpolate.js.map +1 -0
- package/lib/module/values/animation/functions/interpolateColors.js +32 -0
- package/lib/module/values/animation/functions/interpolateColors.js.map +1 -0
- package/lib/module/values/animation/index.js +5 -0
- package/lib/module/values/animation/index.js.map +1 -0
- package/lib/module/values/animation/spring/Spring.js +69 -0
- package/lib/module/values/animation/spring/Spring.js.map +1 -0
- package/lib/module/values/animation/spring/functions/index.js +2 -0
- package/lib/module/values/animation/spring/functions/index.js.map +1 -0
- package/lib/module/values/animation/spring/functions/spring.js +85 -0
- package/lib/module/values/animation/spring/functions/spring.js.map +1 -0
- package/lib/module/values/animation/spring/index.js +4 -0
- package/lib/module/values/animation/spring/index.js.map +1 -0
- package/lib/module/values/animation/spring/runSpring.js +21 -0
- package/lib/module/values/animation/spring/runSpring.js.map +1 -0
- package/lib/module/values/animation/spring/types.js +2 -0
- package/lib/module/values/animation/spring/types.js.map +1 -0
- package/lib/module/values/animation/spring/useSpring.js +13 -0
- package/lib/module/values/animation/spring/useSpring.js.map +1 -0
- package/lib/module/values/animation/timing/Easing.js +98 -0
- package/lib/module/values/animation/timing/Easing.js.map +1 -0
- package/lib/module/values/animation/timing/createTiming.js +49 -0
- package/lib/module/values/animation/timing/createTiming.js.map +1 -0
- package/lib/module/values/animation/timing/functions/bezier.js +141 -0
- package/lib/module/values/animation/timing/functions/bezier.js.map +1 -0
- package/lib/module/values/animation/timing/functions/getResolvedParams.js +48 -0
- package/lib/module/values/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/module/values/animation/timing/functions/index.js +5 -0
- package/lib/module/values/animation/timing/functions/index.js.map +1 -0
- package/lib/module/values/animation/timing/functions/timing.js +41 -0
- package/lib/module/values/animation/timing/functions/timing.js.map +1 -0
- package/lib/module/values/animation/timing/functions/types.js +2 -0
- package/lib/module/values/animation/timing/functions/types.js.map +1 -0
- package/lib/module/values/animation/timing/index.js +5 -0
- package/lib/module/values/animation/timing/index.js.map +1 -0
- package/lib/module/values/animation/timing/runTiming.js +23 -0
- package/lib/module/values/animation/timing/runTiming.js.map +1 -0
- package/lib/module/values/animation/timing/useLoop.js +13 -0
- package/lib/module/values/animation/timing/useLoop.js.map +1 -0
- package/lib/module/values/animation/timing/useTiming.js +54 -0
- package/lib/module/values/animation/timing/useTiming.js.map +1 -0
- package/lib/module/values/animation/types.js +2 -0
- package/lib/module/values/animation/types.js.map +1 -0
- package/lib/module/values/api.js +11 -0
- package/lib/module/values/api.js.map +1 -0
- package/lib/module/values/hooks/index.js +5 -0
- package/lib/module/values/hooks/index.js.map +1 -0
- package/lib/module/values/hooks/useClockValue.js +17 -0
- package/lib/module/values/hooks/useClockValue.js.map +1 -0
- package/lib/module/values/hooks/useDerivedValue.js +14 -0
- package/lib/module/values/hooks/useDerivedValue.js.map +1 -0
- package/lib/module/values/hooks/useValue.js +13 -0
- package/lib/module/values/hooks/useValue.js.map +1 -0
- package/lib/module/values/hooks/useValueEffect.js +13 -0
- package/lib/module/values/hooks/useValueEffect.js.map +1 -0
- package/lib/module/values/index.js +5 -0
- package/lib/module/values/index.js.map +1 -0
- package/lib/module/values/types.js +2 -0
- package/lib/module/values/types.js.map +1 -0
- package/lib/module/views/SkiaView.js +149 -0
- package/lib/module/views/SkiaView.js.map +1 -0
- package/lib/module/views/index.js +5 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/module/views/types.js +9 -0
- package/lib/module/views/types.js.map +1 -0
- package/lib/module/views/useDrawCallback.js +14 -0
- package/lib/module/views/useDrawCallback.js.map +1 -0
- package/lib/module/views/useTouchHandler.js +64 -0
- package/lib/module/views/useTouchHandler.js.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/scripts/install-npm.d.ts +1 -0
- package/lib/typescript/src/external/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +26 -0
- package/lib/typescript/src/renderer/DependencyManager.d.ts +21 -0
- package/lib/typescript/src/renderer/DrawingContext.d.ts +13 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +27 -0
- package/lib/typescript/src/renderer/components/Blend.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Compose.d.ts +6 -0
- package/lib/typescript/src/renderer/components/Defs.d.ts +5 -0
- package/lib/typescript/src/renderer/components/Group.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Mask.d.ts +15 -0
- package/lib/typescript/src/renderer/components/Paint.d.ts +9 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +8 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +10 -0
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +3 -0
- package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +7 -0
- package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +9 -0
- package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +23 -0
- package/lib/typescript/src/renderer/components/image/Image.d.ts +19 -0
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +7 -0
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +26 -0
- package/lib/typescript/src/renderer/components/image/index.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +15 -0
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +10 -0
- package/lib/typescript/src/renderer/components/imageFilters/DropShadow.d.ts +11 -0
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +12 -0
- package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +13 -0
- package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +14 -0
- package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -0
- package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/index.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +7 -0
- package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +8 -0
- package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +14 -0
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +9 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +13 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +10 -0
- package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +6 -0
- package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +17 -0
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +12 -0
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +5 -0
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +16 -0
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +15 -0
- package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shapes/index.d.ts +12 -0
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +20 -0
- package/lib/typescript/src/renderer/components/text/Text.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/src/renderer/index.d.ts +3 -0
- package/lib/typescript/src/renderer/nodes/Container.d.ts +8 -0
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +19 -0
- package/lib/typescript/src/renderer/nodes/Drawing.d.ts +21 -0
- package/lib/typescript/src/renderer/nodes/Node.d.ts +23 -0
- package/lib/typescript/src/renderer/nodes/index.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +9 -0
- package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Circles.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/Clips.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/Font.d.ts +12 -0
- package/lib/typescript/src/renderer/processors/Paint.d.ts +21 -0
- package/lib/typescript/src/renderer/processors/Paths.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Radius.d.ts +3 -0
- package/lib/typescript/src/renderer/processors/Rects.d.ts +61 -0
- package/lib/typescript/src/renderer/processors/Transform.d.ts +91 -0
- package/lib/typescript/src/renderer/processors/index.d.ts +10 -0
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/typescript/src/renderer/processors/math/Math.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/math/Vector.d.ts +35 -0
- package/lib/typescript/src/renderer/processors/math/index.d.ts +5 -0
- package/lib/typescript/src/renderer/typeddash.d.ts +2 -0
- package/lib/typescript/src/skia/Canvas.d.ts +375 -0
- package/lib/typescript/src/skia/Color.d.ts +10 -0
- package/lib/typescript/src/skia/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/typescript/src/skia/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/typescript/src/skia/ColorFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/ContourMeasure.d.ts +42 -0
- package/lib/typescript/src/skia/Data/Data.d.ts +9 -0
- package/lib/typescript/src/skia/Data/DataFactory.d.ts +18 -0
- package/lib/typescript/src/skia/Data/index.d.ts +2 -0
- package/lib/typescript/src/skia/Font/Font.d.ts +187 -0
- package/lib/typescript/src/skia/Font/index.d.ts +2 -0
- package/lib/typescript/src/skia/Font/useFont.d.ts +6 -0
- package/lib/typescript/src/skia/FontMgr/FontMgr.d.ts +18 -0
- package/lib/typescript/src/skia/FontMgr/FontMgrFactory.d.ts +4 -0
- package/lib/typescript/src/skia/FontMgr/index.d.ts +1 -0
- package/lib/typescript/src/skia/Image/Image.d.ts +75 -0
- package/lib/typescript/src/skia/Image/ImageFactory.d.ts +62 -0
- package/lib/typescript/src/skia/Image/index.d.ts +3 -0
- package/lib/typescript/src/skia/Image/useImage.d.ts +5 -0
- package/lib/typescript/src/skia/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/typescript/src/skia/ImageFilter/ImageFilterFactory.d.ts +114 -0
- package/lib/typescript/src/skia/ImageFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/JsiInstance.d.ts +3 -0
- package/lib/typescript/src/skia/MaskFilter.d.ts +21 -0
- package/lib/typescript/src/skia/Matrix.d.ts +22 -0
- package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/src/skia/Paint/BlendMode.d.ts +58 -0
- package/lib/typescript/src/skia/Paint/Paint.d.ts +127 -0
- package/lib/typescript/src/skia/Paint/index.d.ts +3 -0
- package/lib/typescript/src/skia/Paint/usePaint.d.ts +6 -0
- package/lib/typescript/src/skia/Path/Path.d.ts +443 -0
- package/lib/typescript/src/skia/Path/PathFactory.d.ts +18 -0
- package/lib/typescript/src/skia/Path/index.d.ts +3 -0
- package/lib/typescript/src/skia/Path/usePath.d.ts +22 -0
- package/lib/typescript/src/skia/PathEffect.d.ts +75 -0
- package/lib/typescript/src/skia/Point.d.ts +9 -0
- package/lib/typescript/src/skia/RRect.d.ts +6 -0
- package/lib/typescript/src/skia/RSXform.d.ts +2 -0
- package/lib/typescript/src/skia/Rect.d.ts +6 -0
- package/lib/typescript/src/skia/RuntimeEffect/RuntimeEffect.d.ts +47 -0
- package/lib/typescript/src/skia/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/typescript/src/skia/RuntimeEffect/index.d.ts +2 -0
- package/lib/typescript/src/skia/SVG/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/SVG/SVGFactory.d.ts +6 -0
- package/lib/typescript/src/skia/SVG/index.d.ts +3 -0
- package/lib/typescript/src/skia/SVG/useSvg.d.ts +2 -0
- package/lib/typescript/src/skia/Shader/Shader.d.ts +3 -0
- package/lib/typescript/src/skia/Shader/ShaderFactory.d.ts +104 -0
- package/lib/typescript/src/skia/Shader/index.d.ts +3 -0
- package/lib/typescript/src/skia/Shader/useShader.d.ts +1 -0
- package/lib/typescript/src/skia/Skia.d.ts +101 -0
- package/lib/typescript/src/skia/Surface/Surface.d.ts +25 -0
- package/lib/typescript/src/skia/Surface/SurfaceFactory.d.ts +11 -0
- package/lib/typescript/src/skia/Surface/index.d.ts +2 -0
- package/lib/typescript/src/skia/TextBlob.d.ts +44 -0
- package/lib/typescript/src/skia/Typeface/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/typescript/src/skia/Typeface/index.d.ts +3 -0
- package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +5 -0
- package/lib/typescript/src/skia/Vertices/Vertices.d.ts +17 -0
- package/lib/typescript/src/skia/Vertices/index.d.ts +1 -0
- package/lib/typescript/src/skia/index.d.ts +22 -0
- package/lib/typescript/src/values/animation/decay/decay.d.ts +2 -0
- package/lib/typescript/src/values/animation/decay/index.d.ts +1 -0
- package/lib/typescript/src/values/animation/decay/runDecay.d.ts +10 -0
- package/lib/typescript/src/values/animation/decay/types.d.ts +21 -0
- package/lib/typescript/src/values/animation/functions/index.d.ts +2 -0
- package/lib/typescript/src/values/animation/functions/interpolate.d.ts +7 -0
- package/lib/typescript/src/values/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/typescript/src/values/animation/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/spring/Spring.d.ts +65 -0
- package/lib/typescript/src/values/animation/spring/functions/index.d.ts +1 -0
- package/lib/typescript/src/values/animation/spring/functions/spring.d.ts +10 -0
- package/lib/typescript/src/values/animation/spring/index.d.ts +3 -0
- package/lib/typescript/src/values/animation/spring/runSpring.d.ts +16 -0
- package/lib/typescript/src/values/animation/spring/types.d.ts +6 -0
- package/lib/typescript/src/values/animation/spring/useSpring.d.ts +10 -0
- package/lib/typescript/src/values/animation/timing/Easing.d.ts +19 -0
- package/lib/typescript/src/values/animation/timing/createTiming.d.ts +17 -0
- package/lib/typescript/src/values/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/typescript/src/values/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/typescript/src/values/animation/timing/functions/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/timing/functions/timing.d.ts +17 -0
- package/lib/typescript/src/values/animation/timing/functions/types.d.ts +7 -0
- package/lib/typescript/src/values/animation/timing/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/timing/runTiming.d.ts +16 -0
- package/lib/typescript/src/values/animation/timing/useLoop.d.ts +8 -0
- package/lib/typescript/src/values/animation/timing/useTiming.d.ts +10 -0
- package/lib/typescript/src/values/animation/types.d.ts +18 -0
- package/lib/typescript/src/values/api.d.ts +29 -0
- package/lib/typescript/src/values/hooks/index.d.ts +4 -0
- package/lib/typescript/src/values/hooks/useClockValue.d.ts +6 -0
- package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +8 -0
- package/lib/typescript/src/values/hooks/useValue.d.ts +7 -0
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/typescript/src/values/index.d.ts +4 -0
- package/lib/typescript/src/values/types.d.ts +36 -0
- package/lib/typescript/src/views/SkiaView.d.ts +55 -0
- package/lib/typescript/src/views/index.d.ts +4 -0
- package/lib/typescript/src/views/types.d.ts +67 -0
- package/lib/typescript/src/views/useDrawCallback.d.ts +8 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +12 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/arm64-v8a/libsvg.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86/libsvg.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +42 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +42 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +42 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +100 -0
- package/react-native-skia.podspec +71 -0
- package/scripts/install-npm.js +23 -0
- package/src/external/index.ts +1 -0
- package/src/external/reanimated/index.ts +1 -0
- package/src/external/reanimated/useSharedValueEffect.ts +81 -0
- package/src/index.ts +7 -0
- package/src/renderer/Canvas.tsx +190 -0
- package/src/renderer/DependencyManager.tsx +59 -0
- package/src/renderer/DrawingContext.ts +16 -0
- package/src/renderer/HostConfig.ts +321 -0
- package/src/renderer/components/Blend.tsx +28 -0
- package/src/renderer/components/Compose.tsx +28 -0
- package/src/renderer/components/Defs.tsx +19 -0
- package/src/renderer/components/Group.tsx +61 -0
- package/src/renderer/components/Mask.tsx +43 -0
- package/src/renderer/components/Paint.tsx +59 -0
- package/src/renderer/components/backdrop/BackdropBlur.tsx +23 -0
- package/src/renderer/components/backdrop/BackdropFilter.tsx +47 -0
- package/src/renderer/components/backdrop/index.ts +2 -0
- package/src/renderer/components/colorFilters/BlendColor.tsx +30 -0
- package/src/renderer/components/colorFilters/Compose.ts +17 -0
- package/src/renderer/components/colorFilters/Lerp.tsx +27 -0
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +21 -0
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +19 -0
- package/src/renderer/components/colorFilters/Matrix.tsx +47 -0
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +21 -0
- package/src/renderer/components/colorFilters/index.ts +6 -0
- package/src/renderer/components/image/BoxFit.ts +131 -0
- package/src/renderer/components/image/Image.tsx +50 -0
- package/src/renderer/components/image/ImageSVG.tsx +24 -0
- package/src/renderer/components/image/ImageShader.tsx +81 -0
- package/src/renderer/components/image/index.ts +4 -0
- package/src/renderer/components/imageFilters/Blur.tsx +35 -0
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +35 -0
- package/src/renderer/components/imageFilters/DropShadow.tsx +31 -0
- package/src/renderer/components/imageFilters/InnerShadow.tsx +50 -0
- package/src/renderer/components/imageFilters/Morphology.tsx +34 -0
- package/src/renderer/components/imageFilters/Offset.tsx +27 -0
- package/src/renderer/components/imageFilters/getInput.ts +19 -0
- package/src/renderer/components/imageFilters/index.ts +6 -0
- package/src/renderer/components/index.ts +17 -0
- package/src/renderer/components/maskFilters/Blur.tsx +33 -0
- package/src/renderer/components/maskFilters/index.ts +1 -0
- package/src/renderer/components/pathEffects/Corner.tsx +32 -0
- package/src/renderer/components/pathEffects/Dash.tsx +28 -0
- package/src/renderer/components/pathEffects/Discrete.tsx +35 -0
- package/src/renderer/components/pathEffects/Line2D.tsx +34 -0
- package/src/renderer/components/pathEffects/Path1D.tsx +44 -0
- package/src/renderer/components/pathEffects/Path2D.tsx +36 -0
- package/src/renderer/components/pathEffects/Sum.tsx +20 -0
- package/src/renderer/components/pathEffects/index.ts +7 -0
- package/src/renderer/components/shaders/Color.tsx +18 -0
- package/src/renderer/components/shaders/FractalNoise.tsx +37 -0
- package/src/renderer/components/shaders/Gradient.ts +29 -0
- package/src/renderer/components/shaders/LinearGradient.tsx +33 -0
- package/src/renderer/components/shaders/RadialGradient.tsx +33 -0
- package/src/renderer/components/shaders/Shader.tsx +84 -0
- package/src/renderer/components/shaders/ShaderLib.ts +46 -0
- package/src/renderer/components/shaders/SweepGradient.tsx +36 -0
- package/src/renderer/components/shaders/Turbulence.tsx +37 -0
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +39 -0
- package/src/renderer/components/shaders/index.ts +9 -0
- package/src/renderer/components/shapes/Circle.tsx +25 -0
- package/src/renderer/components/shapes/DiffRect.tsx +21 -0
- package/src/renderer/components/shapes/Fill.tsx +15 -0
- package/src/renderer/components/shapes/FitBox.tsx +26 -0
- package/src/renderer/components/shapes/Line.tsx +16 -0
- package/src/renderer/components/shapes/Oval.tsx +25 -0
- package/src/renderer/components/shapes/Patch.tsx +68 -0
- package/src/renderer/components/shapes/Path.tsx +49 -0
- package/src/renderer/components/shapes/Points.tsx +28 -0
- package/src/renderer/components/shapes/Rect.tsx +20 -0
- package/src/renderer/components/shapes/RoundedRect.tsx +25 -0
- package/src/renderer/components/shapes/Vertices.tsx +44 -0
- package/src/renderer/components/shapes/index.ts +12 -0
- package/src/renderer/components/text/Glyphs.tsx +49 -0
- package/src/renderer/components/text/Text.tsx +32 -0
- package/src/renderer/components/text/TextBlob.tsx +26 -0
- package/src/renderer/components/text/TextPath.tsx +70 -0
- package/src/renderer/components/text/index.ts +4 -0
- package/src/renderer/index.ts +3 -0
- package/src/renderer/nodes/Container.tsx +17 -0
- package/src/renderer/nodes/Declaration.tsx +53 -0
- package/src/renderer/nodes/Drawing.tsx +76 -0
- package/src/renderer/nodes/Node.ts +60 -0
- package/src/renderer/nodes/index.ts +4 -0
- package/src/renderer/processors/Animations/Animations.ts +48 -0
- package/src/renderer/processors/Animations/index.ts +1 -0
- package/src/renderer/processors/Circles.ts +25 -0
- package/src/renderer/processors/Clips.ts +19 -0
- package/src/renderer/processors/Font.ts +25 -0
- package/src/renderer/processors/Paint.ts +105 -0
- package/src/renderer/processors/Paths.ts +19 -0
- package/src/renderer/processors/Radius.ts +11 -0
- package/src/renderer/processors/Rects.ts +86 -0
- package/src/renderer/processors/Transform.ts +44 -0
- package/src/renderer/processors/index.ts +10 -0
- package/src/renderer/processors/math/Coordinates.ts +32 -0
- package/src/renderer/processors/math/Math.ts +2 -0
- package/src/renderer/processors/math/Matrix3.ts +150 -0
- package/src/renderer/processors/math/Transforms.ts +7 -0
- package/src/renderer/processors/math/Vector.ts +37 -0
- package/src/renderer/processors/math/index.ts +5 -0
- package/src/renderer/typeddash.ts +5 -0
- package/src/skia/Canvas.ts +488 -0
- package/src/skia/Color.ts +51 -0
- package/src/skia/ColorFilter/ColorFilter.ts +7 -0
- package/src/skia/ColorFilter/ColorFilterFactory.ts +52 -0
- package/src/skia/ColorFilter/index.ts +2 -0
- package/src/skia/ContourMeasure.tsx +49 -0
- package/src/skia/Data/Data.ts +61 -0
- package/src/skia/Data/DataFactory.ts +19 -0
- package/src/skia/Data/index.ts +2 -0
- package/src/skia/Font/Font.ts +230 -0
- package/src/skia/Font/index.ts +2 -0
- package/src/skia/Font/useFont.ts +27 -0
- package/src/skia/FontMgr/FontMgr.ts +24 -0
- package/src/skia/FontMgr/FontMgrFactory.ts +17 -0
- package/src/skia/FontMgr/index.ts +1 -0
- package/src/skia/Image/Image.ts +96 -0
- package/src/skia/Image/ImageFactory.ts +78 -0
- package/src/skia/Image/index.ts +3 -0
- package/src/skia/Image/useImage.ts +9 -0
- package/src/skia/ImageFilter/ImageFilter.ts +31 -0
- package/src/skia/ImageFilter/ImageFilterFactory.ts +172 -0
- package/src/skia/ImageFilter/index.ts +2 -0
- package/src/skia/JsiInstance.ts +3 -0
- package/src/skia/MaskFilter.ts +27 -0
- package/src/skia/Matrix.ts +23 -0
- package/src/skia/NativeSetup.ts +18 -0
- package/src/skia/Paint/BlendMode.ts +61 -0
- package/src/skia/Paint/Paint.ts +153 -0
- package/src/skia/Paint/index.ts +3 -0
- package/src/skia/Paint/usePaint.ts +23 -0
- package/src/skia/Path/Path.ts +538 -0
- package/src/skia/Path/PathFactory.ts +20 -0
- package/src/skia/Path/index.ts +3 -0
- package/src/skia/Path/usePath.ts +54 -0
- package/src/skia/PathEffect.ts +93 -0
- package/src/skia/Point.ts +10 -0
- package/src/skia/RRect.ts +7 -0
- package/src/skia/RSXform.ts +3 -0
- package/src/skia/Rect.ts +6 -0
- package/src/skia/RuntimeEffect/RuntimeEffect.ts +63 -0
- package/src/skia/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
- package/src/skia/RuntimeEffect/index.ts +2 -0
- package/src/skia/SVG/SVG.ts +3 -0
- package/src/skia/SVG/SVGFactory.ts +8 -0
- package/src/skia/SVG/index.ts +3 -0
- package/src/skia/SVG/useSvg.ts +6 -0
- package/src/skia/Shader/Shader.ts +6 -0
- package/src/skia/Shader/ShaderFactory.ts +169 -0
- package/src/skia/Shader/index.ts +3 -0
- package/src/skia/Shader/useShader.ts +6 -0
- package/src/skia/Skia.ts +120 -0
- package/src/skia/Surface/Surface.ts +27 -0
- package/src/skia/Surface/SurfaceFactory.ts +12 -0
- package/src/skia/Surface/index.ts +2 -0
- package/src/skia/TextBlob.ts +52 -0
- package/src/skia/Typeface/Typeface.ts +6 -0
- package/src/skia/Typeface/TypefaceFactory.ts +7 -0
- package/src/skia/Typeface/index.ts +3 -0
- package/src/skia/Typeface/useTypeface.ts +9 -0
- package/src/skia/Vertices/Vertices.tsx +20 -0
- package/src/skia/Vertices/index.ts +1 -0
- package/src/skia/index.ts +22 -0
- package/src/values/animation/decay/decay.ts +35 -0
- package/src/values/animation/decay/index.ts +1 -0
- package/src/values/animation/decay/runDecay.ts +37 -0
- package/src/values/animation/decay/types.ts +24 -0
- package/src/values/animation/functions/index.ts +2 -0
- package/src/values/animation/functions/interpolate.ts +169 -0
- package/src/values/animation/functions/interpolateColors.ts +62 -0
- package/src/values/animation/index.ts +4 -0
- package/src/values/animation/spring/Spring.ts +61 -0
- package/src/values/animation/spring/functions/index.ts +1 -0
- package/src/values/animation/spring/functions/spring.ts +86 -0
- package/src/values/animation/spring/index.ts +3 -0
- package/src/values/animation/spring/runSpring.ts +37 -0
- package/src/values/animation/spring/types.ts +6 -0
- package/src/values/animation/spring/useSpring.ts +28 -0
- package/src/values/animation/timing/Easing.ts +102 -0
- package/src/values/animation/timing/createTiming.ts +62 -0
- package/src/values/animation/timing/functions/__tests__/timing.spec.ts +29 -0
- package/src/values/animation/timing/functions/bezier.ts +165 -0
- package/src/values/animation/timing/functions/getResolvedParams.ts +50 -0
- package/src/values/animation/timing/functions/index.ts +4 -0
- package/src/values/animation/timing/functions/timing.ts +44 -0
- package/src/values/animation/timing/functions/types.ts +8 -0
- package/src/values/animation/timing/index.ts +4 -0
- package/src/values/animation/timing/runTiming.ts +33 -0
- package/src/values/animation/timing/useLoop.ts +18 -0
- package/src/values/animation/timing/useTiming.ts +68 -0
- package/src/values/animation/types.ts +23 -0
- package/src/values/api.ts +49 -0
- package/src/values/hooks/index.ts +4 -0
- package/src/values/hooks/useClockValue.ts +18 -0
- package/src/values/hooks/useDerivedValue.ts +18 -0
- package/src/values/hooks/useValue.ts +14 -0
- package/src/values/hooks/useValueEffect.ts +18 -0
- package/src/values/index.ts +4 -0
- package/src/values/types.ts +40 -0
- package/src/views/SkiaView.tsx +161 -0
- package/src/views/index.ts +4 -0
- package/src/views/types.ts +80 -0
- package/src/views/useDrawCallback.ts +19 -0
- package/src/views/useTouchHandler.ts +80 -0
@@ -0,0 +1,823 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2015 Google Inc.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef SkNx_sse_DEFINED
|
9
|
+
#define SkNx_sse_DEFINED
|
10
|
+
|
11
|
+
#include "include/core/SkTypes.h"
|
12
|
+
|
13
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
14
|
+
#include <smmintrin.h>
|
15
|
+
#elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
|
16
|
+
#include <tmmintrin.h>
|
17
|
+
#else
|
18
|
+
#include <emmintrin.h>
|
19
|
+
#endif
|
20
|
+
|
21
|
+
// This file may assume <= SSE2, but must check SK_CPU_SSE_LEVEL for anything more recent.
|
22
|
+
// If you do, make sure this is in a static inline function... anywhere else risks violating ODR.
|
23
|
+
|
24
|
+
namespace { // NOLINT(google-build-namespaces)
|
25
|
+
|
26
|
+
// Emulate _mm_floor_ps() with SSE2:
|
27
|
+
// - roundtrip through integers via truncation
|
28
|
+
// - subtract 1 if that's too big (possible for negative values).
|
29
|
+
// This restricts the domain of our inputs to a maximum somehwere around 2^31.
|
30
|
+
// Seems plenty big.
|
31
|
+
AI static __m128 emulate_mm_floor_ps(__m128 v) {
|
32
|
+
__m128 roundtrip = _mm_cvtepi32_ps(_mm_cvttps_epi32(v));
|
33
|
+
__m128 too_big = _mm_cmpgt_ps(roundtrip, v);
|
34
|
+
return _mm_sub_ps(roundtrip, _mm_and_ps(too_big, _mm_set1_ps(1.0f)));
|
35
|
+
}
|
36
|
+
|
37
|
+
template <>
|
38
|
+
class SkNx<2, float> {
|
39
|
+
public:
|
40
|
+
AI SkNx(const __m128& vec) : fVec(vec) {}
|
41
|
+
|
42
|
+
AI SkNx() {}
|
43
|
+
AI SkNx(float val) : fVec(_mm_set1_ps(val)) {}
|
44
|
+
AI static SkNx Load(const void* ptr) {
|
45
|
+
return _mm_castsi128_ps(_mm_loadl_epi64((const __m128i*)ptr));
|
46
|
+
}
|
47
|
+
AI SkNx(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {}
|
48
|
+
|
49
|
+
AI void store(void* ptr) const { _mm_storel_pi((__m64*)ptr, fVec); }
|
50
|
+
|
51
|
+
AI static void Load2(const void* ptr, SkNx* x, SkNx* y) {
|
52
|
+
const float* m = (const float*)ptr;
|
53
|
+
*x = SkNx{m[0], m[2]};
|
54
|
+
*y = SkNx{m[1], m[3]};
|
55
|
+
}
|
56
|
+
|
57
|
+
AI static void Store2(void* dst, const SkNx& a, const SkNx& b) {
|
58
|
+
auto vals = _mm_unpacklo_ps(a.fVec, b.fVec);
|
59
|
+
_mm_storeu_ps((float*)dst, vals);
|
60
|
+
}
|
61
|
+
|
62
|
+
AI static void Store3(void* dst, const SkNx& a, const SkNx& b, const SkNx& c) {
|
63
|
+
auto lo = _mm_setr_ps(a[0], b[0], c[0], a[1]),
|
64
|
+
hi = _mm_setr_ps(b[1], c[1], 0, 0);
|
65
|
+
_mm_storeu_ps((float*)dst, lo);
|
66
|
+
_mm_storel_pi(((__m64*)dst) + 2, hi);
|
67
|
+
}
|
68
|
+
|
69
|
+
AI static void Store4(void* dst, const SkNx& a, const SkNx& b, const SkNx& c, const SkNx& d) {
|
70
|
+
auto lo = _mm_setr_ps(a[0], b[0], c[0], d[0]),
|
71
|
+
hi = _mm_setr_ps(a[1], b[1], c[1], d[1]);
|
72
|
+
_mm_storeu_ps((float*)dst, lo);
|
73
|
+
_mm_storeu_ps(((float*)dst) + 4, hi);
|
74
|
+
}
|
75
|
+
|
76
|
+
AI SkNx operator - () const { return _mm_xor_ps(_mm_set1_ps(-0.0f), fVec); }
|
77
|
+
|
78
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_ps(fVec, o.fVec); }
|
79
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_ps(fVec, o.fVec); }
|
80
|
+
AI SkNx operator * (const SkNx& o) const { return _mm_mul_ps(fVec, o.fVec); }
|
81
|
+
AI SkNx operator / (const SkNx& o) const { return _mm_div_ps(fVec, o.fVec); }
|
82
|
+
|
83
|
+
AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_ps (fVec, o.fVec); }
|
84
|
+
AI SkNx operator != (const SkNx& o) const { return _mm_cmpneq_ps(fVec, o.fVec); }
|
85
|
+
AI SkNx operator < (const SkNx& o) const { return _mm_cmplt_ps (fVec, o.fVec); }
|
86
|
+
AI SkNx operator > (const SkNx& o) const { return _mm_cmpgt_ps (fVec, o.fVec); }
|
87
|
+
AI SkNx operator <= (const SkNx& o) const { return _mm_cmple_ps (fVec, o.fVec); }
|
88
|
+
AI SkNx operator >= (const SkNx& o) const { return _mm_cmpge_ps (fVec, o.fVec); }
|
89
|
+
|
90
|
+
AI static SkNx Min(const SkNx& l, const SkNx& r) { return _mm_min_ps(l.fVec, r.fVec); }
|
91
|
+
AI static SkNx Max(const SkNx& l, const SkNx& r) { return _mm_max_ps(l.fVec, r.fVec); }
|
92
|
+
|
93
|
+
AI SkNx abs() const { return _mm_andnot_ps(_mm_set1_ps(-0.0f), fVec); }
|
94
|
+
AI SkNx floor() const {
|
95
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
96
|
+
return _mm_floor_ps(fVec);
|
97
|
+
#else
|
98
|
+
return emulate_mm_floor_ps(fVec);
|
99
|
+
#endif
|
100
|
+
}
|
101
|
+
|
102
|
+
AI SkNx sqrt() const { return _mm_sqrt_ps (fVec); }
|
103
|
+
|
104
|
+
AI float operator[](int k) const {
|
105
|
+
SkASSERT(0 <= k && k < 2);
|
106
|
+
union { __m128 v; float fs[4]; } pun = {fVec};
|
107
|
+
return pun.fs[k&1];
|
108
|
+
}
|
109
|
+
|
110
|
+
AI bool allTrue() const { return 0b11 == (_mm_movemask_ps(fVec) & 0b11); }
|
111
|
+
AI bool anyTrue() const { return 0b00 != (_mm_movemask_ps(fVec) & 0b11); }
|
112
|
+
|
113
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
114
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
115
|
+
return _mm_blendv_ps(e.fVec, t.fVec, fVec);
|
116
|
+
#else
|
117
|
+
return _mm_or_ps(_mm_and_ps (fVec, t.fVec),
|
118
|
+
_mm_andnot_ps(fVec, e.fVec));
|
119
|
+
#endif
|
120
|
+
}
|
121
|
+
|
122
|
+
__m128 fVec;
|
123
|
+
};
|
124
|
+
|
125
|
+
template <>
|
126
|
+
class SkNx<4, float> {
|
127
|
+
public:
|
128
|
+
AI SkNx(const __m128& vec) : fVec(vec) {}
|
129
|
+
|
130
|
+
AI SkNx() {}
|
131
|
+
AI SkNx(float val) : fVec( _mm_set1_ps(val) ) {}
|
132
|
+
AI SkNx(float a, float b, float c, float d) : fVec(_mm_setr_ps(a,b,c,d)) {}
|
133
|
+
|
134
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadu_ps((const float*)ptr); }
|
135
|
+
AI void store(void* ptr) const { _mm_storeu_ps((float*)ptr, fVec); }
|
136
|
+
|
137
|
+
AI static void Load2(const void* ptr, SkNx* x, SkNx* y) {
|
138
|
+
SkNx lo = SkNx::Load((const float*)ptr+0),
|
139
|
+
hi = SkNx::Load((const float*)ptr+4);
|
140
|
+
*x = SkNx{lo[0], lo[2], hi[0], hi[2]};
|
141
|
+
*y = SkNx{lo[1], lo[3], hi[1], hi[3]};
|
142
|
+
}
|
143
|
+
|
144
|
+
AI static void Load4(const void* ptr, SkNx* r, SkNx* g, SkNx* b, SkNx* a) {
|
145
|
+
__m128 v0 = _mm_loadu_ps(((float*)ptr) + 0),
|
146
|
+
v1 = _mm_loadu_ps(((float*)ptr) + 4),
|
147
|
+
v2 = _mm_loadu_ps(((float*)ptr) + 8),
|
148
|
+
v3 = _mm_loadu_ps(((float*)ptr) + 12);
|
149
|
+
_MM_TRANSPOSE4_PS(v0, v1, v2, v3);
|
150
|
+
*r = v0;
|
151
|
+
*g = v1;
|
152
|
+
*b = v2;
|
153
|
+
*a = v3;
|
154
|
+
}
|
155
|
+
AI static void Store4(void* dst, const SkNx& r, const SkNx& g, const SkNx& b, const SkNx& a) {
|
156
|
+
__m128 v0 = r.fVec,
|
157
|
+
v1 = g.fVec,
|
158
|
+
v2 = b.fVec,
|
159
|
+
v3 = a.fVec;
|
160
|
+
_MM_TRANSPOSE4_PS(v0, v1, v2, v3);
|
161
|
+
_mm_storeu_ps(((float*) dst) + 0, v0);
|
162
|
+
_mm_storeu_ps(((float*) dst) + 4, v1);
|
163
|
+
_mm_storeu_ps(((float*) dst) + 8, v2);
|
164
|
+
_mm_storeu_ps(((float*) dst) + 12, v3);
|
165
|
+
}
|
166
|
+
|
167
|
+
AI SkNx operator - () const { return _mm_xor_ps(_mm_set1_ps(-0.0f), fVec); }
|
168
|
+
|
169
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_ps(fVec, o.fVec); }
|
170
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_ps(fVec, o.fVec); }
|
171
|
+
AI SkNx operator * (const SkNx& o) const { return _mm_mul_ps(fVec, o.fVec); }
|
172
|
+
AI SkNx operator / (const SkNx& o) const { return _mm_div_ps(fVec, o.fVec); }
|
173
|
+
|
174
|
+
AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_ps (fVec, o.fVec); }
|
175
|
+
AI SkNx operator != (const SkNx& o) const { return _mm_cmpneq_ps(fVec, o.fVec); }
|
176
|
+
AI SkNx operator < (const SkNx& o) const { return _mm_cmplt_ps (fVec, o.fVec); }
|
177
|
+
AI SkNx operator > (const SkNx& o) const { return _mm_cmpgt_ps (fVec, o.fVec); }
|
178
|
+
AI SkNx operator <= (const SkNx& o) const { return _mm_cmple_ps (fVec, o.fVec); }
|
179
|
+
AI SkNx operator >= (const SkNx& o) const { return _mm_cmpge_ps (fVec, o.fVec); }
|
180
|
+
|
181
|
+
AI static SkNx Min(const SkNx& l, const SkNx& r) { return _mm_min_ps(l.fVec, r.fVec); }
|
182
|
+
AI static SkNx Max(const SkNx& l, const SkNx& r) { return _mm_max_ps(l.fVec, r.fVec); }
|
183
|
+
|
184
|
+
AI SkNx abs() const { return _mm_andnot_ps(_mm_set1_ps(-0.0f), fVec); }
|
185
|
+
AI SkNx floor() const {
|
186
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
187
|
+
return _mm_floor_ps(fVec);
|
188
|
+
#else
|
189
|
+
return emulate_mm_floor_ps(fVec);
|
190
|
+
#endif
|
191
|
+
}
|
192
|
+
|
193
|
+
AI SkNx sqrt() const { return _mm_sqrt_ps (fVec); }
|
194
|
+
|
195
|
+
AI float operator[](int k) const {
|
196
|
+
SkASSERT(0 <= k && k < 4);
|
197
|
+
union { __m128 v; float fs[4]; } pun = {fVec};
|
198
|
+
return pun.fs[k&3];
|
199
|
+
}
|
200
|
+
|
201
|
+
AI float min() const {
|
202
|
+
SkNx min = Min(*this, _mm_shuffle_ps(fVec, fVec, _MM_SHUFFLE(2,3,0,1)));
|
203
|
+
min = Min(min, _mm_shuffle_ps(min.fVec, min.fVec, _MM_SHUFFLE(0,1,2,3)));
|
204
|
+
return min[0];
|
205
|
+
}
|
206
|
+
|
207
|
+
AI float max() const {
|
208
|
+
SkNx max = Max(*this, _mm_shuffle_ps(fVec, fVec, _MM_SHUFFLE(2,3,0,1)));
|
209
|
+
max = Max(max, _mm_shuffle_ps(max.fVec, max.fVec, _MM_SHUFFLE(0,1,2,3)));
|
210
|
+
return max[0];
|
211
|
+
}
|
212
|
+
|
213
|
+
AI bool allTrue() const { return 0b1111 == _mm_movemask_ps(fVec); }
|
214
|
+
AI bool anyTrue() const { return 0b0000 != _mm_movemask_ps(fVec); }
|
215
|
+
|
216
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
217
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
218
|
+
return _mm_blendv_ps(e.fVec, t.fVec, fVec);
|
219
|
+
#else
|
220
|
+
return _mm_or_ps(_mm_and_ps (fVec, t.fVec),
|
221
|
+
_mm_andnot_ps(fVec, e.fVec));
|
222
|
+
#endif
|
223
|
+
}
|
224
|
+
|
225
|
+
__m128 fVec;
|
226
|
+
};
|
227
|
+
|
228
|
+
AI static __m128i mullo32(__m128i a, __m128i b) {
|
229
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
230
|
+
return _mm_mullo_epi32(a, b);
|
231
|
+
#else
|
232
|
+
__m128i mul20 = _mm_mul_epu32(a, b),
|
233
|
+
mul31 = _mm_mul_epu32(_mm_srli_si128(a, 4), _mm_srli_si128(b, 4));
|
234
|
+
return _mm_unpacklo_epi32(_mm_shuffle_epi32(mul20, _MM_SHUFFLE(0,0,2,0)),
|
235
|
+
_mm_shuffle_epi32(mul31, _MM_SHUFFLE(0,0,2,0)));
|
236
|
+
#endif
|
237
|
+
}
|
238
|
+
|
239
|
+
template <>
|
240
|
+
class SkNx<4, int32_t> {
|
241
|
+
public:
|
242
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
243
|
+
|
244
|
+
AI SkNx() {}
|
245
|
+
AI SkNx(int32_t val) : fVec(_mm_set1_epi32(val)) {}
|
246
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadu_si128((const __m128i*)ptr); }
|
247
|
+
AI SkNx(int32_t a, int32_t b, int32_t c, int32_t d) : fVec(_mm_setr_epi32(a,b,c,d)) {}
|
248
|
+
|
249
|
+
AI void store(void* ptr) const { _mm_storeu_si128((__m128i*)ptr, fVec); }
|
250
|
+
|
251
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi32(fVec, o.fVec); }
|
252
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi32(fVec, o.fVec); }
|
253
|
+
AI SkNx operator * (const SkNx& o) const { return mullo32(fVec, o.fVec); }
|
254
|
+
|
255
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
256
|
+
AI SkNx operator | (const SkNx& o) const { return _mm_or_si128(fVec, o.fVec); }
|
257
|
+
AI SkNx operator ^ (const SkNx& o) const { return _mm_xor_si128(fVec, o.fVec); }
|
258
|
+
|
259
|
+
AI SkNx operator << (int bits) const { return _mm_slli_epi32(fVec, bits); }
|
260
|
+
AI SkNx operator >> (int bits) const { return _mm_srai_epi32(fVec, bits); }
|
261
|
+
|
262
|
+
AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_epi32 (fVec, o.fVec); }
|
263
|
+
AI SkNx operator < (const SkNx& o) const { return _mm_cmplt_epi32 (fVec, o.fVec); }
|
264
|
+
AI SkNx operator > (const SkNx& o) const { return _mm_cmpgt_epi32 (fVec, o.fVec); }
|
265
|
+
|
266
|
+
AI int32_t operator[](int k) const {
|
267
|
+
SkASSERT(0 <= k && k < 4);
|
268
|
+
union { __m128i v; int32_t is[4]; } pun = {fVec};
|
269
|
+
return pun.is[k&3];
|
270
|
+
}
|
271
|
+
|
272
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
273
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
274
|
+
return _mm_blendv_epi8(e.fVec, t.fVec, fVec);
|
275
|
+
#else
|
276
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
277
|
+
_mm_andnot_si128(fVec, e.fVec));
|
278
|
+
#endif
|
279
|
+
}
|
280
|
+
|
281
|
+
AI SkNx abs() const {
|
282
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
|
283
|
+
return _mm_abs_epi32(fVec);
|
284
|
+
#else
|
285
|
+
SkNx mask = (*this) >> 31;
|
286
|
+
return (mask ^ (*this)) - mask;
|
287
|
+
#endif
|
288
|
+
}
|
289
|
+
|
290
|
+
AI static SkNx Min(const SkNx& x, const SkNx& y) {
|
291
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
292
|
+
return _mm_min_epi32(x.fVec, y.fVec);
|
293
|
+
#else
|
294
|
+
return (x < y).thenElse(x, y);
|
295
|
+
#endif
|
296
|
+
}
|
297
|
+
|
298
|
+
AI static SkNx Max(const SkNx& x, const SkNx& y) {
|
299
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
300
|
+
return _mm_max_epi32(x.fVec, y.fVec);
|
301
|
+
#else
|
302
|
+
return (x > y).thenElse(x, y);
|
303
|
+
#endif
|
304
|
+
}
|
305
|
+
|
306
|
+
__m128i fVec;
|
307
|
+
};
|
308
|
+
|
309
|
+
template <>
|
310
|
+
class SkNx<2, uint32_t> {
|
311
|
+
public:
|
312
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
313
|
+
|
314
|
+
AI SkNx() {}
|
315
|
+
AI SkNx(uint32_t val) : fVec(_mm_set1_epi32((int)val)) {}
|
316
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadl_epi64((const __m128i*)ptr); }
|
317
|
+
AI SkNx(uint32_t a, uint32_t b) : fVec(_mm_setr_epi32((int)a,(int)b,0,0)) {}
|
318
|
+
|
319
|
+
AI void store(void* ptr) const { _mm_storel_epi64((__m128i*)ptr, fVec); }
|
320
|
+
|
321
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi32(fVec, o.fVec); }
|
322
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi32(fVec, o.fVec); }
|
323
|
+
AI SkNx operator * (const SkNx& o) const { return mullo32(fVec, o.fVec); }
|
324
|
+
|
325
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
326
|
+
AI SkNx operator | (const SkNx& o) const { return _mm_or_si128(fVec, o.fVec); }
|
327
|
+
AI SkNx operator ^ (const SkNx& o) const { return _mm_xor_si128(fVec, o.fVec); }
|
328
|
+
|
329
|
+
AI SkNx operator << (int bits) const { return _mm_slli_epi32(fVec, bits); }
|
330
|
+
AI SkNx operator >> (int bits) const { return _mm_srli_epi32(fVec, bits); }
|
331
|
+
|
332
|
+
AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_epi32 (fVec, o.fVec); }
|
333
|
+
AI SkNx operator != (const SkNx& o) const { return (*this == o) ^ 0xffffffff; }
|
334
|
+
// operator < and > take a little extra fiddling to make work for unsigned ints.
|
335
|
+
|
336
|
+
AI uint32_t operator[](int k) const {
|
337
|
+
SkASSERT(0 <= k && k < 2);
|
338
|
+
union { __m128i v; uint32_t us[4]; } pun = {fVec};
|
339
|
+
return pun.us[k&1];
|
340
|
+
}
|
341
|
+
|
342
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
343
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
344
|
+
return _mm_blendv_epi8(e.fVec, t.fVec, fVec);
|
345
|
+
#else
|
346
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
347
|
+
_mm_andnot_si128(fVec, e.fVec));
|
348
|
+
#endif
|
349
|
+
}
|
350
|
+
|
351
|
+
AI bool allTrue() const { return 0xff == (_mm_movemask_epi8(fVec) & 0xff); }
|
352
|
+
|
353
|
+
__m128i fVec;
|
354
|
+
};
|
355
|
+
|
356
|
+
template <>
|
357
|
+
class SkNx<4, uint32_t> {
|
358
|
+
public:
|
359
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
360
|
+
|
361
|
+
AI SkNx() {}
|
362
|
+
AI SkNx(uint32_t val) : fVec(_mm_set1_epi32((int)val)) {}
|
363
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadu_si128((const __m128i*)ptr); }
|
364
|
+
AI SkNx(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
|
365
|
+
: fVec(_mm_setr_epi32((int)a,(int)b,(int)c,(int)d)) {}
|
366
|
+
|
367
|
+
AI void store(void* ptr) const { _mm_storeu_si128((__m128i*)ptr, fVec); }
|
368
|
+
|
369
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi32(fVec, o.fVec); }
|
370
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi32(fVec, o.fVec); }
|
371
|
+
AI SkNx operator * (const SkNx& o) const { return mullo32(fVec, o.fVec); }
|
372
|
+
|
373
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
374
|
+
AI SkNx operator | (const SkNx& o) const { return _mm_or_si128(fVec, o.fVec); }
|
375
|
+
AI SkNx operator ^ (const SkNx& o) const { return _mm_xor_si128(fVec, o.fVec); }
|
376
|
+
|
377
|
+
AI SkNx operator << (int bits) const { return _mm_slli_epi32(fVec, bits); }
|
378
|
+
AI SkNx operator >> (int bits) const { return _mm_srli_epi32(fVec, bits); }
|
379
|
+
|
380
|
+
AI SkNx operator == (const SkNx& o) const { return _mm_cmpeq_epi32 (fVec, o.fVec); }
|
381
|
+
AI SkNx operator != (const SkNx& o) const { return (*this == o) ^ 0xffffffff; }
|
382
|
+
|
383
|
+
// operator < and > take a little extra fiddling to make work for unsigned ints.
|
384
|
+
|
385
|
+
AI uint32_t operator[](int k) const {
|
386
|
+
SkASSERT(0 <= k && k < 4);
|
387
|
+
union { __m128i v; uint32_t us[4]; } pun = {fVec};
|
388
|
+
return pun.us[k&3];
|
389
|
+
}
|
390
|
+
|
391
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
392
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
393
|
+
return _mm_blendv_epi8(e.fVec, t.fVec, fVec);
|
394
|
+
#else
|
395
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
396
|
+
_mm_andnot_si128(fVec, e.fVec));
|
397
|
+
#endif
|
398
|
+
}
|
399
|
+
|
400
|
+
AI SkNx mulHi(SkNx m) const {
|
401
|
+
SkNx v20{_mm_mul_epu32(m.fVec, fVec)};
|
402
|
+
SkNx v31{_mm_mul_epu32(_mm_srli_si128(m.fVec, 4), _mm_srli_si128(fVec, 4))};
|
403
|
+
|
404
|
+
return SkNx{v20[1], v31[1], v20[3], v31[3]};
|
405
|
+
}
|
406
|
+
|
407
|
+
__m128i fVec;
|
408
|
+
};
|
409
|
+
|
410
|
+
template <>
|
411
|
+
class SkNx<4, uint16_t> {
|
412
|
+
public:
|
413
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
414
|
+
|
415
|
+
AI SkNx() {}
|
416
|
+
AI SkNx(uint16_t val) : fVec(_mm_set1_epi16((short)val)) {}
|
417
|
+
AI SkNx(uint16_t a, uint16_t b, uint16_t c, uint16_t d)
|
418
|
+
: fVec(_mm_setr_epi16((short)a,(short)b,(short)c,(short)d,0,0,0,0)) {}
|
419
|
+
|
420
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadl_epi64((const __m128i*)ptr); }
|
421
|
+
AI void store(void* ptr) const { _mm_storel_epi64((__m128i*)ptr, fVec); }
|
422
|
+
|
423
|
+
AI static void Load4(const void* ptr, SkNx* r, SkNx* g, SkNx* b, SkNx* a) {
|
424
|
+
__m128i lo = _mm_loadu_si128(((__m128i*)ptr) + 0),
|
425
|
+
hi = _mm_loadu_si128(((__m128i*)ptr) + 1);
|
426
|
+
__m128i even = _mm_unpacklo_epi16(lo, hi), // r0 r2 g0 g2 b0 b2 a0 a2
|
427
|
+
odd = _mm_unpackhi_epi16(lo, hi); // r1 r3 ...
|
428
|
+
__m128i rg = _mm_unpacklo_epi16(even, odd), // r0 r1 r2 r3 g0 g1 g2 g3
|
429
|
+
ba = _mm_unpackhi_epi16(even, odd); // b0 b1 ... a0 a1 ...
|
430
|
+
*r = rg;
|
431
|
+
*g = _mm_srli_si128(rg, 8);
|
432
|
+
*b = ba;
|
433
|
+
*a = _mm_srli_si128(ba, 8);
|
434
|
+
}
|
435
|
+
AI static void Load3(const void* ptr, SkNx* r, SkNx* g, SkNx* b) {
|
436
|
+
// The idea here is to get 4 vectors that are R G B _ _ _ _ _.
|
437
|
+
// The second load is at a funny location to make sure we don't read past
|
438
|
+
// the bounds of memory. This is fine, we just need to shift it a little bit.
|
439
|
+
const uint8_t* ptr8 = (const uint8_t*) ptr;
|
440
|
+
__m128i rgb0 = _mm_loadu_si128((const __m128i*) (ptr8 + 0));
|
441
|
+
__m128i rgb1 = _mm_srli_si128(rgb0, 3*2);
|
442
|
+
__m128i rgb2 = _mm_srli_si128(_mm_loadu_si128((const __m128i*) (ptr8 + 4*2)), 2*2);
|
443
|
+
__m128i rgb3 = _mm_srli_si128(rgb2, 3*2);
|
444
|
+
|
445
|
+
__m128i rrggbb01 = _mm_unpacklo_epi16(rgb0, rgb1);
|
446
|
+
__m128i rrggbb23 = _mm_unpacklo_epi16(rgb2, rgb3);
|
447
|
+
*r = _mm_unpacklo_epi32(rrggbb01, rrggbb23);
|
448
|
+
*g = _mm_srli_si128(r->fVec, 4*2);
|
449
|
+
*b = _mm_unpackhi_epi32(rrggbb01, rrggbb23);
|
450
|
+
}
|
451
|
+
AI static void Store4(void* dst, const SkNx& r, const SkNx& g, const SkNx& b, const SkNx& a) {
|
452
|
+
__m128i rg = _mm_unpacklo_epi16(r.fVec, g.fVec);
|
453
|
+
__m128i ba = _mm_unpacklo_epi16(b.fVec, a.fVec);
|
454
|
+
__m128i lo = _mm_unpacklo_epi32(rg, ba);
|
455
|
+
__m128i hi = _mm_unpackhi_epi32(rg, ba);
|
456
|
+
_mm_storeu_si128(((__m128i*) dst) + 0, lo);
|
457
|
+
_mm_storeu_si128(((__m128i*) dst) + 1, hi);
|
458
|
+
}
|
459
|
+
|
460
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi16(fVec, o.fVec); }
|
461
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi16(fVec, o.fVec); }
|
462
|
+
AI SkNx operator * (const SkNx& o) const { return _mm_mullo_epi16(fVec, o.fVec); }
|
463
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
464
|
+
AI SkNx operator | (const SkNx& o) const { return _mm_or_si128(fVec, o.fVec); }
|
465
|
+
|
466
|
+
AI SkNx operator << (int bits) const { return _mm_slli_epi16(fVec, bits); }
|
467
|
+
AI SkNx operator >> (int bits) const { return _mm_srli_epi16(fVec, bits); }
|
468
|
+
|
469
|
+
AI uint16_t operator[](int k) const {
|
470
|
+
SkASSERT(0 <= k && k < 4);
|
471
|
+
union { __m128i v; uint16_t us[8]; } pun = {fVec};
|
472
|
+
return pun.us[k&3];
|
473
|
+
}
|
474
|
+
|
475
|
+
__m128i fVec;
|
476
|
+
};
|
477
|
+
|
478
|
+
template <>
|
479
|
+
class SkNx<8, uint16_t> {
|
480
|
+
public:
|
481
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
482
|
+
|
483
|
+
AI SkNx() {}
|
484
|
+
AI SkNx(uint16_t val) : fVec(_mm_set1_epi16((short)val)) {}
|
485
|
+
AI SkNx(uint16_t a, uint16_t b, uint16_t c, uint16_t d,
|
486
|
+
uint16_t e, uint16_t f, uint16_t g, uint16_t h)
|
487
|
+
: fVec(_mm_setr_epi16((short)a,(short)b,(short)c,(short)d,
|
488
|
+
(short)e,(short)f,(short)g,(short)h)) {}
|
489
|
+
|
490
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadu_si128((const __m128i*)ptr); }
|
491
|
+
AI void store(void* ptr) const { _mm_storeu_si128((__m128i*)ptr, fVec); }
|
492
|
+
|
493
|
+
AI static void Load4(const void* ptr, SkNx* r, SkNx* g, SkNx* b, SkNx* a) {
|
494
|
+
__m128i _01 = _mm_loadu_si128(((__m128i*)ptr) + 0),
|
495
|
+
_23 = _mm_loadu_si128(((__m128i*)ptr) + 1),
|
496
|
+
_45 = _mm_loadu_si128(((__m128i*)ptr) + 2),
|
497
|
+
_67 = _mm_loadu_si128(((__m128i*)ptr) + 3);
|
498
|
+
|
499
|
+
__m128i _02 = _mm_unpacklo_epi16(_01, _23), // r0 r2 g0 g2 b0 b2 a0 a2
|
500
|
+
_13 = _mm_unpackhi_epi16(_01, _23), // r1 r3 g1 g3 b1 b3 a1 a3
|
501
|
+
_46 = _mm_unpacklo_epi16(_45, _67),
|
502
|
+
_57 = _mm_unpackhi_epi16(_45, _67);
|
503
|
+
|
504
|
+
__m128i rg0123 = _mm_unpacklo_epi16(_02, _13), // r0 r1 r2 r3 g0 g1 g2 g3
|
505
|
+
ba0123 = _mm_unpackhi_epi16(_02, _13), // b0 b1 b2 b3 a0 a1 a2 a3
|
506
|
+
rg4567 = _mm_unpacklo_epi16(_46, _57),
|
507
|
+
ba4567 = _mm_unpackhi_epi16(_46, _57);
|
508
|
+
|
509
|
+
*r = _mm_unpacklo_epi64(rg0123, rg4567);
|
510
|
+
*g = _mm_unpackhi_epi64(rg0123, rg4567);
|
511
|
+
*b = _mm_unpacklo_epi64(ba0123, ba4567);
|
512
|
+
*a = _mm_unpackhi_epi64(ba0123, ba4567);
|
513
|
+
}
|
514
|
+
AI static void Load3(const void* ptr, SkNx* r, SkNx* g, SkNx* b) {
|
515
|
+
const uint8_t* ptr8 = (const uint8_t*) ptr;
|
516
|
+
__m128i rgb0 = _mm_loadu_si128((const __m128i*) (ptr8 + 0*2));
|
517
|
+
__m128i rgb1 = _mm_srli_si128(rgb0, 3*2);
|
518
|
+
__m128i rgb2 = _mm_loadu_si128((const __m128i*) (ptr8 + 6*2));
|
519
|
+
__m128i rgb3 = _mm_srli_si128(rgb2, 3*2);
|
520
|
+
__m128i rgb4 = _mm_loadu_si128((const __m128i*) (ptr8 + 12*2));
|
521
|
+
__m128i rgb5 = _mm_srli_si128(rgb4, 3*2);
|
522
|
+
__m128i rgb6 = _mm_srli_si128(_mm_loadu_si128((const __m128i*) (ptr8 + 16*2)), 2*2);
|
523
|
+
__m128i rgb7 = _mm_srli_si128(rgb6, 3*2);
|
524
|
+
|
525
|
+
__m128i rgb01 = _mm_unpacklo_epi16(rgb0, rgb1);
|
526
|
+
__m128i rgb23 = _mm_unpacklo_epi16(rgb2, rgb3);
|
527
|
+
__m128i rgb45 = _mm_unpacklo_epi16(rgb4, rgb5);
|
528
|
+
__m128i rgb67 = _mm_unpacklo_epi16(rgb6, rgb7);
|
529
|
+
|
530
|
+
__m128i rg03 = _mm_unpacklo_epi32(rgb01, rgb23);
|
531
|
+
__m128i bx03 = _mm_unpackhi_epi32(rgb01, rgb23);
|
532
|
+
__m128i rg47 = _mm_unpacklo_epi32(rgb45, rgb67);
|
533
|
+
__m128i bx47 = _mm_unpackhi_epi32(rgb45, rgb67);
|
534
|
+
|
535
|
+
*r = _mm_unpacklo_epi64(rg03, rg47);
|
536
|
+
*g = _mm_unpackhi_epi64(rg03, rg47);
|
537
|
+
*b = _mm_unpacklo_epi64(bx03, bx47);
|
538
|
+
}
|
539
|
+
AI static void Store4(void* ptr, const SkNx& r, const SkNx& g, const SkNx& b, const SkNx& a) {
|
540
|
+
__m128i rg0123 = _mm_unpacklo_epi16(r.fVec, g.fVec), // r0 g0 r1 g1 r2 g2 r3 g3
|
541
|
+
rg4567 = _mm_unpackhi_epi16(r.fVec, g.fVec), // r4 g4 r5 g5 r6 g6 r7 g7
|
542
|
+
ba0123 = _mm_unpacklo_epi16(b.fVec, a.fVec),
|
543
|
+
ba4567 = _mm_unpackhi_epi16(b.fVec, a.fVec);
|
544
|
+
|
545
|
+
_mm_storeu_si128((__m128i*)ptr + 0, _mm_unpacklo_epi32(rg0123, ba0123));
|
546
|
+
_mm_storeu_si128((__m128i*)ptr + 1, _mm_unpackhi_epi32(rg0123, ba0123));
|
547
|
+
_mm_storeu_si128((__m128i*)ptr + 2, _mm_unpacklo_epi32(rg4567, ba4567));
|
548
|
+
_mm_storeu_si128((__m128i*)ptr + 3, _mm_unpackhi_epi32(rg4567, ba4567));
|
549
|
+
}
|
550
|
+
|
551
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi16(fVec, o.fVec); }
|
552
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi16(fVec, o.fVec); }
|
553
|
+
AI SkNx operator * (const SkNx& o) const { return _mm_mullo_epi16(fVec, o.fVec); }
|
554
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
555
|
+
AI SkNx operator | (const SkNx& o) const { return _mm_or_si128(fVec, o.fVec); }
|
556
|
+
|
557
|
+
AI SkNx operator << (int bits) const { return _mm_slli_epi16(fVec, bits); }
|
558
|
+
AI SkNx operator >> (int bits) const { return _mm_srli_epi16(fVec, bits); }
|
559
|
+
|
560
|
+
AI static SkNx Min(const SkNx& a, const SkNx& b) {
|
561
|
+
// No unsigned _mm_min_epu16, so we'll shift into a space where we can use the
|
562
|
+
// signed version, _mm_min_epi16, then shift back.
|
563
|
+
const uint16_t top = 0x8000; // Keep this separate from _mm_set1_epi16 or MSVC will whine.
|
564
|
+
const __m128i top_8x = _mm_set1_epi16((short)top);
|
565
|
+
return _mm_add_epi8(top_8x, _mm_min_epi16(_mm_sub_epi8(a.fVec, top_8x),
|
566
|
+
_mm_sub_epi8(b.fVec, top_8x)));
|
567
|
+
}
|
568
|
+
|
569
|
+
AI SkNx mulHi(const SkNx& m) const {
|
570
|
+
return _mm_mulhi_epu16(fVec, m.fVec);
|
571
|
+
}
|
572
|
+
|
573
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
574
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
575
|
+
_mm_andnot_si128(fVec, e.fVec));
|
576
|
+
}
|
577
|
+
|
578
|
+
AI uint16_t operator[](int k) const {
|
579
|
+
SkASSERT(0 <= k && k < 8);
|
580
|
+
union { __m128i v; uint16_t us[8]; } pun = {fVec};
|
581
|
+
return pun.us[k&7];
|
582
|
+
}
|
583
|
+
|
584
|
+
__m128i fVec;
|
585
|
+
};
|
586
|
+
|
587
|
+
template <>
|
588
|
+
class SkNx<4, uint8_t> {
|
589
|
+
public:
|
590
|
+
AI SkNx() {}
|
591
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
592
|
+
AI SkNx(uint8_t a, uint8_t b, uint8_t c, uint8_t d)
|
593
|
+
: fVec(_mm_setr_epi8((char)a,(char)b,(char)c,(char)d, 0,0,0,0, 0,0,0,0, 0,0,0,0)) {}
|
594
|
+
|
595
|
+
AI static SkNx Load(const void* ptr) { return _mm_cvtsi32_si128(*(const int*)ptr); }
|
596
|
+
AI void store(void* ptr) const { *(int*)ptr = _mm_cvtsi128_si32(fVec); }
|
597
|
+
|
598
|
+
AI uint8_t operator[](int k) const {
|
599
|
+
SkASSERT(0 <= k && k < 4);
|
600
|
+
union { __m128i v; uint8_t us[16]; } pun = {fVec};
|
601
|
+
return pun.us[k&3];
|
602
|
+
}
|
603
|
+
|
604
|
+
// TODO as needed
|
605
|
+
|
606
|
+
__m128i fVec;
|
607
|
+
};
|
608
|
+
|
609
|
+
template <>
|
610
|
+
class SkNx<8, uint8_t> {
|
611
|
+
public:
|
612
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
613
|
+
|
614
|
+
AI SkNx() {}
|
615
|
+
AI SkNx(uint8_t val) : fVec(_mm_set1_epi8((char)val)) {}
|
616
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadl_epi64((const __m128i*)ptr); }
|
617
|
+
AI SkNx(uint8_t a, uint8_t b, uint8_t c, uint8_t d,
|
618
|
+
uint8_t e, uint8_t f, uint8_t g, uint8_t h)
|
619
|
+
: fVec(_mm_setr_epi8((char)a,(char)b,(char)c,(char)d,
|
620
|
+
(char)e,(char)f,(char)g,(char)h,
|
621
|
+
0,0,0,0, 0,0,0,0)) {}
|
622
|
+
|
623
|
+
AI void store(void* ptr) const {_mm_storel_epi64((__m128i*)ptr, fVec);}
|
624
|
+
|
625
|
+
AI SkNx saturatedAdd(const SkNx& o) const { return _mm_adds_epu8(fVec, o.fVec); }
|
626
|
+
|
627
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi8(fVec, o.fVec); }
|
628
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi8(fVec, o.fVec); }
|
629
|
+
|
630
|
+
AI static SkNx Min(const SkNx& a, const SkNx& b) { return _mm_min_epu8(a.fVec, b.fVec); }
|
631
|
+
AI SkNx operator < (const SkNx& o) const {
|
632
|
+
// There's no unsigned _mm_cmplt_epu8, so we flip the sign bits then use a signed compare.
|
633
|
+
auto flip = _mm_set1_epi8(char(0x80));
|
634
|
+
return _mm_cmplt_epi8(_mm_xor_si128(flip, fVec), _mm_xor_si128(flip, o.fVec));
|
635
|
+
}
|
636
|
+
|
637
|
+
AI uint8_t operator[](int k) const {
|
638
|
+
SkASSERT(0 <= k && k < 16);
|
639
|
+
union { __m128i v; uint8_t us[16]; } pun = {fVec};
|
640
|
+
return pun.us[k&15];
|
641
|
+
}
|
642
|
+
|
643
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
644
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
645
|
+
_mm_andnot_si128(fVec, e.fVec));
|
646
|
+
}
|
647
|
+
|
648
|
+
__m128i fVec;
|
649
|
+
};
|
650
|
+
|
651
|
+
template <>
|
652
|
+
class SkNx<16, uint8_t> {
|
653
|
+
public:
|
654
|
+
AI SkNx(const __m128i& vec) : fVec(vec) {}
|
655
|
+
|
656
|
+
AI SkNx() {}
|
657
|
+
AI SkNx(uint8_t val) : fVec(_mm_set1_epi8((char)val)) {}
|
658
|
+
AI static SkNx Load(const void* ptr) { return _mm_loadu_si128((const __m128i*)ptr); }
|
659
|
+
AI SkNx(uint8_t a, uint8_t b, uint8_t c, uint8_t d,
|
660
|
+
uint8_t e, uint8_t f, uint8_t g, uint8_t h,
|
661
|
+
uint8_t i, uint8_t j, uint8_t k, uint8_t l,
|
662
|
+
uint8_t m, uint8_t n, uint8_t o, uint8_t p)
|
663
|
+
: fVec(_mm_setr_epi8((char)a,(char)b,(char)c,(char)d,
|
664
|
+
(char)e,(char)f,(char)g,(char)h,
|
665
|
+
(char)i,(char)j,(char)k,(char)l,
|
666
|
+
(char)m,(char)n,(char)o,(char)p)) {}
|
667
|
+
|
668
|
+
AI void store(void* ptr) const { _mm_storeu_si128((__m128i*)ptr, fVec); }
|
669
|
+
|
670
|
+
AI SkNx saturatedAdd(const SkNx& o) const { return _mm_adds_epu8(fVec, o.fVec); }
|
671
|
+
|
672
|
+
AI SkNx operator + (const SkNx& o) const { return _mm_add_epi8(fVec, o.fVec); }
|
673
|
+
AI SkNx operator - (const SkNx& o) const { return _mm_sub_epi8(fVec, o.fVec); }
|
674
|
+
AI SkNx operator & (const SkNx& o) const { return _mm_and_si128(fVec, o.fVec); }
|
675
|
+
|
676
|
+
AI static SkNx Min(const SkNx& a, const SkNx& b) { return _mm_min_epu8(a.fVec, b.fVec); }
|
677
|
+
AI SkNx operator < (const SkNx& o) const {
|
678
|
+
// There's no unsigned _mm_cmplt_epu8, so we flip the sign bits then use a signed compare.
|
679
|
+
auto flip = _mm_set1_epi8(char(0x80));
|
680
|
+
return _mm_cmplt_epi8(_mm_xor_si128(flip, fVec), _mm_xor_si128(flip, o.fVec));
|
681
|
+
}
|
682
|
+
|
683
|
+
AI uint8_t operator[](int k) const {
|
684
|
+
SkASSERT(0 <= k && k < 16);
|
685
|
+
union { __m128i v; uint8_t us[16]; } pun = {fVec};
|
686
|
+
return pun.us[k&15];
|
687
|
+
}
|
688
|
+
|
689
|
+
AI SkNx thenElse(const SkNx& t, const SkNx& e) const {
|
690
|
+
return _mm_or_si128(_mm_and_si128 (fVec, t.fVec),
|
691
|
+
_mm_andnot_si128(fVec, e.fVec));
|
692
|
+
}
|
693
|
+
|
694
|
+
__m128i fVec;
|
695
|
+
};
|
696
|
+
|
697
|
+
template<> AI /*static*/ Sk4f SkNx_cast<float, int32_t>(const Sk4i& src) {
|
698
|
+
return _mm_cvtepi32_ps(src.fVec);
|
699
|
+
}
|
700
|
+
|
701
|
+
template<> AI /*static*/ Sk4f SkNx_cast<float, uint32_t>(const Sk4u& src) {
|
702
|
+
return SkNx_cast<float>(Sk4i::Load(&src));
|
703
|
+
}
|
704
|
+
|
705
|
+
template <> AI /*static*/ Sk4i SkNx_cast<int32_t, float>(const Sk4f& src) {
|
706
|
+
return _mm_cvttps_epi32(src.fVec);
|
707
|
+
}
|
708
|
+
|
709
|
+
template<> AI /*static*/ Sk4h SkNx_cast<uint16_t, int32_t>(const Sk4i& src) {
|
710
|
+
#if 0 && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41
|
711
|
+
// TODO: This seems to be causing code generation problems. Investigate?
|
712
|
+
return _mm_packus_epi32(src.fVec);
|
713
|
+
#elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
|
714
|
+
// With SSSE3, we can just shuffle the low 2 bytes from each lane right into place.
|
715
|
+
const int _ = ~0;
|
716
|
+
return _mm_shuffle_epi8(src.fVec, _mm_setr_epi8(0,1, 4,5, 8,9, 12,13, _,_,_,_,_,_,_,_));
|
717
|
+
#else
|
718
|
+
// With SSE2, we have to sign extend our input, making _mm_packs_epi32 do the pack we want.
|
719
|
+
__m128i x = _mm_srai_epi32(_mm_slli_epi32(src.fVec, 16), 16);
|
720
|
+
return _mm_packs_epi32(x,x);
|
721
|
+
#endif
|
722
|
+
}
|
723
|
+
|
724
|
+
template<> AI /*static*/ Sk4h SkNx_cast<uint16_t, float>(const Sk4f& src) {
|
725
|
+
return SkNx_cast<uint16_t>(SkNx_cast<int32_t>(src));
|
726
|
+
}
|
727
|
+
|
728
|
+
template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, float>(const Sk4f& src) {
|
729
|
+
auto _32 = _mm_cvttps_epi32(src.fVec);
|
730
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
|
731
|
+
const int _ = ~0;
|
732
|
+
return _mm_shuffle_epi8(_32, _mm_setr_epi8(0,4,8,12, _,_,_,_, _,_,_,_, _,_,_,_));
|
733
|
+
#else
|
734
|
+
auto _16 = _mm_packus_epi16(_32, _32);
|
735
|
+
return _mm_packus_epi16(_16, _16);
|
736
|
+
#endif
|
737
|
+
}
|
738
|
+
|
739
|
+
template<> AI /*static*/ Sk4u SkNx_cast<uint32_t, uint8_t>(const Sk4b& src) {
|
740
|
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
|
741
|
+
const int _ = ~0;
|
742
|
+
return _mm_shuffle_epi8(src.fVec, _mm_setr_epi8(0,_,_,_, 1,_,_,_, 2,_,_,_, 3,_,_,_));
|
743
|
+
#else
|
744
|
+
auto _16 = _mm_unpacklo_epi8(src.fVec, _mm_setzero_si128());
|
745
|
+
return _mm_unpacklo_epi16(_16, _mm_setzero_si128());
|
746
|
+
#endif
|
747
|
+
}
|
748
|
+
|
749
|
+
template<> AI /*static*/ Sk4i SkNx_cast<int32_t, uint8_t>(const Sk4b& src) {
|
750
|
+
return SkNx_cast<uint32_t>(src).fVec;
|
751
|
+
}
|
752
|
+
|
753
|
+
template<> AI /*static*/ Sk4f SkNx_cast<float, uint8_t>(const Sk4b& src) {
|
754
|
+
return _mm_cvtepi32_ps(SkNx_cast<int32_t>(src).fVec);
|
755
|
+
}
|
756
|
+
|
757
|
+
template<> AI /*static*/ Sk4f SkNx_cast<float, uint16_t>(const Sk4h& src) {
|
758
|
+
auto _32 = _mm_unpacklo_epi16(src.fVec, _mm_setzero_si128());
|
759
|
+
return _mm_cvtepi32_ps(_32);
|
760
|
+
}
|
761
|
+
|
762
|
+
template<> AI /*static*/ Sk8b SkNx_cast<uint8_t, int32_t>(const Sk8i& src) {
|
763
|
+
Sk4i lo, hi;
|
764
|
+
SkNx_split(src, &lo, &hi);
|
765
|
+
|
766
|
+
auto t = _mm_packs_epi32(lo.fVec, hi.fVec);
|
767
|
+
return _mm_packus_epi16(t, t);
|
768
|
+
}
|
769
|
+
|
770
|
+
template<> AI /*static*/ Sk16b SkNx_cast<uint8_t, float>(const Sk16f& src) {
|
771
|
+
Sk8f ab, cd;
|
772
|
+
SkNx_split(src, &ab, &cd);
|
773
|
+
|
774
|
+
Sk4f a,b,c,d;
|
775
|
+
SkNx_split(ab, &a, &b);
|
776
|
+
SkNx_split(cd, &c, &d);
|
777
|
+
|
778
|
+
return _mm_packus_epi16(_mm_packus_epi16(_mm_cvttps_epi32(a.fVec),
|
779
|
+
_mm_cvttps_epi32(b.fVec)),
|
780
|
+
_mm_packus_epi16(_mm_cvttps_epi32(c.fVec),
|
781
|
+
_mm_cvttps_epi32(d.fVec)));
|
782
|
+
}
|
783
|
+
|
784
|
+
template<> AI /*static*/ Sk4h SkNx_cast<uint16_t, uint8_t>(const Sk4b& src) {
|
785
|
+
return _mm_unpacklo_epi8(src.fVec, _mm_setzero_si128());
|
786
|
+
}
|
787
|
+
|
788
|
+
template<> AI /*static*/ Sk8h SkNx_cast<uint16_t, uint8_t>(const Sk8b& src) {
|
789
|
+
return _mm_unpacklo_epi8(src.fVec, _mm_setzero_si128());
|
790
|
+
}
|
791
|
+
|
792
|
+
template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, uint16_t>(const Sk4h& src) {
|
793
|
+
return _mm_packus_epi16(src.fVec, src.fVec);
|
794
|
+
}
|
795
|
+
|
796
|
+
template<> AI /*static*/ Sk8b SkNx_cast<uint8_t, uint16_t>(const Sk8h& src) {
|
797
|
+
return _mm_packus_epi16(src.fVec, src.fVec);
|
798
|
+
}
|
799
|
+
|
800
|
+
template<> AI /*static*/ Sk4i SkNx_cast<int32_t, uint16_t>(const Sk4h& src) {
|
801
|
+
return _mm_unpacklo_epi16(src.fVec, _mm_setzero_si128());
|
802
|
+
}
|
803
|
+
|
804
|
+
|
805
|
+
template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, int32_t>(const Sk4i& src) {
|
806
|
+
return _mm_packus_epi16(_mm_packus_epi16(src.fVec, src.fVec), src.fVec);
|
807
|
+
}
|
808
|
+
|
809
|
+
template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, uint32_t>(const Sk4u& src) {
|
810
|
+
return _mm_packus_epi16(_mm_packus_epi16(src.fVec, src.fVec), src.fVec);
|
811
|
+
}
|
812
|
+
|
813
|
+
template<> AI /*static*/ Sk4i SkNx_cast<int32_t, uint32_t>(const Sk4u& src) {
|
814
|
+
return src.fVec;
|
815
|
+
}
|
816
|
+
|
817
|
+
AI static Sk4i Sk4f_round(const Sk4f& x) {
|
818
|
+
return _mm_cvtps_epi32(x.fVec);
|
819
|
+
}
|
820
|
+
|
821
|
+
} // namespace
|
822
|
+
|
823
|
+
#endif//SkNx_sse_DEFINED
|