skia

学习Flutter从0开始

﹥>﹥吖頭↗ 提交于 2019-12-01 12:20:10
一. 认识Flutter 1.1. 什么是Flutter 先看看官方的解释: Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile , web , and desktop from a single codebase. 简单翻译一下: Flutter是谷歌主导研发的一个UI工具包,可以利用它,使用非常简洁的代码开发出漂亮的、原生的应用程序,无论是在移动端、Web端还是桌面端。 嗯,加入个人理解: Flutter就是一个UI开发工具包,可以开发各个平台,但是目前最活跃的地方依然 移动平台,虽然他也支持Web、桌面,甚至也将是 Google Fuchsia 下开发应用的主要工具。 但是现在,它只是活跃于移动端。 那么,目前移动平台主要有哪些呢? 没错,iOS、Android ! 于是,我们可以简单概述一下Flutter: Flutter目前被应用最广泛的就是作为iOS、Android跨平台解决方案,而且可以说是目前最优秀的跨平台解决方案。 它不仅仅性能 优越 ,而且开发非常 高效 ! 为什么需要这样一种跨平台解决方案呢? 待会儿我会讲到移动端开发的历史(各端独立开发到跨平台开发的出现)以及在整个历史进程中出现的各个痛点,直到Flutter的出现。

JPEG hardware Decode support in Android application

跟風遠走 提交于 2019-11-30 23:46:48
My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream. 1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to decode and doesnot use hardware decoders for the same. Correct me if I am wrong. 2) Is there any faster way to decode JPEG stream (other than SKIA) ? 3) Can "Media framework" be used to provide JPEG hardware decoding? As per my observation it can be only used for video and audio. skia supports hardware accelerated jpeg decoding.

Skia Decoder fails to decode remote Stream

房东的猫 提交于 2019-11-30 20:07:09
I am trying to open a remote Stream of a JPEG image and convert it into a Bitmap object: BitmapFactory.decodeStream( new URL("http://some.url.to/source/image.jpg") .openStream()); The decoder returns null and in the logs I get the following message: DEBUG/skia(xxxx): --- decoder->decode returned false Note: 1. the content length is non-zero and content type is image/jpeg 2. When I open the URL in browser I can see the image. What is that I am missing here? Please help. Thanks. ol_v_er The solution provided in android bug n°6066 consist in overriding the std FilterInputStream and then send it

JPEG hardware Decode support in Android application

◇◆丶佛笑我妖孽 提交于 2019-11-30 18:07:43
问题 My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream. 1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to decode and doesnot use hardware decoders for the same. Correct me if I am wrong. 2) Is there any faster way to decode JPEG stream (other than SKIA) ? 3) Can "Media framework" be used to provide JPEG hardware decoding? As per my

1995年的资深工程师,和你谈谈如何进阶

谁说胖子不能爱 提交于 2019-11-30 05:50:20
1995年的资深工程师,和你谈谈如何进阶 自我介绍 网络ID:杭城小刘,城市:顾名思义,人在杭州。1995年出生,本科毕业,现在是一名 iOS 资深工程师,年薪 35w。兴趣爱好广泛:乒乓球、美食、电影、健身、山地车、宠物(猫、金鱼)、养花。技术领域:iOS、Web 前端,写过 Node、PHP 后端服务、写过爬虫、研究过反爬虫技术方案(在 sf 上发表过文章,获赞 148: https://segmentfault.com/a/1190000017899193 )。在成长的路上... 工程师生涯的两三事 刚毕业开始还是一名普通的 iOS 工程师,做的东西一般是跟着 TL 开会讨论需求,完了自己脑补技术细节,完了编码、UI 还原、测试、发布、维护。在第一家公司做开发的时候,某次和一个后端工程师对接口遇到问题,人家说“别跟我说接口有问题。你跟我说是什么样的问题?我需要参数”。然后初生牛犊(小菜鸟)就把 Xcode 下面的 Debug 信息截图发出去,被人怼,说我需要网络的具体参数,Request、Reponse 信息。当时很尴尬,我在想封装好的网络框架,我一个个下断点 Debug 截图给你吗。后来才知道有 Charles 这么个抓包工具,简单搞了搞 Charles 之后就将截图 Request、Response 信息给他了,这样他没话说了,老老实实改了接口 Bug。当时他问我

Android Graphics Internals

我与影子孤独终老i 提交于 2019-11-28 16:40:20
I haven't found a clear explanation on how the Android graphics system works, specifically, does it use a display server, is it based on DirectFB or X11, etc. From what I've managed to piece together, Android depends on the Linux frame buffer . I haven't found much on what sort of display server or window manager Android uses to multiplex access to the framebuffer though, so any pointers would be much appreciated! Finally, from what I understand the ARM instruction set provides instructions to accelerate OpenGL, but how this integrates with the display server isn't clear, ie. do client

How do the pieces of Android's (2D) Canvas drawing pipeline fit together?

独自空忆成欢 提交于 2019-11-28 14:42:26
问题 I would like to have a better understanding of how the components of Android's (2D) Canvas drawing pipeline fit together. For example, how do XferMode, Shader, MaskFilter and ColorFilter interact? The reference docs for these classes are pretty sparse and the docs for Canvas and Paint don't really add any useful explanation. It's also not entirely clear to me how drawing operations that have intrinsic colors (eg: drawBitmap , versus the "vector" primitives like drawRect ) fit into all of this

BitmapFactory.decodeStream always returns null and skia decoder shows decode returned false

落花浮王杯 提交于 2019-11-28 07:52:58
test image here: http://images.plurk.com/tn_4134189_bf54fe8e270ce41240d534b5133884ee.gif I've tried several solutions found on the internet but there is no working solution. I'm using the following snippet code: Url imageUrl = new Url("http://images.plurk.com/tn_4134189_bf54fe8e270ce41240d534b5133884ee.gif"); Bitmap image = BitmapFactory.decodeStream(imageUrl.openStream()); Always getting this log: DEBUG/skia(1441): --- decoder->decode returned false Any help? Thanks. EDIT: Those images failed to be decoded are also can not be shown on a WebView . But can see if open in a Browser. Try this as

BitmapFactory.decodeStream always returns null and skia decoder shows decode returned false

☆樱花仙子☆ 提交于 2019-11-27 02:00:37
问题 test image here: http://images.plurk.com/tn_4134189_bf54fe8e270ce41240d534b5133884ee.gif I've tried several solutions found on the internet but there is no working solution. I'm using the following snippet code: Url imageUrl = new Url("http://images.plurk.com/tn_4134189_bf54fe8e270ce41240d534b5133884ee.gif"); Bitmap image = BitmapFactory.decodeStream(imageUrl.openStream()); Always getting this log: DEBUG/skia(1441): --- decoder->decode returned false Any help? Thanks. EDIT: Those images