GithubHelp home page GithubHelp logo

sisong / libfrg Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 8.0 250 KB

FRG is an image format(like PNG or JPG or ETC2 or ASTC etc.),for optimize load image time (loading from disk and decoding to display).

License: MIT License

C++ 64.73% C 35.27%

libfrg's People

Contributors

sisong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libfrg's Issues

感兴趣区域支持?

支持不同区域使用不同的质量参数;用于手工优化某些质量损失过大的区域,从而获得更高的压缩率和质量; 当然,如果能够建立起自动的更准确的质量评估功能,该需求就会降低。

开发和测试自动质量评估功能

编码速度优化?

FRG的解码速度确实挺快,但是编码速度非常慢,我在正常的PC上测试了下,编码一张1920*1080的bmp图片,大约耗时1-2秒之间,而对比JPEG压缩耗时在几十毫秒,有什么方法可以提升下编码的性能?例如增加内存占用或者其他的方式?
thanks

Bad calibration of quality

libfrg 1.3.2:

On the test image lena.png
lena.png
at quality 50

png2frg lena.png lena.q50.frg 50

we get a bad image
lena.q50.fgr

I recommend recalibrating quality:

Qnew = (Q - 50) * 2    # 0 <- 50

or at least

Qnew = Q * Q /100    # 25 <- 50

更小的解码器?

放弃一些速度,但用更少的代码实现解码器; 需求可能很小;现在的解码器编译后已经很小;

支持5,6bit的调色板,可以稍微提高在保持高质量转码时的压缩率

对压缩质量(90--100]时使用一个新特性: kFrg_ClipType_index_exbit = 8, //5或6bit调色板+1bit未用+1bit是否6bit+1bit是否single_a_w8+1bit是否匹配调色板: 如果使用匹配调色板,则储存了一个向前匹配位置(变长1-5byte);否则储存1个字节的(局部调色板长度-1,占用高6bit(低2bit未使用))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.