kagami / dav1d.js Goto Github PK
View Code? Open in Web Editor NEW:alembic: WebAssembly AV1 decoder
License: Creative Commons Zero v1.0 Universal
:alembic: WebAssembly AV1 decoder
License: Creative Commons Zero v1.0 Universal
Hi @Kagami .. there is a build failure out of the box. Either make test or make all.
Seems src/lib.c is not being linked in?
With make test:
~/dav1d.js_again$ make test
cc dav1d.c -O2 -Wall -o test
-I../tmp/dav1d/dist/include -L../tmp/dav1d/dist/lib64
-ldav1d -lpthread
/tmp/ccn8CmFj.o: In functiondjs_init': dav1d.c:(.text+0x3f): undefined reference to
dav1d_default_settings'
dav1d.c:(.text+0x4a): undefined reference todav1d_open' /tmp/ccn8CmFj.o: In function
djs_free':
dav1d.c:(.text+0x95): undefined reference todav1d_close' /tmp/ccn8CmFj.o: In function
djs_decode_obu':
dav1d.c:(.text+0x13a): undefined reference todav1d_data_wrap' dav1d.c:(.text+0x146): undefined reference to
dav1d_send_data'
dav1d.c:(.text+0x15c): undefined reference todav1d_get_picture' dav1d.c:(.text+0x2e6): undefined reference to
dav1d_picture_unref'
dav1d.c:(.text+0x662): undefined reference todav1d_picture_unref' /tmp/ccn8CmFj.o: In function
main':
dav1d.c:(.text.startup+0x11a): undefined reference to `dav1d_close'
collect2: error: ld returned 1 exit status
Makefile:25: recipe for target 'test' failed
make: *** [test] Error 1
With make all, the initial error is not finding libdav1d.a under build/dist/lib64 ... instead it is under build/dist/lib/ but once this is corrected in the makefile, the same linking error above shows.
To be honest I really don't know what this code is supposed to do but I am looking for a way to compare the performance of dav1d built to and run as wasm compared to being run natively and to do this outside of the browser. That is I'd like to run the wasm in node and collect some sort of performance number and compared that to the same code compiled and run natively on the same platform.
I think maybe it could be much smaller?
In comparison, the BPG's asm.js decoder(bpgdec8a.js) is only ~80KB gzipped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.