GithubHelp home page GithubHelp logo

dawutech / libcedarjpeg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mosterta/libcedarjpeg

0.0 1.0 0.0 39 KB

provides a simple library to hardware decode JPEG images on Allwinner A10/A20/? with EGL image support

License: GNU General Public License v2.0

Makefile 3.96% C 89.25% CMake 6.79%

libcedarjpeg's Introduction

This code is based on cedrus PoC Jpeg HW decoding
It has been extended by some additional functiionality to use it as a library 
(mainly for Kodi), but of course can be used for other programs as well
The main concept behind the library is to provide the decoded data either
as an RGB single combined plane in an continous memory block provided
by the user of the library or provide the image as an EGL image for the
Mali binary EGL library implementation from ARM (r3p1)

Requirements: This implementation requires the library libcedar_access, which 
encapsulates and controls the access to the cedar device, while this library concentrates
to decode the jpeg header, extract the required data and program the cedar
HW registers appropriately.


The following is the original comment provided by cedrus. It is no longer valid,
e.g. it does not output an .ppm image anymore

Proof of Concept JPEG decoder using Allwinners CedarX
=====================================================

*WARNING*: Don't use on "production systems". This was made by reverse
engineering and might crash your system or destroy data!
It was made only for my personal use of testing the reverse engineered
things, so don't expect good code quality. It's far from complete and
might crash if the JPEG doesn't fit it's requirements!

Usage:
------

make
./jpeg-test example.jpg

If everything works, output is .ppm (Portable Pixmap).
You might pipe it into ImageMagick:

./jpeg-test example.jpg | display -

libcedarjpeg's People

Contributors

mosterta2 avatar mosterta avatar

Watchers

James Cloos avatar

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.