@shopify/react-native-skia 2.6.4 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/CMakeLists.txt +8 -4
- package/android/build.gradle +22 -3
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +62 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerDelegate.java +35 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerInterface.java +17 -0
- package/apple/RNSkApplePlatformContext.h +2 -0
- package/apple/RNSkApplePlatformContext.mm +71 -0
- package/apple/RNWebGPUAppleNativeBuffer.mm +33 -0
- package/cpp/api/JsiNativeBuffer.h +9 -1
- package/cpp/api/JsiSkAnimatedImageFactory.h +1 -1
- package/cpp/api/JsiSkApi.h +2 -2
- package/cpp/api/JsiSkCanvas.h +34 -1
- package/cpp/api/JsiSkDataFactory.h +1 -1
- package/cpp/api/JsiSkFont.h +1 -1
- package/cpp/api/JsiSkFontMgr.h +1 -1
- package/cpp/api/JsiSkHostObjects.h +3 -3
- package/cpp/api/JsiSkImage.h +14 -6
- package/cpp/api/JsiSkImageFactory.h +2 -2
- package/cpp/api/JsiSkPath.h +1 -1
- package/cpp/api/JsiSkPathFactory.h +1 -1
- package/cpp/api/JsiSkSurface.h +18 -6
- package/cpp/api/JsiSkTypeface.h +1 -1
- package/cpp/api/JsiSkTypefaceFontProvider.h +1 -1
- package/cpp/api/JsiSkiaContext.h +2 -2
- package/cpp/api/JsiTextureInfo.h +1 -1
- package/cpp/api/JsiVideo.h +2 -2
- package/cpp/api/recorder/Drawings.h +1 -1
- package/cpp/api/recorder/JsiRecorder.h +4 -4
- package/cpp/api/recorder/RNRecorder.h +1 -1
- package/cpp/jsi/ViewProperty.h +1 -1
- package/cpp/rnskia/RNDawnContext.h +13 -0
- package/cpp/rnskia/RNDawnUtils.h +11 -1
- package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
- package/cpp/rnskia/RNSkManager.cpp +88 -2
- package/cpp/rnskia/RNSkPictureView.h +4 -4
- package/cpp/rnskia/RNSkPlatformContext.h +7 -0
- package/cpp/rnskia/RNSkView.h +9 -6
- package/cpp/rnwgpu/ArrayBuffer.h +51 -7
- package/cpp/rnwgpu/api/AppleNativeBuffer.h +22 -0
- package/cpp/rnwgpu/api/Convertors.h +33 -11
- package/cpp/rnwgpu/api/GPU.cpp +0 -3
- package/cpp/rnwgpu/api/GPUAdapter.cpp +37 -7
- package/cpp/rnwgpu/api/GPUBuffer.h +1 -1
- package/cpp/rnwgpu/api/GPUDevice.cpp +84 -6
- package/cpp/rnwgpu/api/GPUDevice.h +12 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.cpp +139 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.h +52 -2
- package/cpp/rnwgpu/api/GPUQueue.cpp +50 -45
- package/cpp/rnwgpu/api/GPUShaderModule.cpp +1 -1
- package/cpp/rnwgpu/api/GPUSharedFence.cpp +80 -0
- package/cpp/rnwgpu/api/GPUSharedFence.h +53 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.cpp +135 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.h +75 -0
- package/cpp/rnwgpu/api/ImageBitmap.h +62 -0
- package/cpp/rnwgpu/api/NativeBufferUtils.h +87 -0
- package/cpp/rnwgpu/api/descriptors/GPUBindGroupEntry.h +4 -1
- package/cpp/rnwgpu/api/descriptors/GPUCanvasConfiguration.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUDawnTogglesDescriptor.h +56 -0
- package/cpp/rnwgpu/api/descriptors/GPUDeviceDescriptor.h +10 -0
- package/cpp/rnwgpu/api/descriptors/GPUExternalTextureDescriptor.h +43 -24
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyExternalImage.h +9 -9
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTexture.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTextureTagged.h +2 -2
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceDescriptor.h +58 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceState.h +51 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedTextureMemoryDescriptor.h +73 -0
- package/cpp/rnwgpu/api/descriptors/GPUTextureDescriptor.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUUncapturedErrorEventInit.h +1 -1
- package/cpp/skia/include/android/GrAHardwareBufferUtils.h +1 -1
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +1 -1
- package/cpp/skia/include/android/SkAnimatedImage.h +1 -1
- package/cpp/skia/include/codec/SkCodec.h +0 -8
- package/cpp/skia/include/codec/SkEncodedOrigin.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +2 -8
- package/cpp/skia/include/core/SkCPURecorder.h +3 -1
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +1 -1
- package/cpp/skia/include/core/SkColorType.h +5 -3
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkCoverageMode.h +1 -1
- package/cpp/skia/include/core/SkCubicMap.h +1 -1
- package/cpp/skia/include/core/SkExecutor.h +1 -1
- package/cpp/skia/include/core/SkFont.h +15 -0
- package/cpp/skia/include/core/SkFontArguments.h +6 -1
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +36 -1
- package/cpp/skia/include/core/SkFontParameters.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +1 -1
- package/cpp/skia/include/core/SkFontTypes.h +1 -1
- package/cpp/skia/include/core/SkM44.h +1 -1
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/include/core/SkPathBuilder.h +10 -4
- package/cpp/skia/include/core/SkPathIter.h +1 -1
- package/cpp/skia/include/core/SkPathTypes.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +4 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -1
- package/cpp/skia/include/core/SkRegion.h +17 -6
- package/cpp/skia/include/core/SkSamplingOptions.h +1 -1
- package/cpp/skia/include/core/SkSerialProcs.h +8 -1
- package/cpp/skia/include/core/SkShader.h +3 -5
- package/cpp/skia/include/core/SkSpan.h +1 -1
- package/cpp/skia/include/core/SkStream.h +1 -1
- package/cpp/skia/include/core/SkStrikeRef.h +80 -0
- package/cpp/skia/include/core/SkTileMode.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +3 -5
- package/cpp/skia/include/docs/SkPDFDocument.h +1 -1
- package/cpp/skia/include/docs/SkXPSDocument.h +1 -1
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkHighContrastFilter.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +2 -2
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +1 -1
- package/cpp/skia/include/effects/SkTrimPathEffect.h +1 -1
- package/cpp/skia/include/encode/SkEncoder.h +1 -1
- package/cpp/skia/include/encode/SkJpegEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngRustEncoder.h +1 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +2 -0
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +6 -62
- package/cpp/skia/include/gpu/ganesh/GrContextThreadSafeProxy.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +2 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +59 -0
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +1 -1
- package/cpp/skia/include/gpu/graphite/Context.h +12 -5
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +6 -0
- package/cpp/skia/include/gpu/graphite/Image.h +82 -9
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +7 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +6 -4
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileColorFilter.h +11 -1
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileShader.h +1 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/ports/SkCFObject.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_android_ndk.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_data.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_FreeType.h +1 -1
- package/cpp/skia/include/ports/SkTypeface_fontations.h +1 -1
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/SkGainmapInfo.h +1 -1
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +21 -0
- package/cpp/skia/include/private/SkJpegGainmapEncoder.h +1 -1
- package/cpp/skia/include/private/SkPixelStorage.h +37 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/base/SkAssert.h +6 -5
- package/cpp/skia/include/private/base/SkContainers.h +1 -1
- package/cpp/skia/include/private/base/SkFeatures.h +30 -30
- package/cpp/skia/include/private/base/SkLog.h +1 -7
- package/cpp/skia/include/private/base/SkLogPriority.h +4 -5
- package/cpp/skia/include/private/base/SkMacros.h +1 -1
- package/cpp/skia/include/private/base/SkMalloc.h +1 -1
- package/cpp/skia/include/private/base/SkSafe32.h +1 -1
- package/cpp/skia/include/private/base/SkSpan_impl.h +1 -1
- package/cpp/skia/include/private/base/SkTDArray.h +13 -1
- package/cpp/skia/include/private/base/SkTPin.h +1 -1
- package/cpp/skia/include/private/base/SkTo.h +1 -1
- package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +52 -0
- package/cpp/skia/include/private/chromium/SkExifChromium.h +26 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +2 -1
- package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +1 -1
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_icd.h +41 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_layer.h +42 -53
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +2 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std.h +158 -154
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_decode.h +68 -65
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_encode.h +90 -87
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std.h +9 -9
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_encode.h +82 -79
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std.h +24 -24
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_encode.h +95 -96
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std.h +151 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std_decode.h +68 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codecs_common.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +7 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_beta.h +291 -158
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +13174 -10113
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_directfb.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_fuchsia.h +159 -165
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ggp.h +22 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_metal.h +94 -88
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ohos.h +120 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_screen.h +55 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_vi.h +18 -15
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_wayland.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +31 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib.h +27 -27
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib_xrandr.h +20 -16
- package/cpp/skia/include/utils/SkEventTracer.h +6 -1
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +1 -1
- package/cpp/skia/include/utils/SkShadowUtils.h +1 -1
- package/cpp/skia/include/utils/SkTextUtils.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +20 -4
- package/cpp/skia/modules/skcms/src/Transform_inl.h +11 -15
- package/cpp/skia/modules/skcms/src/skcms_public.h +2 -0
- package/cpp/skia/modules/skottie/include/ExternalLayer.h +1 -1
- package/cpp/skia/modules/skottie/include/Skottie.h +1 -1
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +1 -1
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/SkottieValue.h +1 -1
- package/cpp/skia/modules/skottie/src/animator/Animator.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAdapter.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAnimator.h +3 -2
- package/cpp/skia/modules/skottie/src/text/TextValue.h +1 -1
- package/cpp/skia/modules/skparagraph/include/DartTypes.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontArguments.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontCollection.h +5 -1
- package/cpp/skia/modules/skparagraph/include/Metrics.h +1 -1
- package/cpp/skia/modules/skparagraph/include/Paragraph.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphPainter.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphStyle.h +12 -5
- package/cpp/skia/modules/skparagraph/include/TextShadow.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGClipEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGColorFilter.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGDraw.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGEffectNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGradient.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGroup.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGImage.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGInvalidationController.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMaskEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMerge.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGOpacityEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPaint.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPath.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPlane.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGScene.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGText.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGTransform.h +1 -1
- package/cpp/skia/modules/skshaper/include/SkShaper_coretext.h +8 -1
- package/cpp/skia/modules/svg/include/SkSVGFe.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/src/base/SkAutoLocaleSetter.h +94 -0
- package/cpp/skia/src/base/SkUTF.h +1 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/types/WebGPU.d.ts +153 -0
- package/lib/commonjs/skia/types/WebGPU.js +6 -0
- package/lib/commonjs/skia/types/WebGPU.js.map +1 -0
- package/lib/commonjs/skia/types/index.d.ts +1 -0
- package/lib/commonjs/skia/types/index.js +11 -0
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/module/skia/types/WebGPU.d.ts +153 -0
- package/lib/module/skia/types/WebGPU.js +2 -0
- package/lib/module/skia/types/WebGPU.js.map +1 -0
- package/lib/module/skia/types/index.d.ts +1 -0
- package/lib/module/skia/types/index.js +1 -0
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +1 -2
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/typescript/lib/commonjs/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/typescript/src/skia/types/WebGPU.d.ts +153 -0
- package/lib/typescript/src/skia/types/index.d.ts +1 -0
- package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/package.json +14 -12
- package/react-native-skia.podspec +59 -7
- package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +10 -1
- package/src/skia/types/WebGPU.ts +186 -0
- package/src/skia/types/index.ts +1 -0
- package/src/skia/web/JsiSkNativeBufferFactory.ts +20 -0
- package/src/skia/web/JsiSkPath.ts +8 -2
- package/scripts/install-libs.js +0 -133
|
@@ -16,19 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
#define MAX_NUM_UNKNOWN_EXTS 250
|
|
18
18
|
|
|
19
|
-
// Loader-Layer version negotiation API. Versions add the following features:
|
|
20
|
-
// Versions 0/1 - Initial. Doesn't support vk_layerGetPhysicalDeviceProcAddr
|
|
21
|
-
// or vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
22
|
-
// Version 2 - Add support for vk_layerGetPhysicalDeviceProcAddr and
|
|
23
|
-
// vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
19
|
+
// Loader-Layer version negotiation API. Versions add the following features:
|
|
20
|
+
// Versions 0/1 - Initial. Doesn't support vk_layerGetPhysicalDeviceProcAddr
|
|
21
|
+
// or vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
22
|
+
// Version 2 - Add support for vk_layerGetPhysicalDeviceProcAddr and
|
|
23
|
+
// vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
24
24
|
#define CURRENT_LOADER_LAYER_INTERFACE_VERSION 2
|
|
25
25
|
#define MIN_SUPPORTED_LOADER_LAYER_INTERFACE_VERSION 1
|
|
26
26
|
|
|
27
27
|
#define VK_CURRENT_CHAIN_VERSION 1
|
|
28
28
|
|
|
29
29
|
// Typedef for use in the interfaces below
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
#ifndef IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
31
|
+
typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_GetPhysicalDeviceProcAddr)(VkInstance instance, const char* pName);
|
|
32
|
+
#define IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
33
|
+
#endif
|
|
32
34
|
|
|
33
35
|
// Version negotiation values
|
|
34
36
|
typedef enum VkNegotiateLayerStructType {
|
|
@@ -39,7 +41,7 @@ typedef enum VkNegotiateLayerStructType {
|
|
|
39
41
|
// Version negotiation structures
|
|
40
42
|
typedef struct VkNegotiateLayerInterface {
|
|
41
43
|
VkNegotiateLayerStructType sType;
|
|
42
|
-
void*
|
|
44
|
+
void *pNext;
|
|
43
45
|
uint32_t loaderLayerInterfaceVersion;
|
|
44
46
|
PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr;
|
|
45
47
|
PFN_vkGetDeviceProcAddr pfnGetDeviceProcAddr;
|
|
@@ -47,11 +49,10 @@ typedef struct VkNegotiateLayerInterface {
|
|
|
47
49
|
} VkNegotiateLayerInterface;
|
|
48
50
|
|
|
49
51
|
// Version negotiation functions
|
|
50
|
-
typedef VkResult(VKAPI_PTR*
|
|
51
|
-
VkNegotiateLayerInterface* pVersionStruct);
|
|
52
|
+
typedef VkResult (VKAPI_PTR *PFN_vkNegotiateLoaderLayerInterfaceVersion)(VkNegotiateLayerInterface *pVersionStruct);
|
|
52
53
|
|
|
53
54
|
// Function prototype for unknown physical device extension command
|
|
54
|
-
typedef VkResult(VKAPI_PTR*
|
|
55
|
+
typedef VkResult(VKAPI_PTR *PFN_PhysDevExt)(VkPhysicalDevice phys_device);
|
|
55
56
|
|
|
56
57
|
// ------------------------------------------------------------------------------------------------
|
|
57
58
|
// CreateInstance and CreateDevice support structures
|
|
@@ -69,7 +70,7 @@ typedef enum VkLayerFunction_ {
|
|
|
69
70
|
} VkLayerFunction;
|
|
70
71
|
|
|
71
72
|
typedef struct VkLayerInstanceLink_ {
|
|
72
|
-
struct VkLayerInstanceLink_*
|
|
73
|
+
struct VkLayerInstanceLink_ *pNext;
|
|
73
74
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
74
75
|
PFN_GetPhysicalDeviceProcAddr pfnNextGetPhysicalDeviceProcAddr;
|
|
75
76
|
} VkLayerInstanceLink;
|
|
@@ -82,22 +83,17 @@ typedef struct VkLayerInstanceLink_ {
|
|
|
82
83
|
* exact instance being used.
|
|
83
84
|
*/
|
|
84
85
|
typedef struct VkLayerDeviceInfo_ {
|
|
85
|
-
void*
|
|
86
|
+
void *device_info;
|
|
86
87
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
87
88
|
} VkLayerDeviceInfo;
|
|
88
89
|
|
|
89
|
-
typedef VkResult(VKAPI_PTR*
|
|
90
|
-
|
|
91
|
-
typedef VkResult(VKAPI_PTR*
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
PFN_vkGetInstanceProcAddr layerGIPA,
|
|
97
|
-
PFN_vkGetDeviceProcAddr* nextGDPA);
|
|
98
|
-
typedef void(VKAPI_PTR* PFN_vkLayerDestroyDevice)(VkDevice physicalDevice,
|
|
99
|
-
const VkAllocationCallbacks* pAllocator,
|
|
100
|
-
PFN_vkDestroyDevice destroyFunction);
|
|
90
|
+
typedef VkResult (VKAPI_PTR *PFN_vkSetInstanceLoaderData)(VkInstance instance,
|
|
91
|
+
void *object);
|
|
92
|
+
typedef VkResult (VKAPI_PTR *PFN_vkSetDeviceLoaderData)(VkDevice device,
|
|
93
|
+
void *object);
|
|
94
|
+
typedef VkResult (VKAPI_PTR *PFN_vkLayerCreateDevice)(VkInstance instance, VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo,
|
|
95
|
+
const VkAllocationCallbacks *pAllocator, VkDevice *pDevice, PFN_vkGetInstanceProcAddr layerGIPA, PFN_vkGetDeviceProcAddr *nextGDPA);
|
|
96
|
+
typedef void (VKAPI_PTR *PFN_vkLayerDestroyDevice)(VkDevice physicalDevice, const VkAllocationCallbacks *pAllocator, PFN_vkDestroyDevice destroyFunction);
|
|
101
97
|
|
|
102
98
|
typedef enum VkLoaderFeastureFlagBits {
|
|
103
99
|
VK_LOADER_FEATURE_PHYSICAL_DEVICE_SORTING = 0x00000001,
|
|
@@ -105,32 +101,32 @@ typedef enum VkLoaderFeastureFlagBits {
|
|
|
105
101
|
typedef VkFlags VkLoaderFeatureFlags;
|
|
106
102
|
|
|
107
103
|
typedef struct {
|
|
108
|
-
VkStructureType sType;
|
|
109
|
-
const void*
|
|
104
|
+
VkStructureType sType; // VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO
|
|
105
|
+
const void *pNext;
|
|
110
106
|
VkLayerFunction function;
|
|
111
107
|
union {
|
|
112
|
-
VkLayerInstanceLink*
|
|
108
|
+
VkLayerInstanceLink *pLayerInfo;
|
|
113
109
|
PFN_vkSetInstanceLoaderData pfnSetInstanceLoaderData;
|
|
114
110
|
struct {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
PFN_vkLayerCreateDevice pfnLayerCreateDevice;
|
|
112
|
+
PFN_vkLayerDestroyDevice pfnLayerDestroyDevice;
|
|
113
|
+
} layerDevice;
|
|
118
114
|
VkLoaderFeatureFlags loaderFeatures;
|
|
119
115
|
} u;
|
|
120
116
|
} VkLayerInstanceCreateInfo;
|
|
121
117
|
|
|
122
118
|
typedef struct VkLayerDeviceLink_ {
|
|
123
|
-
struct VkLayerDeviceLink_*
|
|
119
|
+
struct VkLayerDeviceLink_ *pNext;
|
|
124
120
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
125
121
|
PFN_vkGetDeviceProcAddr pfnNextGetDeviceProcAddr;
|
|
126
122
|
} VkLayerDeviceLink;
|
|
127
123
|
|
|
128
124
|
typedef struct {
|
|
129
|
-
VkStructureType sType;
|
|
130
|
-
const void*
|
|
125
|
+
VkStructureType sType; // VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO
|
|
126
|
+
const void *pNext;
|
|
131
127
|
VkLayerFunction function;
|
|
132
128
|
union {
|
|
133
|
-
VkLayerDeviceLink*
|
|
129
|
+
VkLayerDeviceLink *pLayerInfo;
|
|
134
130
|
PFN_vkSetDeviceLoaderData pfnSetDeviceLoaderData;
|
|
135
131
|
} u;
|
|
136
132
|
} VkLayerDeviceCreateInfo;
|
|
@@ -139,8 +135,7 @@ typedef struct {
|
|
|
139
135
|
extern "C" {
|
|
140
136
|
#endif
|
|
141
137
|
|
|
142
|
-
VKAPI_ATTR VkResult VKAPI_CALL
|
|
143
|
-
vkNegotiateLoaderLayerInterfaceVersion(VkNegotiateLayerInterface* pVersionStruct);
|
|
138
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkNegotiateLoaderLayerInterfaceVersion(VkNegotiateLayerInterface *pVersionStruct);
|
|
144
139
|
|
|
145
140
|
typedef enum VkChainType {
|
|
146
141
|
VK_CHAIN_TYPE_UNKNOWN = 0,
|
|
@@ -157,16 +152,12 @@ typedef struct VkChainHeader {
|
|
|
157
152
|
|
|
158
153
|
typedef struct VkEnumerateInstanceExtensionPropertiesChain {
|
|
159
154
|
VkChainHeader header;
|
|
160
|
-
VkResult(VKAPI_PTR*
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
VkExtensionProperties*);
|
|
164
|
-
const struct VkEnumerateInstanceExtensionPropertiesChain* pNextLink;
|
|
155
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceExtensionPropertiesChain *, const char *, uint32_t *,
|
|
156
|
+
VkExtensionProperties *);
|
|
157
|
+
const struct VkEnumerateInstanceExtensionPropertiesChain *pNextLink;
|
|
165
158
|
|
|
166
159
|
#if defined(__cplusplus)
|
|
167
|
-
inline VkResult CallDown(const char*
|
|
168
|
-
uint32_t* pPropertyCount,
|
|
169
|
-
VkExtensionProperties* pProperties) const {
|
|
160
|
+
inline VkResult CallDown(const char *pLayerName, uint32_t *pPropertyCount, VkExtensionProperties *pProperties) const {
|
|
170
161
|
return pfnNextLayer(pNextLink, pLayerName, pPropertyCount, pProperties);
|
|
171
162
|
}
|
|
172
163
|
#endif
|
|
@@ -174,13 +165,11 @@ typedef struct VkEnumerateInstanceExtensionPropertiesChain {
|
|
|
174
165
|
|
|
175
166
|
typedef struct VkEnumerateInstanceLayerPropertiesChain {
|
|
176
167
|
VkChainHeader header;
|
|
177
|
-
VkResult(VKAPI_PTR*
|
|
178
|
-
|
|
179
|
-
VkLayerProperties*);
|
|
180
|
-
const struct VkEnumerateInstanceLayerPropertiesChain* pNextLink;
|
|
168
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceLayerPropertiesChain *, uint32_t *, VkLayerProperties *);
|
|
169
|
+
const struct VkEnumerateInstanceLayerPropertiesChain *pNextLink;
|
|
181
170
|
|
|
182
171
|
#if defined(__cplusplus)
|
|
183
|
-
inline VkResult CallDown(uint32_t*
|
|
172
|
+
inline VkResult CallDown(uint32_t *pPropertyCount, VkLayerProperties *pProperties) const {
|
|
184
173
|
return pfnNextLayer(pNextLink, pPropertyCount, pProperties);
|
|
185
174
|
}
|
|
186
175
|
#endif
|
|
@@ -188,11 +177,11 @@ typedef struct VkEnumerateInstanceLayerPropertiesChain {
|
|
|
188
177
|
|
|
189
178
|
typedef struct VkEnumerateInstanceVersionChain {
|
|
190
179
|
VkChainHeader header;
|
|
191
|
-
VkResult(VKAPI_PTR*
|
|
192
|
-
const struct VkEnumerateInstanceVersionChain*
|
|
180
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceVersionChain *, uint32_t *);
|
|
181
|
+
const struct VkEnumerateInstanceVersionChain *pNextLink;
|
|
193
182
|
|
|
194
183
|
#if defined(__cplusplus)
|
|
195
|
-
inline VkResult CallDown(uint32_t*
|
|
184
|
+
inline VkResult CallDown(uint32_t *pApiVersion) const {
|
|
196
185
|
return pfnNextLayer(pNextLink, pApiVersion);
|
|
197
186
|
}
|
|
198
187
|
#endif
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_VIDEO_CODEC_AV1STD_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -12,34 +12,37 @@
|
|
|
12
12
|
**
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
#ifdef __cplusplus
|
|
16
17
|
extern "C" {
|
|
17
18
|
#endif
|
|
18
19
|
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
// vulkan_video_codec_av1std is a preprocessor guard. Do not pass it to API calls.
|
|
20
23
|
#define vulkan_video_codec_av1std 1
|
|
21
24
|
#include "vulkan_video_codecs_common.h"
|
|
22
|
-
#define STD_VIDEO_AV1_NUM_REF_FRAMES
|
|
23
|
-
#define STD_VIDEO_AV1_REFS_PER_FRAME
|
|
24
|
-
#define STD_VIDEO_AV1_TOTAL_REFS_PER_FRAME
|
|
25
|
-
#define STD_VIDEO_AV1_MAX_TILE_COLS
|
|
26
|
-
#define STD_VIDEO_AV1_MAX_TILE_ROWS
|
|
27
|
-
#define STD_VIDEO_AV1_MAX_SEGMENTS
|
|
28
|
-
#define STD_VIDEO_AV1_SEG_LVL_MAX
|
|
29
|
-
#define STD_VIDEO_AV1_PRIMARY_REF_NONE
|
|
30
|
-
#define STD_VIDEO_AV1_SELECT_INTEGER_MV
|
|
31
|
-
#define STD_VIDEO_AV1_SELECT_SCREEN_CONTENT_TOOLS
|
|
32
|
-
#define STD_VIDEO_AV1_SKIP_MODE_FRAMES
|
|
33
|
-
#define STD_VIDEO_AV1_MAX_LOOP_FILTER_STRENGTHS
|
|
34
|
-
#define STD_VIDEO_AV1_LOOP_FILTER_ADJUSTMENTS
|
|
35
|
-
#define STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS
|
|
36
|
-
#define STD_VIDEO_AV1_MAX_NUM_PLANES
|
|
37
|
-
#define STD_VIDEO_AV1_GLOBAL_MOTION_PARAMS
|
|
38
|
-
#define STD_VIDEO_AV1_MAX_NUM_Y_POINTS
|
|
39
|
-
#define STD_VIDEO_AV1_MAX_NUM_CB_POINTS
|
|
40
|
-
#define STD_VIDEO_AV1_MAX_NUM_CR_POINTS
|
|
41
|
-
#define STD_VIDEO_AV1_MAX_NUM_POS_LUMA
|
|
42
|
-
#define STD_VIDEO_AV1_MAX_NUM_POS_CHROMA
|
|
25
|
+
#define STD_VIDEO_AV1_NUM_REF_FRAMES 8U
|
|
26
|
+
#define STD_VIDEO_AV1_REFS_PER_FRAME 7U
|
|
27
|
+
#define STD_VIDEO_AV1_TOTAL_REFS_PER_FRAME 8U
|
|
28
|
+
#define STD_VIDEO_AV1_MAX_TILE_COLS 64U
|
|
29
|
+
#define STD_VIDEO_AV1_MAX_TILE_ROWS 64U
|
|
30
|
+
#define STD_VIDEO_AV1_MAX_SEGMENTS 8U
|
|
31
|
+
#define STD_VIDEO_AV1_SEG_LVL_MAX 8U
|
|
32
|
+
#define STD_VIDEO_AV1_PRIMARY_REF_NONE 7U
|
|
33
|
+
#define STD_VIDEO_AV1_SELECT_INTEGER_MV 2U
|
|
34
|
+
#define STD_VIDEO_AV1_SELECT_SCREEN_CONTENT_TOOLS 2U
|
|
35
|
+
#define STD_VIDEO_AV1_SKIP_MODE_FRAMES 2U
|
|
36
|
+
#define STD_VIDEO_AV1_MAX_LOOP_FILTER_STRENGTHS 4U
|
|
37
|
+
#define STD_VIDEO_AV1_LOOP_FILTER_ADJUSTMENTS 2U
|
|
38
|
+
#define STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS 8U
|
|
39
|
+
#define STD_VIDEO_AV1_MAX_NUM_PLANES 3U
|
|
40
|
+
#define STD_VIDEO_AV1_GLOBAL_MOTION_PARAMS 6U
|
|
41
|
+
#define STD_VIDEO_AV1_MAX_NUM_Y_POINTS 14U
|
|
42
|
+
#define STD_VIDEO_AV1_MAX_NUM_CB_POINTS 10U
|
|
43
|
+
#define STD_VIDEO_AV1_MAX_NUM_CR_POINTS 10U
|
|
44
|
+
#define STD_VIDEO_AV1_MAX_NUM_POS_LUMA 24U
|
|
45
|
+
#define STD_VIDEO_AV1_MAX_NUM_POS_CHROMA 25U
|
|
43
46
|
|
|
44
47
|
typedef enum StdVideoAV1Profile {
|
|
45
48
|
STD_VIDEO_AV1_PROFILE_MAIN = 0,
|
|
@@ -141,7 +144,7 @@ typedef enum StdVideoAV1ColorPrimaries {
|
|
|
141
144
|
STD_VIDEO_AV1_COLOR_PRIMARIES_SMPTE_432 = 12,
|
|
142
145
|
STD_VIDEO_AV1_COLOR_PRIMARIES_EBU_3213 = 22,
|
|
143
146
|
STD_VIDEO_AV1_COLOR_PRIMARIES_INVALID = 0x7FFFFFFF,
|
|
144
|
-
|
|
147
|
+
// STD_VIDEO_AV1_COLOR_PRIMARIES_BT_UNSPECIFIED is a legacy alias
|
|
145
148
|
STD_VIDEO_AV1_COLOR_PRIMARIES_BT_UNSPECIFIED = STD_VIDEO_AV1_COLOR_PRIMARIES_UNSPECIFIED,
|
|
146
149
|
STD_VIDEO_AV1_COLOR_PRIMARIES_MAX_ENUM = 0x7FFFFFFF
|
|
147
150
|
} StdVideoAV1ColorPrimaries;
|
|
@@ -199,190 +202,191 @@ typedef enum StdVideoAV1ChromaSamplePosition {
|
|
|
199
202
|
STD_VIDEO_AV1_CHROMA_SAMPLE_POSITION_MAX_ENUM = 0x7FFFFFFF
|
|
200
203
|
} StdVideoAV1ChromaSamplePosition;
|
|
201
204
|
typedef struct StdVideoAV1ColorConfigFlags {
|
|
202
|
-
uint32_t
|
|
203
|
-
uint32_t
|
|
204
|
-
uint32_t
|
|
205
|
-
uint32_t
|
|
206
|
-
uint32_t
|
|
205
|
+
uint32_t mono_chrome : 1;
|
|
206
|
+
uint32_t color_range : 1;
|
|
207
|
+
uint32_t separate_uv_delta_q : 1;
|
|
208
|
+
uint32_t color_description_present_flag : 1;
|
|
209
|
+
uint32_t reserved : 28;
|
|
207
210
|
} StdVideoAV1ColorConfigFlags;
|
|
208
211
|
|
|
209
212
|
typedef struct StdVideoAV1ColorConfig {
|
|
210
|
-
StdVideoAV1ColorConfigFlags
|
|
211
|
-
uint8_t
|
|
212
|
-
uint8_t
|
|
213
|
-
uint8_t
|
|
214
|
-
uint8_t
|
|
215
|
-
StdVideoAV1ColorPrimaries
|
|
216
|
-
StdVideoAV1TransferCharacteristics
|
|
217
|
-
StdVideoAV1MatrixCoefficients
|
|
218
|
-
StdVideoAV1ChromaSamplePosition
|
|
213
|
+
StdVideoAV1ColorConfigFlags flags;
|
|
214
|
+
uint8_t BitDepth;
|
|
215
|
+
uint8_t subsampling_x;
|
|
216
|
+
uint8_t subsampling_y;
|
|
217
|
+
uint8_t reserved1;
|
|
218
|
+
StdVideoAV1ColorPrimaries color_primaries;
|
|
219
|
+
StdVideoAV1TransferCharacteristics transfer_characteristics;
|
|
220
|
+
StdVideoAV1MatrixCoefficients matrix_coefficients;
|
|
221
|
+
StdVideoAV1ChromaSamplePosition chroma_sample_position;
|
|
219
222
|
} StdVideoAV1ColorConfig;
|
|
220
223
|
|
|
221
224
|
typedef struct StdVideoAV1TimingInfoFlags {
|
|
222
|
-
uint32_t
|
|
223
|
-
uint32_t
|
|
225
|
+
uint32_t equal_picture_interval : 1;
|
|
226
|
+
uint32_t reserved : 31;
|
|
224
227
|
} StdVideoAV1TimingInfoFlags;
|
|
225
228
|
|
|
226
229
|
typedef struct StdVideoAV1TimingInfo {
|
|
227
|
-
StdVideoAV1TimingInfoFlags
|
|
228
|
-
uint32_t
|
|
229
|
-
uint32_t
|
|
230
|
-
uint32_t
|
|
230
|
+
StdVideoAV1TimingInfoFlags flags;
|
|
231
|
+
uint32_t num_units_in_display_tick;
|
|
232
|
+
uint32_t time_scale;
|
|
233
|
+
uint32_t num_ticks_per_picture_minus_1;
|
|
231
234
|
} StdVideoAV1TimingInfo;
|
|
232
235
|
|
|
233
236
|
typedef struct StdVideoAV1LoopFilterFlags {
|
|
234
|
-
uint32_t
|
|
235
|
-
uint32_t
|
|
236
|
-
uint32_t
|
|
237
|
+
uint32_t loop_filter_delta_enabled : 1;
|
|
238
|
+
uint32_t loop_filter_delta_update : 1;
|
|
239
|
+
uint32_t reserved : 30;
|
|
237
240
|
} StdVideoAV1LoopFilterFlags;
|
|
238
241
|
|
|
239
242
|
typedef struct StdVideoAV1LoopFilter {
|
|
240
|
-
StdVideoAV1LoopFilterFlags
|
|
241
|
-
uint8_t
|
|
242
|
-
uint8_t
|
|
243
|
-
uint8_t
|
|
244
|
-
int8_t
|
|
245
|
-
uint8_t
|
|
246
|
-
int8_t
|
|
243
|
+
StdVideoAV1LoopFilterFlags flags;
|
|
244
|
+
uint8_t loop_filter_level[STD_VIDEO_AV1_MAX_LOOP_FILTER_STRENGTHS];
|
|
245
|
+
uint8_t loop_filter_sharpness;
|
|
246
|
+
uint8_t update_ref_delta;
|
|
247
|
+
int8_t loop_filter_ref_deltas[STD_VIDEO_AV1_TOTAL_REFS_PER_FRAME];
|
|
248
|
+
uint8_t update_mode_delta;
|
|
249
|
+
int8_t loop_filter_mode_deltas[STD_VIDEO_AV1_LOOP_FILTER_ADJUSTMENTS];
|
|
247
250
|
} StdVideoAV1LoopFilter;
|
|
248
251
|
|
|
249
252
|
typedef struct StdVideoAV1QuantizationFlags {
|
|
250
|
-
uint32_t
|
|
251
|
-
uint32_t
|
|
252
|
-
uint32_t
|
|
253
|
+
uint32_t using_qmatrix : 1;
|
|
254
|
+
uint32_t diff_uv_delta : 1;
|
|
255
|
+
uint32_t reserved : 30;
|
|
253
256
|
} StdVideoAV1QuantizationFlags;
|
|
254
257
|
|
|
255
258
|
typedef struct StdVideoAV1Quantization {
|
|
256
|
-
StdVideoAV1QuantizationFlags
|
|
257
|
-
uint8_t
|
|
258
|
-
int8_t
|
|
259
|
-
int8_t
|
|
260
|
-
int8_t
|
|
261
|
-
int8_t
|
|
262
|
-
int8_t
|
|
263
|
-
uint8_t
|
|
264
|
-
uint8_t
|
|
265
|
-
uint8_t
|
|
259
|
+
StdVideoAV1QuantizationFlags flags;
|
|
260
|
+
uint8_t base_q_idx;
|
|
261
|
+
int8_t DeltaQYDc;
|
|
262
|
+
int8_t DeltaQUDc;
|
|
263
|
+
int8_t DeltaQUAc;
|
|
264
|
+
int8_t DeltaQVDc;
|
|
265
|
+
int8_t DeltaQVAc;
|
|
266
|
+
uint8_t qm_y;
|
|
267
|
+
uint8_t qm_u;
|
|
268
|
+
uint8_t qm_v;
|
|
266
269
|
} StdVideoAV1Quantization;
|
|
267
270
|
|
|
268
271
|
typedef struct StdVideoAV1Segmentation {
|
|
269
|
-
uint8_t
|
|
270
|
-
int16_t
|
|
272
|
+
uint8_t FeatureEnabled[STD_VIDEO_AV1_MAX_SEGMENTS];
|
|
273
|
+
int16_t FeatureData[STD_VIDEO_AV1_MAX_SEGMENTS][STD_VIDEO_AV1_SEG_LVL_MAX];
|
|
271
274
|
} StdVideoAV1Segmentation;
|
|
272
275
|
|
|
273
276
|
typedef struct StdVideoAV1TileInfoFlags {
|
|
274
|
-
uint32_t
|
|
275
|
-
uint32_t
|
|
277
|
+
uint32_t uniform_tile_spacing_flag : 1;
|
|
278
|
+
uint32_t reserved : 31;
|
|
276
279
|
} StdVideoAV1TileInfoFlags;
|
|
277
280
|
|
|
278
281
|
typedef struct StdVideoAV1TileInfo {
|
|
279
|
-
StdVideoAV1TileInfoFlags
|
|
280
|
-
uint8_t
|
|
281
|
-
uint8_t
|
|
282
|
-
uint16_t
|
|
283
|
-
uint8_t
|
|
284
|
-
uint8_t
|
|
285
|
-
const uint16_t*
|
|
286
|
-
const uint16_t*
|
|
287
|
-
const uint16_t*
|
|
288
|
-
const uint16_t*
|
|
282
|
+
StdVideoAV1TileInfoFlags flags;
|
|
283
|
+
uint8_t TileCols;
|
|
284
|
+
uint8_t TileRows;
|
|
285
|
+
uint16_t context_update_tile_id;
|
|
286
|
+
uint8_t tile_size_bytes_minus_1;
|
|
287
|
+
uint8_t reserved1[7];
|
|
288
|
+
const uint16_t* pMiColStarts;
|
|
289
|
+
const uint16_t* pMiRowStarts;
|
|
290
|
+
const uint16_t* pWidthInSbsMinus1;
|
|
291
|
+
const uint16_t* pHeightInSbsMinus1;
|
|
289
292
|
} StdVideoAV1TileInfo;
|
|
290
293
|
|
|
291
294
|
typedef struct StdVideoAV1CDEF {
|
|
292
|
-
uint8_t
|
|
293
|
-
uint8_t
|
|
294
|
-
uint8_t
|
|
295
|
-
uint8_t
|
|
296
|
-
uint8_t
|
|
297
|
-
uint8_t
|
|
295
|
+
uint8_t cdef_damping_minus_3;
|
|
296
|
+
uint8_t cdef_bits;
|
|
297
|
+
uint8_t cdef_y_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
|
|
298
|
+
uint8_t cdef_y_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
|
|
299
|
+
uint8_t cdef_uv_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
|
|
300
|
+
uint8_t cdef_uv_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
|
|
298
301
|
} StdVideoAV1CDEF;
|
|
299
302
|
|
|
300
303
|
typedef struct StdVideoAV1LoopRestoration {
|
|
301
|
-
StdVideoAV1FrameRestorationType
|
|
302
|
-
uint16_t
|
|
304
|
+
StdVideoAV1FrameRestorationType FrameRestorationType[STD_VIDEO_AV1_MAX_NUM_PLANES];
|
|
305
|
+
uint16_t LoopRestorationSize[STD_VIDEO_AV1_MAX_NUM_PLANES];
|
|
303
306
|
} StdVideoAV1LoopRestoration;
|
|
304
307
|
|
|
305
308
|
typedef struct StdVideoAV1GlobalMotion {
|
|
306
|
-
uint8_t
|
|
307
|
-
int32_t
|
|
309
|
+
uint8_t GmType[STD_VIDEO_AV1_NUM_REF_FRAMES];
|
|
310
|
+
int32_t gm_params[STD_VIDEO_AV1_NUM_REF_FRAMES][STD_VIDEO_AV1_GLOBAL_MOTION_PARAMS];
|
|
308
311
|
} StdVideoAV1GlobalMotion;
|
|
309
312
|
|
|
310
313
|
typedef struct StdVideoAV1FilmGrainFlags {
|
|
311
|
-
uint32_t
|
|
312
|
-
uint32_t
|
|
313
|
-
uint32_t
|
|
314
|
-
uint32_t
|
|
315
|
-
uint32_t
|
|
314
|
+
uint32_t chroma_scaling_from_luma : 1;
|
|
315
|
+
uint32_t overlap_flag : 1;
|
|
316
|
+
uint32_t clip_to_restricted_range : 1;
|
|
317
|
+
uint32_t update_grain : 1;
|
|
318
|
+
uint32_t reserved : 28;
|
|
316
319
|
} StdVideoAV1FilmGrainFlags;
|
|
317
320
|
|
|
318
321
|
typedef struct StdVideoAV1FilmGrain {
|
|
319
|
-
StdVideoAV1FilmGrainFlags
|
|
320
|
-
uint8_t
|
|
321
|
-
uint8_t
|
|
322
|
-
uint8_t
|
|
323
|
-
uint8_t
|
|
324
|
-
uint16_t
|
|
325
|
-
uint8_t
|
|
326
|
-
uint8_t
|
|
327
|
-
uint8_t
|
|
328
|
-
uint8_t
|
|
329
|
-
uint8_t
|
|
330
|
-
uint8_t
|
|
331
|
-
uint8_t
|
|
332
|
-
uint8_t
|
|
333
|
-
uint8_t
|
|
334
|
-
uint8_t
|
|
335
|
-
int8_t
|
|
336
|
-
int8_t
|
|
337
|
-
int8_t
|
|
338
|
-
uint8_t
|
|
339
|
-
uint8_t
|
|
340
|
-
uint16_t
|
|
341
|
-
uint8_t
|
|
342
|
-
uint8_t
|
|
343
|
-
uint16_t
|
|
322
|
+
StdVideoAV1FilmGrainFlags flags;
|
|
323
|
+
uint8_t grain_scaling_minus_8;
|
|
324
|
+
uint8_t ar_coeff_lag;
|
|
325
|
+
uint8_t ar_coeff_shift_minus_6;
|
|
326
|
+
uint8_t grain_scale_shift;
|
|
327
|
+
uint16_t grain_seed;
|
|
328
|
+
uint8_t film_grain_params_ref_idx;
|
|
329
|
+
uint8_t num_y_points;
|
|
330
|
+
uint8_t point_y_value[STD_VIDEO_AV1_MAX_NUM_Y_POINTS];
|
|
331
|
+
uint8_t point_y_scaling[STD_VIDEO_AV1_MAX_NUM_Y_POINTS];
|
|
332
|
+
uint8_t num_cb_points;
|
|
333
|
+
uint8_t point_cb_value[STD_VIDEO_AV1_MAX_NUM_CB_POINTS];
|
|
334
|
+
uint8_t point_cb_scaling[STD_VIDEO_AV1_MAX_NUM_CB_POINTS];
|
|
335
|
+
uint8_t num_cr_points;
|
|
336
|
+
uint8_t point_cr_value[STD_VIDEO_AV1_MAX_NUM_CR_POINTS];
|
|
337
|
+
uint8_t point_cr_scaling[STD_VIDEO_AV1_MAX_NUM_CR_POINTS];
|
|
338
|
+
int8_t ar_coeffs_y_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_LUMA];
|
|
339
|
+
int8_t ar_coeffs_cb_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_CHROMA];
|
|
340
|
+
int8_t ar_coeffs_cr_plus_128[STD_VIDEO_AV1_MAX_NUM_POS_CHROMA];
|
|
341
|
+
uint8_t cb_mult;
|
|
342
|
+
uint8_t cb_luma_mult;
|
|
343
|
+
uint16_t cb_offset;
|
|
344
|
+
uint8_t cr_mult;
|
|
345
|
+
uint8_t cr_luma_mult;
|
|
346
|
+
uint16_t cr_offset;
|
|
344
347
|
} StdVideoAV1FilmGrain;
|
|
345
348
|
|
|
346
349
|
typedef struct StdVideoAV1SequenceHeaderFlags {
|
|
347
|
-
uint32_t
|
|
348
|
-
uint32_t
|
|
349
|
-
uint32_t
|
|
350
|
-
uint32_t
|
|
351
|
-
uint32_t
|
|
352
|
-
uint32_t
|
|
353
|
-
uint32_t
|
|
354
|
-
uint32_t
|
|
355
|
-
uint32_t
|
|
356
|
-
uint32_t
|
|
357
|
-
uint32_t
|
|
358
|
-
uint32_t
|
|
359
|
-
uint32_t
|
|
360
|
-
uint32_t
|
|
361
|
-
uint32_t
|
|
362
|
-
uint32_t
|
|
363
|
-
uint32_t
|
|
364
|
-
uint32_t
|
|
365
|
-
uint32_t
|
|
366
|
-
uint32_t
|
|
350
|
+
uint32_t still_picture : 1;
|
|
351
|
+
uint32_t reduced_still_picture_header : 1;
|
|
352
|
+
uint32_t use_128x128_superblock : 1;
|
|
353
|
+
uint32_t enable_filter_intra : 1;
|
|
354
|
+
uint32_t enable_intra_edge_filter : 1;
|
|
355
|
+
uint32_t enable_interintra_compound : 1;
|
|
356
|
+
uint32_t enable_masked_compound : 1;
|
|
357
|
+
uint32_t enable_warped_motion : 1;
|
|
358
|
+
uint32_t enable_dual_filter : 1;
|
|
359
|
+
uint32_t enable_order_hint : 1;
|
|
360
|
+
uint32_t enable_jnt_comp : 1;
|
|
361
|
+
uint32_t enable_ref_frame_mvs : 1;
|
|
362
|
+
uint32_t frame_id_numbers_present_flag : 1;
|
|
363
|
+
uint32_t enable_superres : 1;
|
|
364
|
+
uint32_t enable_cdef : 1;
|
|
365
|
+
uint32_t enable_restoration : 1;
|
|
366
|
+
uint32_t film_grain_params_present : 1;
|
|
367
|
+
uint32_t timing_info_present_flag : 1;
|
|
368
|
+
uint32_t initial_display_delay_present_flag : 1;
|
|
369
|
+
uint32_t reserved : 13;
|
|
367
370
|
} StdVideoAV1SequenceHeaderFlags;
|
|
368
371
|
|
|
369
372
|
typedef struct StdVideoAV1SequenceHeader {
|
|
370
|
-
StdVideoAV1SequenceHeaderFlags
|
|
371
|
-
StdVideoAV1Profile
|
|
372
|
-
uint8_t
|
|
373
|
-
uint8_t
|
|
374
|
-
uint16_t
|
|
375
|
-
uint16_t
|
|
376
|
-
uint8_t
|
|
377
|
-
uint8_t
|
|
378
|
-
uint8_t
|
|
379
|
-
uint8_t
|
|
380
|
-
uint8_t
|
|
381
|
-
uint8_t
|
|
382
|
-
const StdVideoAV1ColorConfig*
|
|
383
|
-
const StdVideoAV1TimingInfo*
|
|
373
|
+
StdVideoAV1SequenceHeaderFlags flags;
|
|
374
|
+
StdVideoAV1Profile seq_profile;
|
|
375
|
+
uint8_t frame_width_bits_minus_1;
|
|
376
|
+
uint8_t frame_height_bits_minus_1;
|
|
377
|
+
uint16_t max_frame_width_minus_1;
|
|
378
|
+
uint16_t max_frame_height_minus_1;
|
|
379
|
+
uint8_t delta_frame_id_length_minus_2;
|
|
380
|
+
uint8_t additional_frame_id_length_minus_1;
|
|
381
|
+
uint8_t order_hint_bits_minus_1;
|
|
382
|
+
uint8_t seq_force_integer_mv;
|
|
383
|
+
uint8_t seq_force_screen_content_tools;
|
|
384
|
+
uint8_t reserved1[5];
|
|
385
|
+
const StdVideoAV1ColorConfig* pColorConfig;
|
|
386
|
+
const StdVideoAV1TimingInfo* pTimingInfo;
|
|
384
387
|
} StdVideoAV1SequenceHeader;
|
|
385
388
|
|
|
389
|
+
|
|
386
390
|
#ifdef __cplusplus
|
|
387
391
|
}
|
|
388
392
|
#endif
|