ImageDecoder API All in One
2022/5/26 23:20:23
本文主要是介绍ImageDecoder API All in One,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
ImageDecoder API All in One
性能优化
ImageDecoder
//
https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder
WebCodecs API
Interfaces
AudioDecoder
Decodes EncodedAudioChunk objects.
VideoDecoder
Decodes EncodedVideoChunk objects.
AudioEncoder
Encodes AudioData objects.
VideoEncoder
Encodes VideoFrame objects.
EncodedAudioChunk
Represents codec-specific encoded audio bytes.
EncodedVideoChunk
Represents codec-specific encoded video bytes.
AudioData
Represents unencoded audio data.
VideoFrame
Represents a frame of unencoded video data.
VideoColorSpace
Represents the color space of a video frame.
ImageDecoder
Unpacks and decodes image data, giving access to the sequence of frames in an animated image.
ImageTrackList
Represents the list of tracks available in the image.
ImageTrack
Represents an individual image track.
https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API
Flutter 3
图像解码
Flutter web 现在会在支持它的浏览器中自动检测和使用 ImageDecoder API
。
截至今天,大多数基于 Chromium 的浏览器(Chrome、Edge、Opera、三星浏览器等)都添加了此 API。
新的 API 使用浏览器的内置图像编解码器从主线程异步解码图像。
这将图像解码速度提高了 2 倍,并且它从不阻塞主线程,消除了以前由图像引起的所有卡顿。
https://medium.com/flutter/whats-new-in-flutter-3-8c74a5bc32d0
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载
这篇关于ImageDecoder API All in One的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-29Elasticsearch慢查询日志配置
- 2024-05-29揭秘华为如此多成功项目的产品关键——Charter模板
- 2024-05-29海外IDC业务拓展的7大挑战
- 2024-05-29InLine Chat功能优化对标Github Copilot,CodeGeeX带来更高效、更直观的编程体验!
- 2024-05-29CodeGeeX 智能编程助手 6 项功能升级,在Visual Studio插件市场霸榜2周!
- 2024-05-29AutoMQ 生态集成 Apache Doris
- 2024-05-292024年IDC行业的深度挖掘:机遇、挑战与未来展望
- 2024-05-29五款扩展组件齐发 —— Volcano、Keda、Crane-scheduler 等,邀你体验
- 2024-05-29AutoMQ 对象存储数据高效组织的秘密: Compaction
- 2024-05-29活动预告|来 GIAC 大会听大数据降本利器:AutoMQ 基于云原生重新设计的 Kafka